<br/><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?> ]]></Snippet> <description><?php bloginfo_rss("description"); ?> </description> <atom:link href="<?php bloginfo('atom_url'); ?> "/> <?php while (have_posts()) { the_post(); $coord = the_coord(); $coord = split(" ", $coord); if ($coord[0] || $coord[1]) { ?> <Placemark id="<?php the_ID(); ?> "> <name><?php the_title_rss(); ?> </name> <?php if (get_settings('rss_use_excerpt')) { ?> <Snippet><![CDATA[<?php
function the_coord_rss() { $coord = the_coord(); $featurename = the_address(); $rss_format = get_settings('_geopress_rss_format', true); if ($coord != "") { switch ($rss_format) { case "w3c": $coord = split(" ", $coord); $coord_tag = "\t<geo:lat>{$coord['0']}</geo:lat>\n\t\t<geo:lon>{$coord['1']}</geo:lon>\n"; break; case "gml": $coord_tag = "\t<georss:where>\n\t\t<gml:Point>\n\t\t\t<gml:pos>{$coord}</gml:pos>\n\t\t</gml:Point>\n\t</georss:where>"; break; case "simple": // cascade to default // cascade to default default: $coord_tag = "\t<georss:point>{$coord}</georss:point>\n"; if ($featurename != "") { $coord_tag .= "\t<georss:featurename>{$featurename}</georss:featurename>\n"; } break; } echo $coord_tag; } }
function atom_entry($post_ID) { if (get_settings('_geopress_rss_enable', true)) { $coord = the_coord(); if ($coord != "") { the_coord_rss(); } } }