| 1 |
<?php the_generator( 'export' ); ?> |
| 2 |
|
| 3 |
<channel> |
| 4 |
<title><?php bloginfo_rss( 'name' ); ?></title> |
| 5 |
<pubDate><?php echo date( 'D, d M Y H:i:s +0000' ); ?></pubDate> |
| 6 |
<base_blog_url><?php bloginfo_rss( 'url' ); ?></base_blog_url> |
| 7 |
|
| 8 |
<?php |
| 9 |
foreach($type as $tb_type){ |
| 10 |
|
| 11 |
if(!isset($tables[$tb_type])){ |
| 12 |
do_action('frm_xml_import_'. $tb_type, $args); |
| 13 |
continue; |
| 14 |
} |
| 15 |
|
| 16 |
//no records |
| 17 |
if(!isset($records[$tb_type])) |
| 18 |
continue; |
| 19 |
|
| 20 |
$item_ids = $records[$tb_type]; |
| 21 |
if ( file_exists(dirname(__FILE__) .'/'. $tb_type .'_xml.php') ) { |
| 22 |
include(dirname(__FILE__) .'/'. $tb_type .'_xml.php'); |
| 23 |
} else if ( file_exists( FrmAppHelper::plugin_path() .'/pro/classes/views/xml/'. $tb_type .'_xml.php') ){ |
| 24 |
include( FrmAppHelper::plugin_path() .'/pro/classes/views/xml/'. $tb_type .'_xml.php' ); |
| 25 |
} |
| 26 |
unset($item_ids); |
| 27 |
unset($records[$tb_type]); |
| 28 |
|
| 29 |
unset($tb_type); |
| 30 |
} |
| 31 |
|
| 32 |
?> |
| 33 |
</channel> |