-
+ 22910259603E30E3437573C914A1190331CA5EAF4E79B0F830F38C2BEE8BB25A728D22EC20C87EE2A46B1D9C40D1104F81675B22D457C18633076E4EADE21D92
mp-wp/wp-includes/feed-rss2-comments.php
(0 . 0)(1 . 66)
88802 <?php
88803 /**
88804 * RSS2 Feed Template for displaying RSS2 Comments feed.
88805 *
88806 * @package WordPress
88807 */
88808
88809 header('Content-Type: text/xml;charset=' . get_option('blog_charset'), true);
88810
88811 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
88812 ?>
88813 <rss version="2.0"
88814 xmlns:content="http://purl.org/rss/1.0/modules/content/"
88815 xmlns:dc="http://purl.org/dc/elements/1.1/"
88816 xmlns:atom="http://www.w3.org/2005/Atom"
88817 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
88818 >
88819 <channel>
88820 <title><?php
88821 if ( is_singular() )
88822 printf(ent2ncr(__('Comments on: %s')), get_the_title_rss());
88823 elseif ( is_search() )
88824 printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), attribute_escape($wp_query->query_vars['s']));
88825 else
88826 printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
88827 ?></title>
88828 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
88829 <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
88830 <description><?php bloginfo_rss("description") ?></description>
88831 <pubDate><?php echo gmdate('r'); ?></pubDate>
88832 <?php the_generator( 'rss2' ); ?>
88833 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
88834 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
88835 <?php do_action('commentsrss2_head'); ?>
88836 <?php
88837 if ( have_comments() ) : while ( have_comments() ) : the_comment();
88838 $comment_post = get_post($comment->comment_post_ID);
88839 get_post_custom($comment_post->ID);
88840 ?>
88841 <item>
88842 <title><?php
88843 if ( !is_singular() ) {
88844 $title = get_the_title($comment_post->ID);
88845 $title = apply_filters('the_title_rss', $title);
88846 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
88847 } else {
88848 printf(ent2ncr(__('By: %s')), get_comment_author_rss());
88849 }
88850 ?></title>
88851 <link><?php comment_link() ?></link>
88852 <dc:creator><?php echo get_comment_author_rss() ?></dc:creator>
88853 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true), false); ?></pubDate>
88854 <guid isPermaLink="false"><?php comment_guid() ?></guid>
88855 <?php if ( post_password_required($comment_post) ) : ?>
88856 <description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description>
88857 <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
88858 <?php else : // post pass ?>
88859 <description><?php comment_text_rss() ?></description>
88860 <content:encoded><![CDATA[<?php comment_text() ?>]]></content:encoded>
88861 <?php endif; // post pass
88862 do_action('commentrss2_item', $comment->comment_ID, $comment_post->ID);
88863 ?>
88864 </item>
88865 <?php endwhile; endif; ?>
88866 </channel>
88867 </rss>