2 header('Content-Type: application/atom+xml; charset=' . get_option('blog_charset'), true);
6 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
8 xmlns="http://www.w3.org/2005/Atom"
9 xmlns:thr="http://purl.org/syndication/thread/1.0"
10 xml:lang="<?php echo get_option('rss_language'); ?>"
11 xml:base="<?php bloginfo_rss('home') ?>/wp-atom.php"
12 <?php do_action('atom_ns'); ?>
14 <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
15 <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
17 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated>
18 <generator uri="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
20 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
21 <id><?php bloginfo('atom_url'); ?></id>
22 <link rel="self" type="application/atom+xml" href="<?php bloginfo('atom_url'); ?>" />
24 <?php do_action('atom_head'); ?>
25 <?php while (have_posts()) : the_post(); ?>
28 <name><?php the_author() ?></name>
29 <?php $author_url = get_the_author_url(); if ( !empty($author_url) ) : ?>
30 <uri><?php the_author_url()?></uri>
33 <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
34 <link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
35 <id><?php the_guid(); ?></id>
36 <updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
37 <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
38 <?php the_category_rss('atom') ?>
39 <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
40 <?php if ( !get_option('rss_use_excerpt') ) : ?>
41 <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
43 <?php atom_enclosure(); ?>
44 <?php do_action('atom_entry'); ?>