mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Atom Feed Template for displaying Atom 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/atom+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 <feed
mp-wp_genesis 14 xmlns="http://www.w3.org/2005/Atom"
mp-wp_genesis 15 xmlns:thr="http://purl.org/syndication/thread/1.0"
mp-wp_genesis 16 xml:lang="<?php echo get_option('rss_language'); ?>"
mp-wp_genesis 17 xml:base="<?php bloginfo_rss('home') ?>/wp-atom.php"
mp-wp_genesis 18 <?php do_action('atom_ns'); ?>
mp-wp_genesis 19 >
mp-wp_genesis 20 <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
mp-wp_genesis 21 <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
mp-wp_genesis 22
mp-wp_genesis 23 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated>
mp-wp_genesis 24 <?php the_generator( 'atom' ); ?>
mp-wp_genesis 25
mp-wp_genesis 26 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
mp-wp_genesis 27 <id><?php bloginfo('atom_url'); ?></id>
mp-wp_genesis 28 <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />
mp-wp_genesis 29
mp-wp_genesis 30 <?php do_action('atom_head'); ?>
mp-wp_genesis 31 <?php while (have_posts()) : the_post(); ?>
mp-wp_genesis 32 <entry>
mp-wp_genesis 33 <author>
mp-wp_genesis 34 <name><?php the_author() ?></name>
mp-wp_genesis 35 <?php $author_url = get_the_author_url(); if ( !empty($author_url) ) : ?>
mp-wp_genesis 36 <uri><?php the_author_url()?></uri>
mp-wp_genesis 37 <?php endif; ?>
mp-wp_genesis 38 </author>
mp-wp_genesis 39 <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
mp-wp_genesis 40 <link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
mp-wp_genesis 41 <id><?php the_guid(); ?></id>
mp-wp_genesis 42 <updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
mp-wp_genesis 43 <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
mp-wp_genesis 44 <?php the_category_rss('atom') ?>
mp-wp_genesis 45 <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
mp-wp_genesis 46 <?php if ( !get_option('rss_use_excerpt') ) : ?>
mp-wp_genesis 47 <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
mp-wp_genesis 48 <?php endif; ?>
mp-wp_genesis 49 <?php atom_enclosure(); ?>
mp-wp_genesis 50 <?php do_action('atom_entry'); ?>
mp-wp_genesis 51 <link rel="replies" type="text/html" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
mp-wp_genesis 52 <link rel="replies" type="application/atom+xml" href="<?php echo get_post_comments_feed_link(0,'atom') ?>" thr:count="<?php echo get_comments_number()?>"/>
mp-wp_genesis 53 <thr:total><?php echo get_comments_number()?></thr:total>
mp-wp_genesis 54 </entry>
mp-wp_genesis 55 <?php endwhile ; ?>
mp-wp_genesis 56 </feed>