PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 3.06.06
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v3.06.06
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/xml/xml.php +9 -24 6.353.06.06 View file →
@@ -1,48 +1,33 @@
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' );
8 +foreach ( $type as $tb_type ) {
18 9
19 -foreach ( $type as $tb_type ) {
20 10 if ( ! isset( $tables[ $tb_type ] ) ) {
21 11 do_action( 'frm_xml_import_' . $tb_type, $args );
22 12 continue;
23 13 }
24 14
15 + //no records
25 16 if ( ! isset( $records[ $tb_type ] ) ) {
26 - // No records.
27 17 continue;
28 18 }
29 19
30 20 $item_ids = $records[ $tb_type ];
31 -
32 21 if ( in_array( $tb_type, array( 'styles', 'actions' ), true ) ) {
33 - include __DIR__ . '/posts_xml.php';
34 - } elseif ( file_exists( __DIR__ . '/' . $tb_type . '_xml.php' ) ) {
35 - include __DIR__ . '/' . $tb_type . '_xml.php';
22 + include( dirname( __FILE__ ) . '/posts_xml.php' );
23 + } elseif ( file_exists( dirname( __FILE__ ) . '/' . $tb_type . '_xml.php' ) ) {
24 + include( dirname( __FILE__ ) . '/' . $tb_type . '_xml.php' );
36 25 } elseif ( FrmAppHelper::pro_is_installed() && file_exists( FrmProAppHelper::plugin_path() . '/classes/views/xml/' . $tb_type . '_xml.php' ) ) {
37 - include FrmProAppHelper::plugin_path() . '/classes/views/xml/' . $tb_type . '_xml.php';
26 + include( FrmProAppHelper::plugin_path() . '/classes/views/xml/' . $tb_type . '_xml.php' );
38 27 }
39 28
40 29 unset( $item_ids, $records[ $tb_type ], $tb_type );
41 -}//end foreach
30 +}
42 31
43 -/**
44 - * @since 5.3
45 - */
46 -do_action( 'frm_xml_export_after_types_loop' );
47 32 ?>
48 33 </channel>