web/wp-includes/feed-rss2-comments.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
    17 	<?php do_action('rss2_ns'); do_action('rss2_comments_ns'); ?>
    17 	<?php do_action('rss2_ns'); do_action('rss2_comments_ns'); ?>
    18 	>
    18 	>
    19 <channel>
    19 <channel>
    20 	<title><?php
    20 	<title><?php
    21 		if ( is_singular() )
    21 		if ( is_singular() )
    22 			printf(ent2ncr(__('Comments on: %s')), get_the_title_rss());
    22 			printf( ent2ncr( __( 'Comments on: %s' ) ), get_the_title_rss() );
    23 		elseif ( is_search() )
    23 		elseif ( is_search() )
    24 			printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), esc_attr($wp_query->query_vars['s']));
    24 			printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() );
    25 		else
    25 		else
    26 			printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
    26 			printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() );
    27 	?></title>
    27 	?></title>
    28 	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    28 	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    29 	<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    29 	<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    30 	<description><?php bloginfo_rss("description") ?></description>
    30 	<description><?php bloginfo_rss("description") ?></description>
    31 	<lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
    31 	<lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
    52 		<guid isPermaLink="false"><?php comment_guid() ?></guid>
    52 		<guid isPermaLink="false"><?php comment_guid() ?></guid>
    53 <?php if ( post_password_required($comment_post) ) : ?>
    53 <?php if ( post_password_required($comment_post) ) : ?>
    54 		<description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description>
    54 		<description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description>
    55 		<content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
    55 		<content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
    56 <?php else : // post pass ?>
    56 <?php else : // post pass ?>
    57 		<description><?php comment_text_rss() ?></description>
    57 		<description><![CDATA[<?php comment_text_rss() ?>]]></description>
    58 		<content:encoded><![CDATA[<?php comment_text() ?>]]></content:encoded>
    58 		<content:encoded><![CDATA[<?php comment_text() ?>]]></content:encoded>
    59 <?php endif; // post pass
    59 <?php endif; // post pass
    60 	do_action('commentrss2_item', $comment->comment_ID, $comment_post->ID);
    60 	do_action('commentrss2_item', $comment->comment_ID, $comment_post->ID);
    61 ?>
    61 ?>
    62 	</item>
    62 	</item>