| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
the_generator( 'export' ); |
| 7 |
?> |
| 8 |
|
| 9 |
<channel> |
| 10 |
<title><?php bloginfo_rss( 'name' ); ?></title> |
| 11 |
<pubDate><?php echo esc_html( gmdate( 'D, d M Y H:i:s +0000' ) ); ?></pubDate> |
| 12 |
|
| 13 |
<?php |
| 14 |
/** |
| 15 |
* @since 5.3 |
| 16 |
*/ |
| 17 |
do_action( 'frm_xml_export_before_types_loop' ); |
| 18 |
|
| 19 |
foreach ( $type as $tb_type ) { |
| 20 |
|
| 21 |
if ( ! isset( $tables[ $tb_type ] ) ) { |
| 22 |
do_action( 'frm_xml_import_' . $tb_type, $args ); |
| 23 |
continue; |
| 24 |
} |
| 25 |
|
| 26 |
if ( ! isset( $records[ $tb_type ] ) ) { |
| 27 |
// No records. |
| 28 |
continue; |
| 29 |
} |
| 30 |
|
| 31 |
$item_ids = $records[ $tb_type ]; |
| 32 |
|
| 33 |
if ( in_array( $tb_type, array( 'styles', 'actions' ), true ) ) { |
| 34 |
include __DIR__ . '/posts_xml.php'; |
| 35 |
} elseif ( file_exists( __DIR__ . '/' . $tb_type . '_xml.php' ) ) { |
| 36 |
include __DIR__ . '/' . $tb_type . '_xml.php'; |
| 37 |
} elseif ( FrmAppHelper::pro_is_installed() && file_exists( FrmProAppHelper::plugin_path() . '/classes/views/xml/' . $tb_type . '_xml.php' ) ) { |
| 38 |
include FrmProAppHelper::plugin_path() . '/classes/views/xml/' . $tb_type . '_xml.php'; |
| 39 |
} |
| 40 |
|
| 41 |
unset( $item_ids, $records[ $tb_type ], $tb_type ); |
| 42 |
}//end foreach |
| 43 |
|
| 44 |
/** |
| 45 |
* @since 5.3 |
| 46 |
*/ |
| 47 |
do_action( 'frm_xml_export_after_types_loop' ); |
| 48 |
?> |
| 49 |
</channel> |
| 50 |
|