web/wp-includes/feed-rss2.php
changeset 194 32102edaa81b
parent 136 bde1974c263b
child 204 09a1c134465b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
    24 	<title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    24 	<title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    25 	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    25 	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    26 	<link><?php bloginfo_rss('url') ?></link>
    26 	<link><?php bloginfo_rss('url') ?></link>
    27 	<description><?php bloginfo_rss("description") ?></description>
    27 	<description><?php bloginfo_rss("description") ?></description>
    28 	<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
    28 	<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
    29 	<?php the_generator( 'rss2' ); ?>
    29 	<language><?php bloginfo_rss( 'language' ); ?></language>
    30 	<language><?php echo get_option('rss_language'); ?></language>
       
    31 	<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
    30 	<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
    32 	<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    31 	<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    33 	<?php do_action('rss2_head'); ?>
    32 	<?php do_action('rss2_head'); ?>
    34 	<?php while( have_posts()) : the_post(); ?>
    33 	<?php while( have_posts()) : the_post(); ?>
    35 	<item>
    34 	<item>
    36 		<title><?php the_title_rss() ?></title>
    35 		<title><?php the_title_rss() ?></title>
    37 		<link><?php the_permalink_rss() ?></link>
    36 		<link><?php the_permalink_rss() ?></link>
    38 		<comments><?php comments_link(); ?></comments>
    37 		<comments><?php comments_link_feed(); ?></comments>
    39 		<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    38 		<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    40 		<dc:creator><?php the_author() ?></dc:creator>
    39 		<dc:creator><?php the_author() ?></dc:creator>
    41 		<?php the_category_rss() ?>
    40 		<?php the_category_rss('rss2') ?>
    42 
    41 
    43 		<guid isPermaLink="false"><?php the_guid(); ?></guid>
    42 		<guid isPermaLink="false"><?php the_guid(); ?></guid>
    44 <?php if (get_option('rss_use_excerpt')) : ?>
    43 <?php if (get_option('rss_use_excerpt')) : ?>
    45 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    44 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    46 <?php else : ?>
    45 <?php else : ?>
    49 		<content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded>
    48 		<content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded>
    50 	<?php else : ?>
    49 	<?php else : ?>
    51 		<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    50 		<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    52 	<?php endif; ?>
    51 	<?php endif; ?>
    53 <?php endif; ?>
    52 <?php endif; ?>
    54 		<wfw:commentRss><?php echo get_post_comments_feed_link(null, 'rss2'); ?></wfw:commentRss>
    53 		<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss>
    55 		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
    54 		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
    56 <?php rss_enclosure(); ?>
    55 <?php rss_enclosure(); ?>
    57 	<?php do_action('rss2_item'); ?>
    56 	<?php do_action('rss2_item'); ?>
    58 	</item>
    57 	</item>
    59 	<?php endwhile; ?>
    58 	<?php endwhile; ?>