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