equal
deleted
inserted
replaced
25 * @since 2.0.0 |
25 * @since 2.0.0 |
26 */ |
26 */ |
27 do_action( 'atom_ns' ); |
27 do_action( 'atom_ns' ); |
28 ?> |
28 ?> |
29 > |
29 > |
30 <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title> |
30 <title type="text"><?php wp_title_rss(); ?></title> |
31 <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle> |
31 <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle> |
32 |
32 |
33 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated> |
33 <updated><?php |
|
34 $date = get_lastpostmodified( 'GMT' ); |
|
35 echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' ); |
|
36 ?></updated> |
34 |
37 |
35 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('url') ?>" /> |
38 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('url') ?>" /> |
36 <id><?php bloginfo('atom_url'); ?></id> |
39 <id><?php bloginfo('atom_url'); ?></id> |
37 <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" /> |
40 <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" /> |
38 |
41 |
76 * Fires at the end of each Atom feed item. |
79 * Fires at the end of each Atom feed item. |
77 * |
80 * |
78 * @since 2.0.0 |
81 * @since 2.0.0 |
79 */ |
82 */ |
80 do_action( 'atom_entry' ); |
83 do_action( 'atom_entry' ); |
|
84 |
|
85 if ( get_comments_number() || comments_open() ) : |
81 ?> |
86 ?> |
82 <link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/> |
87 <link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/> |
83 <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()?>"/> |
88 <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()?>"/> |
84 <thr:total><?php echo get_comments_number()?></thr:total> |
89 <thr:total><?php echo get_comments_number()?></thr:total> |
|
90 <?php endif; ?> |
85 </entry> |
91 </entry> |
86 <?php endwhile ; ?> |
92 <?php endwhile ; ?> |
87 </feed> |
93 </feed> |