本文整理汇总了PHP中comments_rss函数的典型用法代码示例。如果您正苦于以下问题:PHP comments_rss函数的具体用法?PHP comments_rss怎么用?PHP comments_rss使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了comments_rss函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: the_title
the_title();
?>
</h2>
<div class="entry-content">
<?php
the_content('<span class="more-link">' . __('Read More', 'veryplaintxt') . '</span>');
?>
<?php
link_pages('<div class="page-link">' . __('Pages: ', 'veryplaintxt'), "</div>\n", 'number');
?>
</div>
<div class="entry-meta">
<?php
printf(__('This was written by %1$s. Posted on <abbr class="published" title="%2$s">%3$s at %4$s</abbr>. Filed under %5$s. %6$sBookmark the <a href="%7$s" title="Permalink to %8$s" rel="bookmark">permalink</a>. Follow comments here with the <a href="%9$s" title="Comments RSS to %8$s" rel="alternate" type="application/rss+xml">RSS feed</a>.', 'veryplaintxt'), '<span class="vcard"><span class="fn n">' . $authordata->display_name . '</span></span>', get_the_time('Y-m-d\\TH:i:sO'), the_date('l, F j, Y,', '', '', false), get_the_time(), get_the_category_list(', '), get_the_tag_list('Tagged ', ', ', '. '), get_permalink(), wp_specialchars(get_the_title(), 'double'), comments_rss());
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
?>
<?php
printf(__('<a href="#respond" title="Post a comment">Post a comment</a> or leave a <a href="%s" rel="trackback" title="Trackback URL for your post">trackback</a>.', 'veryplaintxt'), get_trackback_url());
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
?>
<?php
printf(__('Comments are closed, but you can leave a <a href="%s" rel="trackback" title="Trackback URL for your post">trackback</a>.', 'veryplaintxt'), get_trackback_url());
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
?>
<?php
printf(__('Trackbacks are closed, but you can <a href="#respond" title="Post a comment">post a comment</a>.', 'veryplaintxt'));
} elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
?>
<?php
示例2: the_excerpt
?>
</a></div>
<div class="entry-caption"><?php
if (!empty($post->post_excerpt)) {
the_excerpt();
}
?>
</div>
<?php
the_content();
?>
</div>
<div class="entry-meta">
<?php
printf(__('Posted by %1$s on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>. Bookmark the <a href="%6$s" title="Permalink to %7$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%8$s" title="Comments RSS to %7$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox'), '<span class="author vcard"><a class="url fn n" href="' . get_author_link(false, $authordata->ID, $authordata->user_nicename) . '" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">' . get_the_author() . '</a></span>', get_the_time('Y-m-d'), get_the_time('H:i:sO'), the_date('', '', '', false), get_the_time(), get_permalink(), the_title_attribute('echo=0'), comments_rss());
?>
<?php
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
// Comments and trackbacks open
?>
<?php
printf(__('<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox'), get_trackback_url());
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
// Only trackbacks open
?>
<?php
printf(__('Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox'), get_trackback_url());
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
// Only comments open
示例3: printf
?>
<?php
printf(__('<span class="entry-comments">Comments closed</span> <span class="meta-sep">—</span> <span class="entry-trackbacks"><a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URI</a></span>', 'plaintxtblog'), get_trackback_url());
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
?>
<?php
printf(__('<span class="entry-comments"><a href="#respond" title="Post a comment">Post a comment</a></span> <span class="meta-sep">—</span> <span class="entry-trackbacks">Trackbacks closed</span>', 'plaintxtblog'));
} elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
?>
<?php
_e('<span class="entry-comments">Comments closed</span> <span class="meta-sep">—</span> <span class="entry-trackbacks">Trackbacks closed</span>', 'plaintxtblog');
}
?>
<span class="entry-commentslink"><?php
printf(__('<a href="%1$s" title="%2$s comments RSS feed" rel="alternate" type="application/rss+xml">RSS 2.0 feed</a> for these comments', 'plaintxtblog'), comments_rss(), wp_specialchars(get_the_title(), 'double'));
?>
</span>
<span class="entry-metainfo"><?php
printf(__('This entry (<a href="%1$s" title="Permalink to %2$s" rel="bookmark">permalink</a>) was posted on <abbr class="published" title="%3$sT%4$s">%5$s at %6$s</abbr> by %7$s. Filed in %8$s%9$s.', 'plaintxtblog'), get_permalink(), wp_specialchars(get_the_title(), 'double'), get_the_time('Y-m-d'), get_the_time('H:i:sO'), the_date('l, F j, Y,', '', '', false), get_the_time(), '<span class="vcard"><span class="fn n">' . $authordata->display_name . '</span></span>', get_the_category_list(', '), get_the_tag_list(' and tagged ', ', '));
?>
<?php
edit_post_link(__('Edit this entry', 'plaintxtblog'));
?>
</span>
</div>
</div><!-- .post -->
<?php
comments_template();
示例4: the_title
the_title();
?>
</h2>
<div class="entry-content">
<?php
the_content('<span class="more-link">' . __('Read More »', 'sandbox') . '</span>');
?>
<?php
link_pages('<div class="page-link">' . __('Pages: ', 'sandbox'), '</div>', 'number');
?>
</div>
<div class="entry-meta">
<?php
printf(__('This entry was written by %1$s and posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr> and filed under %6$s%10$s. Bookmark the <a href="%7$s" title="Permalink to %8$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%9$s" title="Comments RSS to %8$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox'), '<a class="url fn" href="' . get_author_link(false, $authordata->ID, $authordata->user_nicename) . '" title="View all posts by ' . $authordata->display_name . '">' . get_the_author() . '</a>', get_the_time('Y-m-d'), get_the_time('H:i:sO'), the_date('', '', '', false), get_the_time(), get_the_category_list(', '), get_permalink(), wp_specialchars(get_the_title(), 'double'), comments_rss(), get_the_tag_list(__(' with tags '), ', '));
if (comments_open() && pings_open()) {
// COMMENTS & PINGS OPEN
?>
<?php
printf(__('<a href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URL</a>.', 'sandbox'), get_trackback_url());
} elseif (!comments_open() && pings_open()) {
// PINGS ONLY OPEN
?>
<?php
printf(__('Comments are closed, but you can leave a trackback: <a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URL</a>.', 'sandbox'), get_trackback_url());
} elseif (comments_open() && !pings_open()) {
// COMMENTS OPEN
?>
<?php
printf(__('Trackbacks are closed, but you can <a href="#respond" title="Post a comment">post a comment</a>.', 'sandbox'));
示例5: bloginfo_rss
<generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
<language><?php echo get_option('rss_language'); ?></language>
<?php do_action('rss2_head'); ?>
<?php while( have_posts()) : the_post(); ?>
<item>
<title><?php the_title_rss() ?></title>
<link><?php permalink_single_rss() ?></link>
<comments><?php comments_link(); ?></comments>
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
<dc:creator><?php the_author() ?></dc:creator>
<?php the_category_rss() ?>
<guid isPermaLink="false"><?php the_guid(); ?></guid>
<?php if (get_option('rss_use_excerpt')) : ?>
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php else : ?>
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php if ( strlen( $post->post_content ) > 0 ) : ?>
<content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>
<?php else : ?>
<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
<?php endif; ?>
<?php endif; ?>
<wfw:commentRss><?php echo comments_rss(); ?></wfw:commentRss>
<?php rss_enclosure(); ?>
<?php do_action('rss2_item'); ?>
</item>
<?php endwhile; ?>
</channel>
</rss>
示例6: previous_post_link
previous_post_link('%link', '<span class="meta-nav">«</span> %title');
?>
</div>
<div class="nav-next"><?php
next_post_link('%link', '%title <span class="meta-nav">»</span>');
?>
</div>
</div><!-- #nav-below -->
<h3>Actions</h3>
<ul class="actions">
<li class="with_icon">
<img alt="rss" src="http://s1.wordpress.com/wp-content/themes/pub/freshy/images/icons/feed-icon-16x16.gif" class="icon">
<a href="<?php
comments_rss();
?>
">Comments RSS</a>
</li>
<?php
if ('open' == $post->ping_status) {
// Comments or trackbacks open
?>
<li class="with_icon">
<img alt="trackback" src="http://s1.wordpress.com/wp-content/themes/pub/freshy/images/icons/trackback-icon-16x16.gif" class="icon">
<a title="make a trackback" rel="trackback" href="<?php
get_trackback_url();
?>
">Trackback</a>
</li>
示例7: comments_rss_link
function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = '') {
$url = comments_rss($commentsrssfilename);
echo "<a href='$url'>$link_text</a>";
}
示例8: the_content
the_content();
?>
]]></content:encoded>
<?php
} else {
?>
<content:encoded><![CDATA[<?php
the_excerpt_rss();
?>
]]></content:encoded>
<?php
}
}
?>
<wfw:commentRss><?php
echo comments_rss();
?>
</wfw:commentRss>
<?php
rss_enclosure();
?>
<?php
do_action('rss2_item');
?>
</item>
<?php
}
?>
</channel>
</rss>
示例9: comments_rss_link
function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = 'wp-commentsrss2.php', $echo = true)
{
$url = comments_rss($commentsrssfilename);
return _echo("<a href='{$url}'>{$link_text}</a>", $echo);
}
示例10: if
</div>
<div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt() ?></div>
<?php the_content( __( 'Continue reading <span class="meta-nav">»</span>', 'uthili' ) ); ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'uthili' ) . '&after=</div>') ?>
</div><!-- .entry-content -->
<div class="entry-utility">
<?php printf( __( 'This entry was posted in %1$s%2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'uthili' ),
get_the_category_list(', '),
get_the_tag_list( __( ' and tagged ', 'uthili' ), ', ', '' ),
get_permalink(),
the_title_attribute('echo=0'),
comments_rss() ) ?>
<?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>
<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'uthili' ), get_trackback_url() ) ?>
<?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>
<?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'uthili' ), get_trackback_url() ) ?>
<?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>
<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'uthili' ) ?>
<?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
<?php _e( 'Both comments and trackbacks are currently closed.', 'uthili' ) ?>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'uthili' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
</div><!-- .entry-utility -->
</div><!-- #post-<?php the_ID(); ?> -->
<?php comments_template(); ?>
示例11: comments_rss_link
function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = 'wp-commentsrss2.php')
{
$url = comments_rss($commentsrssfilename);
echo "<a href='{$url}'>{$link_text}</a>";
}
示例12: the_time
the_time(get_option('date_format'));
?>
</abbr></span>
</div><!-- .entry-meta -->
<div class="entry-content">
<?php
the_content();
wp_link_pages('before=<div class="page-link">' . __('Pages:', 'NMSU') . '&after=</div>');
?>
</div><!-- .entry-content -->
<div class="entry-utility">
<?php
printf(__('This entry was posted in %1$s%2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'NMSU'), get_the_category_list(', '), get_the_tag_list(__(' and tagged ', 'NMSU'), ', ', ''), get_permalink(), the_title_attribute('echo=0'), comments_rss());
?>
<?php
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
// Comments and trackbacks open
?>
<?php
printf(__('<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'NMSU'), get_trackback_url());
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
// Only trackbacks open
?>
<?php
printf(__('Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'NMSU'), get_trackback_url());
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
// Only comments open
示例13: printf
<?php
}
}
?>
</div><!-- .comments -->
<div id="primary" class="sidebar">
<ul>
<li class="entry-meta">
<h3><?php
printf(__('<a href="%1$s" title="%2$s">Home</a> > About This Post', 'simplr'), get_bloginfo('home'), wp_specialchars(get_bloginfo('name'), 1));
?>
</h3>
<?php
printf(__('<p>This was posted by <span class="vcard"><span class="fn n">%1$s</span></span> on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>. Bookmark the <a href="%6$s" title="Permalink to %7$s" rel="bookmark">permalink</a>.</p><p>Subscribe to the <a class="rss-linK" href="%8$s" title="Comments RSS for %7$s" rel="alternate" type="application/rss+xml">RSS feed</a> for all comments on this post.</p>', 'simplr'), get_the_author(), get_the_time('Y-m-d'), get_the_time('H:i:sO'), get_the_time('l, F jS, Y', false), get_the_time(), get_permalink(), wp_specialchars(get_the_title(), 'double'), comments_rss());
?>
</li>
<?php
if (!is_page()) {
?>
<li id="categories" class="entry-category">
<h3><?php
_e('Filed Under', 'simplr');
?>
</h3>
<ul>
<li><?php
the_category('</li><li>');
?>
</li>
示例14: grab_exif_data
<h4>Exif Data</h4>
<?php
grab_exif_data();
?>
</div>
</div>
<div class="entry-meta">
<a href="<?php
echo get_permalink($post->post_parent);
?>
" class="attachment-title" rel="attachment">« Back to: <?php
echo get_the_title($post->post_parent);
?>
</a>
<?php
printf(__('This photograph was taken by %1$s and posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>. Bookmark the <a href="%8$s" title="Permalink to %9$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%10$s" title="Comments RSS to %9$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox'), '<span class="author vcard"><a class="url fn n" href="' . get_author_link(false, $authordata->ID, $authordata->user_nicename) . '" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">' . get_the_author() . '</a></span>', get_the_time('Y-m-d'), get_the_time('H:i:sO'), the_date('', '', '', false), get_the_time(), get_the_category_list(', '), get_the_tag_list(' ' . __('and tagged') . ' ', ', ', ''), get_permalink(), wp_specialchars(get_the_title(), 'double'), comments_rss());
?>
<?php
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
// Comments and trackbacks open
?>
<?php
printf(__('<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox'), get_trackback_url());
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
// Only trackbacks open
?>
<?php
printf(__('Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox'), get_trackback_url());
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
// Only comments open