PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.1
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
formidable / classes / views / xml / xml.php

xml.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 5.1, at classes/views/xml/xml.php

40 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 foreach ( $type as $tb_type ) {
15
16 if ( ! isset( $tables[ $tb_type ] ) ) {
17 do_action( 'frm_xml_import_' . $tb_type, $args );
18 continue;
19 }
20
21 //no records
22 if ( ! isset( $records[ $tb_type ] ) ) {
23 continue;
24 }
25
26 $item_ids = $records[ $tb_type ];
27 if ( in_array( $tb_type, array( 'styles', 'actions' ), true ) ) {
28 include( dirname( __FILE__ ) . '/posts_xml.php' );
29 } elseif ( file_exists( dirname( __FILE__ ) . '/' . $tb_type . '_xml.php' ) ) {
30 include( dirname( __FILE__ ) . '/' . $tb_type . '_xml.php' );
31 } elseif ( FrmAppHelper::pro_is_installed() && file_exists( FrmProAppHelper::plugin_path() . '/classes/views/xml/' . $tb_type . '_xml.php' ) ) {
32 include( FrmProAppHelper::plugin_path() . '/classes/views/xml/' . $tb_type . '_xml.php' );
33 }
34
35 unset( $item_ids, $records[ $tb_type ], $tb_type );
36 }
37
38 ?>
39 </channel>
40