2007-02-22 21:50:05 -05:00
|
|
|
<?php
|
2007-12-25 15:48:01 -05:00
|
|
|
/**
|
|
|
|
* Atom Feed Template for displaying Atom Posts feed.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
*/
|
|
|
|
|
2009-01-19 00:04:58 -05:00
|
|
|
header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true);
|
2007-02-22 21:50:05 -05:00
|
|
|
$more = 1;
|
|
|
|
|
2014-07-07 06:18:15 -04:00
|
|
|
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
|
|
|
|
|
|
|
/** This action is documented in wp-includes/feed-rss2.php */
|
|
|
|
do_action( 'rss_tag_pre', 'atom' );
|
|
|
|
?>
|
2007-02-22 21:50:05 -05:00
|
|
|
<feed
|
|
|
|
xmlns="http://www.w3.org/2005/Atom"
|
|
|
|
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
2012-01-29 14:56:33 -05:00
|
|
|
xml:lang="<?php bloginfo_rss( 'language' ); ?>"
|
2009-12-30 12:05:02 -05:00
|
|
|
xml:base="<?php bloginfo_rss('url') ?>/wp-atom.php"
|
2013-09-20 18:50:10 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Fires at end of the Atom feed root to add namespaces.
|
|
|
|
*
|
|
|
|
* @since 2.0.0
|
|
|
|
*/
|
|
|
|
do_action( 'atom_ns' );
|
|
|
|
?>
|
2007-02-22 21:50:05 -05:00
|
|
|
>
|
2007-03-28 21:29:09 -04:00
|
|
|
<title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
|
2007-02-22 21:50:05 -05:00
|
|
|
<subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
|
2007-02-27 10:24:54 -05:00
|
|
|
|
2009-05-13 22:00:32 -04:00
|
|
|
<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>
|
2007-02-22 21:50:05 -05:00
|
|
|
|
2012-07-20 11:08:45 -04:00
|
|
|
<link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('url') ?>" />
|
2007-02-22 21:50:05 -05:00
|
|
|
<id><?php bloginfo('atom_url'); ?></id>
|
2008-03-11 14:18:22 -04:00
|
|
|
<link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />
|
2007-02-22 21:50:05 -05:00
|
|
|
|
2013-09-20 18:50:10 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Fires just before the first Atom feed entry.
|
|
|
|
*
|
|
|
|
* @since 2.0.0
|
|
|
|
*/
|
|
|
|
do_action( 'atom_head' );
|
|
|
|
|
|
|
|
while ( have_posts() ) : the_post();
|
|
|
|
?>
|
2007-02-22 21:50:05 -05:00
|
|
|
<entry>
|
|
|
|
<author>
|
|
|
|
<name><?php the_author() ?></name>
|
2009-05-20 17:32:39 -04:00
|
|
|
<?php $author_url = get_the_author_meta('url'); if ( !empty($author_url) ) : ?>
|
|
|
|
<uri><?php the_author_meta('url')?></uri>
|
2011-04-17 03:39:41 -04:00
|
|
|
<?php endif;
|
2013-09-20 18:50:10 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Fires at the end of each Atom feed author entry.
|
|
|
|
*
|
|
|
|
* @since 3.2.0
|
|
|
|
*/
|
|
|
|
do_action( 'atom_author' );
|
|
|
|
?>
|
2007-02-22 21:50:05 -05:00
|
|
|
</author>
|
2007-11-06 13:23:16 -05:00
|
|
|
<title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
|
2012-07-20 11:08:45 -04:00
|
|
|
<link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>" />
|
2010-05-26 13:27:18 -04:00
|
|
|
<id><?php the_guid() ; ?></id>
|
2007-09-12 12:26:39 -04:00
|
|
|
<updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
|
2007-02-22 21:50:05 -05:00
|
|
|
<published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
|
|
|
|
<?php the_category_rss('atom') ?>
|
2007-11-06 13:23:16 -05:00
|
|
|
<summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
|
2007-02-22 21:50:05 -05:00
|
|
|
<?php if ( !get_option('rss_use_excerpt') ) : ?>
|
2009-09-28 10:36:48 -04:00
|
|
|
<content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content_feed('atom') ?>]]></content>
|
2007-02-22 21:50:05 -05:00
|
|
|
<?php endif; ?>
|
2013-09-20 18:50:10 -04:00
|
|
|
<?php atom_enclosure();
|
|
|
|
/**
|
|
|
|
* Fires at the end of each Atom feed item.
|
|
|
|
*
|
|
|
|
* @since 2.0.0
|
|
|
|
*/
|
|
|
|
do_action( 'atom_entry' );
|
|
|
|
?>
|
2012-07-20 11:08:45 -04:00
|
|
|
<link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
|
2012-11-07 14:56:10 -05:00
|
|
|
<link rel="replies" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link(0, 'atom') ); ?>" thr:count="<?php echo get_comments_number()?>"/>
|
2007-12-10 01:57:58 -05:00
|
|
|
<thr:total><?php echo get_comments_number()?></thr:total>
|
2007-02-22 21:50:05 -05:00
|
|
|
</entry>
|
|
|
|
<?php endwhile ; ?>
|
2007-09-12 12:26:39 -04:00
|
|
|
</feed>
|