Example #1
0
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	<?php 
do_action('rss2_ns');
do_action('rss2_comments_ns');
?>
	>
<channel>
	<title><?php 
if (is_singular()) {
    printf(ent2ncr(__('Comments on: %s')), get_the_title_rss());
} elseif (is_search()) {
    printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss('name'), esc_attr($nxt_query->query_vars['s']));
} else {
    printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss('name') . get_nxt_title_rss());
}
?>
</title>
	<atom:link href="<?php 
self_link();
?>
" rel="self" type="application/rss+xml" />
	<link><?php 
is_single() ? the_permalink_rss() : bloginfo_rss("url");
?>
</link>
	<description><?php 
bloginfo_rss("description");
?>
</description>
Example #2
0
/**
 * Display the blog title for display of the feed title.
 *
 * @package NXTClass
 * @subpackage Feed
 * @since 2.2.0
 * @uses apply_filters() Calls 'nxt_title_rss' on the blog title.
 * @see nxt_title() $sep parameter usage.
 *
 * @param string $sep Optional.
 */
function nxt_title_rss($sep = '&#187;')
{
    echo apply_filters('nxt_title_rss', get_nxt_title_rss($sep));
}