raw
mp-wp_genesis           1 <?php

mp-wp_genesis 2 /**
mp-wp_genesis 3 * RSS2 Feed Template for displaying RSS2 Posts feed.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 */
mp-wp_genesis 7
mp-wp_genesis 8 // Brand feeds of unexcluded parsers.
mp-wp_genesis 9
mp-wp_genesis 10 $excluded_parsers = array ("65.19.138.34" => 1, "69.162.64.82" => 1);
mp-wp_genesis 11 $time = time()-1420000000;
mp-wp_genesis 12 if ($excluded_parsers[$_SERVER['REMOTE_ADDR']] < 1) $feed_brand = base64_encode(mt_rand(10,99).$time."|".$_SERVER['REMOTE_ADDR']);
mp-wp_genesis 13
mp-wp_genesis 14
mp-wp_genesis 15 header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
mp-wp_genesis 16 $more = 1;
mp-wp_genesis 17
mp-wp_genesis 18 ?>
mp-wp_genesis 19 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
mp-wp_genesis 20
mp-wp_genesis 21 <rss version="2.0"
mp-wp_genesis 22 xmlns:content="http://purl.org/rss/1.0/modules/content/"
mp-wp_genesis 23 xmlns:wfw="http://wellformedweb.org/CommentAPI/"
mp-wp_genesis 24 xmlns:dc="http://purl.org/dc/elements/1.1/"
mp-wp_genesis 25 xmlns:atom="http://www.w3.org/2005/Atom"
mp-wp_genesis 26 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
mp-wp_genesis 27 <?php do_action('rss2_ns'); ?>
mp-wp_genesis 28 >
mp-wp_genesis 29
mp-wp_genesis 30 <channel>
mp-wp_genesis 31 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
mp-wp_genesis 32 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
mp-wp_genesis 33 <link><?php bloginfo_rss('url') ?></link>
mp-wp_genesis 34 <description><?php bloginfo_rss("description") ?></description>
mp-wp_genesis 35 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate>
mp-wp_genesis 36 <?php the_generator( 'rss2' ); ?>
mp-wp_genesis 37 <language><?php echo get_option('rss_language'); ?></language>
mp-wp_genesis 38 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
mp-wp_genesis 39 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
mp-wp_genesis 40 <?php do_action('rss2_head'); ?>
mp-wp_genesis 41 <?php while( have_posts()) : the_post(); ?>
mp-wp_genesis 42 <item>
mp-wp_genesis 43 <title><?php the_title_rss() ?></title>
mp-wp_genesis 44 <link><?php the_permalink_rss() ?></link>
mp-wp_genesis 45 <comments><?php comments_link(); ?></comments>
mp-wp_genesis 46 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
mp-wp_genesis 47 <dc:creator><?php the_author() ?></dc:creator>
mp-wp_genesis 48 <?php the_category_rss() ?>
mp-wp_genesis 49
mp-wp_genesis 50 <guid isPermaLink="false"><?php the_guid(); ?></guid>
mp-wp_genesis 51 <?php if (get_option('rss_use_excerpt')) : ?>
mp-wp_genesis 52 <description><![CDATA[<?php echo $feed_brand; the_excerpt_rss() ?>]]></description>
mp-wp_genesis 53 <?php else : ?>
mp-wp_genesis 54 <description><![CDATA[<?php echo $feed_brand; the_excerpt_rss() ?>]]></description>
mp-wp_genesis 55 <?php if ( strlen( $post->post_content ) > 0 ) : ?>
mp-wp_genesis 56 <content:encoded><![CDATA[<?php echo $feed_brand; the_excerpt_rss() ?>]]></content:encoded>
mp-wp_genesis 57 <?php else : ?>
mp-wp_genesis 58 <content:encoded><![CDATA[<?php echo $feed_brand; the_excerpt_rss() ?>]]></content:encoded>
mp-wp_genesis 59 <?php endif; ?>
mp-wp_genesis 60 <?php endif; ?>
mp-wp_genesis 61 <wfw:commentRss><?php echo get_post_comments_feed_link(); ?></wfw:commentRss>
mp-wp_genesis 62 <?php rss_enclosure(); ?>
mp-wp_genesis 63 <?php do_action('rss2_item'); ?>
mp-wp_genesis 64 </item>
mp-wp_genesis 65 <?php endwhile; ?>
mp-wp_genesis 66 </channel>
mp-wp_genesis 67 </rss>