2004-08-30 09:16:40 +02:00
|
|
|
<?php
|
2003-12-11 01:22:36 +01:00
|
|
|
include('wp-blog-header.php');
|
2004-08-30 09:16:40 +02:00
|
|
|
header('Content-type: text/xml; charset=' . get_settings('blog_charset'));
|
2003-08-06 00:44:38 +02:00
|
|
|
?><?php echo "<?xml version=\"1.0\"?".">\n"; ?>
|
|
|
|
<travels>
|
|
|
|
<?php
|
|
|
|
$start = count($posts)-1;
|
|
|
|
for ($i = $start; $i >= 0; $i--) {
|
|
|
|
$post = $posts[$i];
|
2003-12-18 10:36:13 +01:00
|
|
|
start_wp();
|
2003-08-06 00:44:38 +02:00
|
|
|
if ((get_Lon() != null) && (get_Lon > -360) && (get_Lon() < 360 )) {
|
|
|
|
?>
|
|
|
|
<location arrival="<?php the_date_xml() ?>">
|
|
|
|
<name><?php the_title_rss() ?></name>
|
|
|
|
<latitude><?php print_Lat() ?></latitude>
|
|
|
|
<longitude><?php print_Lon() ?></longitude>
|
|
|
|
<?php
|
2004-03-01 07:13:32 +01:00
|
|
|
if (get_settings('rss_use_excerpt')) {
|
2003-08-06 00:44:38 +02:00
|
|
|
?>
|
2004-03-01 07:13:32 +01:00
|
|
|
<note><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?>
|
2003-08-06 00:44:38 +02:00
|
|
|
</note>
|
|
|
|
<?php
|
|
|
|
} else { // use content
|
|
|
|
?>
|
2004-03-01 07:13:32 +01:00
|
|
|
<note><?php the_excerpt_rss('', 0, '', get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?></note>
|
2003-08-06 00:44:38 +02:00
|
|
|
<?php
|
|
|
|
} // end else use content
|
|
|
|
?>
|
|
|
|
<url><?php permalink_single_rss() ?></url>
|
|
|
|
</location>
|
|
|
|
<?php
|
|
|
|
} // end if lon valid
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
} // end loop
|
|
|
|
?>
|
|
|
|
</travels>
|