web/wp-includes/feed-atom.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
    19 	<title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    19 	<title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    20 	<subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
    20 	<subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
    21 
    21 
    22 	<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>
    22 	<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>
    23 
    23 
    24 	<link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" />
    24 	<link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('url') ?>" />
    25 	<id><?php bloginfo('atom_url'); ?></id>
    25 	<id><?php bloginfo('atom_url'); ?></id>
    26 	<link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />
    26 	<link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />
    27 
    27 
    28 	<?php do_action('atom_head'); ?>
    28 	<?php do_action('atom_head'); ?>
    29 	<?php while (have_posts()) : the_post(); ?>
    29 	<?php while (have_posts()) : the_post(); ?>
    34 			<uri><?php the_author_meta('url')?></uri>
    34 			<uri><?php the_author_meta('url')?></uri>
    35 			<?php endif;
    35 			<?php endif;
    36 			do_action('atom_author'); ?>
    36 			do_action('atom_author'); ?>
    37 		</author>
    37 		</author>
    38 		<title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
    38 		<title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
    39 		<link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
    39 		<link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>" />
    40 		<id><?php the_guid() ; ?></id>
    40 		<id><?php the_guid() ; ?></id>
    41 		<updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
    41 		<updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
    42 		<published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
    42 		<published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
    43 		<?php the_category_rss('atom') ?>
    43 		<?php the_category_rss('atom') ?>
    44 		<summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
    44 		<summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
    45 <?php if ( !get_option('rss_use_excerpt') ) : ?>
    45 <?php if ( !get_option('rss_use_excerpt') ) : ?>
    46 		<content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content_feed('atom') ?>]]></content>
    46 		<content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content_feed('atom') ?>]]></content>
    47 <?php endif; ?>
    47 <?php endif; ?>
    48 <?php atom_enclosure(); ?>
    48 <?php atom_enclosure(); ?>
    49 <?php do_action('atom_entry'); ?>
    49 <?php do_action('atom_entry'); ?>
    50 		<link rel="replies" type="text/html" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
    50 		<link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
    51 		<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 		<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()?>"/>
    52 		<thr:total><?php echo get_comments_number()?></thr:total>
    52 		<thr:total><?php echo get_comments_number()?></thr:total>
    53 	</entry>
    53 	</entry>
    54 	<?php endwhile ; ?>
    54 	<?php endwhile ; ?>
    55 </feed>
    55 </feed>