mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * RSS 1 RDF Feed Template for displaying RSS 1 Posts feed.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 */
mp-wp_genesis 7
mp-wp_genesis 8 header('Content-Type: application/rdf+xml; charset=' . get_option('blog_charset'), true);
mp-wp_genesis 9 $more = 1;
mp-wp_genesis 10
mp-wp_genesis 11 ?>
mp-wp_genesis 12 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
mp-wp_genesis 13 <rdf:RDF
mp-wp_genesis 14 xmlns="http://purl.org/rss/1.0/"
mp-wp_genesis 15 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
mp-wp_genesis 16 xmlns:dc="http://purl.org/dc/elements/1.1/"
mp-wp_genesis 17 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
mp-wp_genesis 18 xmlns:admin="http://webns.net/mvcb/"
mp-wp_genesis 19 xmlns:content="http://purl.org/rss/1.0/modules/content/"
mp-wp_genesis 20 <?php do_action('rdf_ns'); ?>
mp-wp_genesis 21 >
mp-wp_genesis 22 <channel rdf:about="<?php bloginfo_rss("url") ?>">
mp-wp_genesis 23 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
mp-wp_genesis 24 <link><?php bloginfo_rss('url') ?></link>
mp-wp_genesis 25 <description><?php bloginfo_rss('description') ?></description>
mp-wp_genesis 26 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
mp-wp_genesis 27 <?php the_generator( 'rdf' ); ?>
mp-wp_genesis 28 <sy:updatePeriod>hourly</sy:updatePeriod>
mp-wp_genesis 29 <sy:updateFrequency>1</sy:updateFrequency>
mp-wp_genesis 30 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
mp-wp_genesis 31 <?php do_action('rdf_header'); ?>
mp-wp_genesis 32 <items>
mp-wp_genesis 33 <rdf:Seq>
mp-wp_genesis 34 <?php while (have_posts()): the_post(); ?>
mp-wp_genesis 35 <rdf:li rdf:resource="<?php the_permalink_rss() ?>"/>
mp-wp_genesis 36 <?php endwhile; ?>
mp-wp_genesis 37 </rdf:Seq>
mp-wp_genesis 38 </items>
mp-wp_genesis 39 </channel>
mp-wp_genesis 40 <?php rewind_posts(); while (have_posts()): the_post(); ?>
mp-wp_genesis 41 <item rdf:about="<?php the_permalink_rss() ?>">
mp-wp_genesis 42 <title><?php the_title_rss() ?></title>
mp-wp_genesis 43 <link><?php the_permalink_rss() ?></link>
mp-wp_genesis 44 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
mp-wp_genesis 45 <dc:creator><?php the_author() ?></dc:creator>
mp-wp_genesis 46 <?php the_category_rss('rdf') ?>
mp-wp_genesis 47 <?php if (get_option('rss_use_excerpt')) : ?>
mp-wp_genesis 48 <description><?php the_excerpt_rss() ?></description>
mp-wp_genesis 49 <?php else : ?>
mp-wp_genesis 50 <description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length'), 2) ?></description>
mp-wp_genesis 51 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
mp-wp_genesis 52 <?php endif; ?>
mp-wp_genesis 53 <?php do_action('rdf_item'); ?>
mp-wp_genesis 54 </item>
mp-wp_genesis 55 <?php endwhile; ?>
mp-wp_genesis 56 </rdf:RDF>