48 the_post(); |
48 the_post(); |
49 ?> |
49 ?> |
50 <entry> |
50 <entry> |
51 <author> |
51 <author> |
52 <name><?php the_author(); ?></name> |
52 <name><?php the_author(); ?></name> |
53 <?php $author_url = get_the_author_meta( 'url' ); if ( ! empty( $author_url ) ) : ?> |
53 <?php |
54 <uri><?php the_author_meta( 'url' ); ?></uri> |
54 $author_url = get_the_author_meta( 'url' ); |
|
55 if ( ! empty( $author_url ) ) : |
|
56 ?> |
|
57 <uri><?php the_author_meta( 'url' ); ?></uri> |
55 <?php |
58 <?php |
56 endif; |
59 endif; |
57 |
60 |
58 /** |
61 /** |
59 * Fires at the end of each Atom feed author entry. |
62 * Fires at the end of each Atom feed author entry. |
61 * @since 3.2.0 |
64 * @since 3.2.0 |
62 */ |
65 */ |
63 do_action( 'atom_author' ); |
66 do_action( 'atom_author' ); |
64 ?> |
67 ?> |
65 </author> |
68 </author> |
|
69 |
66 <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss(); ?>]]></title> |
70 <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss(); ?>]]></title> |
67 <link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>" /> |
71 <link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>" /> |
|
72 |
68 <id><?php the_guid(); ?></id> |
73 <id><?php the_guid(); ?></id> |
69 <updated><?php echo get_post_modified_time( 'Y-m-d\TH:i:s\Z', true ); ?></updated> |
74 <updated><?php echo get_post_modified_time( 'Y-m-d\TH:i:s\Z', true ); ?></updated> |
70 <published><?php echo get_post_time( 'Y-m-d\TH:i:s\Z', true ); ?></published> |
75 <published><?php echo get_post_time( 'Y-m-d\TH:i:s\Z', true ); ?></published> |
71 <?php the_category_rss( 'atom' ); ?> |
76 <?php the_category_rss( 'atom' ); ?> |
|
77 |
72 <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary> |
78 <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary> |
|
79 |
73 <?php if ( ! get_option( 'rss_use_excerpt' ) ) : ?> |
80 <?php if ( ! get_option( 'rss_use_excerpt' ) ) : ?> |
74 <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss(); ?>"><![CDATA[<?php the_content_feed( 'atom' ); ?>]]></content> |
81 <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss(); ?>"><![CDATA[<?php the_content_feed( 'atom' ); ?>]]></content> |
75 <?php endif; ?> |
82 <?php endif; ?> |
|
83 |
76 <?php |
84 <?php |
77 atom_enclosure(); |
85 atom_enclosure(); |
|
86 |
78 /** |
87 /** |
79 * Fires at the end of each Atom feed item. |
88 * Fires at the end of each Atom feed item. |
80 * |
89 * |
81 * @since 2.0.0 |
90 * @since 2.0.0 |
82 */ |
91 */ |
83 do_action( 'atom_entry' ); |
92 do_action( 'atom_entry' ); |
84 |
93 |
85 if ( get_comments_number() || comments_open() ) : |
94 if ( get_comments_number() || comments_open() ) : |
86 ?> |
95 ?> |
87 <link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" thr:count="<?php echo get_comments_number(); ?>"/> |
96 <link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" 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(); ?>"/> |
97 <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(); ?>"/> |
89 <thr:total><?php echo get_comments_number(); ?></thr:total> |
98 <thr:total><?php echo get_comments_number(); ?></thr:total> |
90 <?php endif; ?> |
99 <?php endif; ?> |
91 </entry> |
100 </entry> |
92 <?php endwhile; ?> |
101 <?php endwhile; ?> |
93 </feed> |
102 </feed> |