WordPress 3.0 beta 1 documentation kindly provided to you by Hay Kranen
| [ Index ] |
PHP Cross Reference of WordPress 3.0 beta 1 |
|
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Atom Feed Template for displaying Atom Posts feed. 4 * 5 * @package WordPress 6 */ 7 8 header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true); 9 $more = 1; 10 11 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 12 <feed 13 xmlns="http://www.w3.org/2005/Atom" 14 xmlns:thr="http://purl.org/syndication/thread/1.0" 15 xml:lang="<?php echo get_option('rss_language'); ?>" 16 xml:base="<?php bloginfo_rss('url') ?>/wp-atom.php" 17 <?php do_action('atom_ns'); ?> 18 > 19 <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title> 20 <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle> 21 22 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated> 23 24 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" /> 25 <id><?php bloginfo('atom_url'); ?></id> 26 <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" /> 27 28 <?php do_action('atom_head'); ?> 29 <?php while (have_posts()) : the_post(); ?> 30 <entry> 31 <author> 32 <name><?php the_author() ?></name> 33 <?php $author_url = get_the_author_meta('url'); if ( !empty($author_url) ) : ?> 34 <uri><?php the_author_meta('url')?></uri> 35 <?php endif; ?> 36 </author> 37 <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title> 38 <link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" /> 39 <id><?php the_guid(); ?></id> 40 <updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated> 41 <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published> 42 <?php the_category_rss('atom') ?> 43 <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary> 44 <?php if ( !get_option('rss_use_excerpt') ) : ?> 45 <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content_feed('atom') ?>]]></content> 46 <?php endif; ?> 47 <?php atom_enclosure(); ?> 48 <?php do_action('atom_entry'); ?> 49 <link rel="replies" type="text/html" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/> 50 <link rel="replies" type="application/atom+xml" href="<?php echo get_post_comments_feed_link(0,'atom') ?>" thr:count="<?php echo get_comments_number()?>"/> 51 <thr:total><?php echo get_comments_number()?></thr:total> 52 </entry> 53 <?php endwhile ; ?> 54 </feed>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Apr 5 14:26:09 2010 | Cross-referenced by PHPXref 0.7 |