本文整理汇总了PHP中comments_rss_link函数的典型用法代码示例。如果您正苦于以下问题:PHP comments_rss_link函数的具体用法?PHP comments_rss_link怎么用?PHP comments_rss_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了comments_rss_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
<?php elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) : ?>
<li class="comment-link"><?php _e('Comments closed', 'webjournal') ?></li>
<li class="trackback-link"><?php printf(__('<a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URI</a>', 'webjournal'), get_trackback_url() ) ?></li>
<?php elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) : ?>
<li class="comment-link"><?php _e('<a href="#respond" title="Post a comment">Post a comment</a>', 'webjournal') ?></li>
<li class="trackback-link"><?php _e('Trackbacks closed', 'webjournal') ?></li>
<?php elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) : ?>
<li class="comment-link"><?php _e('Comments closed', 'webjournal') ?></li>
<li class="trackback-link"><?php _e('Trackbacks closed', 'webjournal') ?></li>
<?php endif; ?>
</ul>
</li>
<li id="rss-links">
<h3><?php _e('RSS Feeds', 'webjournal') ?></h3>
<ul>
<li><?php comments_rss_link(__('Comments to this post', 'webjournal')); ?></li>
<li><a href="<?php bloginfo('rss2_url') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?> RSS 2.0 Feed" rel="alternate" type="application/rss+xml"><?php _e('All posts', 'webjournal') ?></a></li>
<li><a href="<?php bloginfo('comments_rss2_url') ?>" title="<?php echo wp_specialchars(bloginfo('name'), 1) ?> Comments RSS 2.0 Feed" rel="alternate" type="application/rss+xml"><?php _e('All comments', 'webjournal') ?></a></li>
</ul>
</li>
<li id="search">
<h3><label for="s"><?php _e('Search', 'webjournal') ?></label></h3>
<form id="searchform" method="get" action="<?php bloginfo('home') ?>">
<div>
<input id="s" name="s" type="text" value="<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>" size="10" />
<input id="searchsubmit" name="searchsubmit" type="submit" value="<?php _e('Find', 'webjournal') ?>" />
</div>
</form>
</li>
</ul>
</div><!-- attachment.php #secondary .sidebar -->
示例2: previous_comments_link
</ol>
<div class="navigation">
<div class="alignleft"><?php
previous_comments_link();
?>
</div>
<div class="alignright"><?php
next_comments_link();
?>
</div>
</div>
<br />
<small class="commentfeed"><?php
comments_rss_link('RSS Feed for this entry');
?>
</small>
<?php
if (!comments_open()) {
?>
<p class="nocomments">Comments are closed.</p>
<?php
}
}
?>
<?php
示例3: _e
</ol>
<?php
} else {
// If there are no comments yet
?>
<p><?php
_e('No comments yet.');
?>
</p>
<?php
}
?>
<p><?php
comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'));
if (pings_open()) {
?>
<a href="<?php
trackback_url();
?>
" rel="trackback"><?php
_e('TrackBack <abbr title="Universal Resource Locator">URL</abbr>');
?>
</a>
<?php
}
?>
</p>
<?php
示例4: elseif
<?php
}
} elseif (comments_open()) {
?>
<p><?php
_e('No comments yet.');
?>
</p>
<?php
}
?>
<p>
<?php
if (have_comments() || comments_open()) {
comments_rss_link(__('Comments RSS'));
}
if (pings_open()) {
?>
<a href="<?php
trackback_url();
?>
" rel="trackback"><?php
_e('TrackBack Identifier URI');
?>
</a>
<?php
}
?>
示例5: _e
<?php
}
?>
<fieldset>
<label for="comment" class="comment-field"><small><?php
_e('Comment:', 'titan');
?>
</small></label>
<textarea name="comment" id="comment" cols="50" rows="10" tabindex="4"></textarea>
</fieldset>
<p class="guidelines"><?php
_e('<strong>Note:</strong> XHTML is allowed. Your email address will <strong>never</strong> be published.', 'titan');
?>
</p>
<p class="comments-rss"><?php
comments_rss_link(__('Subscribe to this comment feed via RSS', 'titan'));
?>
</p>
<?php
do_action('comment_form', $post->ID);
?>
<fieldset>
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php
_e('Submit Comment', 'titan');
?>
" />
<input type="hidden" name="comment_post_ID" value="<?php
echo $id;
?>
" />
</fieldset>
示例6: comments_number
?>
<div id="precomments">
<div class="comleft">
<h3 id="comments">
<?php
comments_number('No Responses Yet', 'One Response', '% Responses');
?>
to “
<?php
the_title();
?>
”</h3>
</div>
<div class="comright">
<?php
comments_rss_link();
?>
</div>
<div style="clear: both"></div>
</div>
<div style="clear: both"></div>
<ol class="commentlist">
<?php
wp_list_comments(array('callback' => 'iceburgg_comment', 'avatar_size' => 48));
?>
</ol>
<div class="navigation">
<div class="alignleft"><?php
previous_comments_link();
示例7: get_option
?>
/wp-admin/profile.php"><?php
echo $user_identity;
?>
</a>. <a href="<?php
echo get_option('siteurl');
?>
/wp-login.php?action=logout" title="Se déconnecter">Se déconnecter »</a></p>
<?php
} else {
?>
<p>Ajoutez votre commentaire ci-dessous, ou créez un <a href="<?php
trackback_url(true);
?>
" rel="trackback">rétrolien</a> depuis votre site. Vous pouvez également <?php
comments_rss_link('souscrire à ces commentaires');
?>
par RSS. Merci de vous conformer à la netetiquette.</p>
<label>Nom <?php
if ($req) {
echo "(requis)";
}
?>
</label>
<input type="text" name="author" id="author" value="<?php
echo $comment_author;
?>
" class="span4" tabindex="1"/>
<label >Courriel (ne sera pas visible) <?php
if ($req) {
echo "(requis)";
示例8: previous_comments_link
<div class="navigation">
<div class="nav-previous"><?php
previous_comments_link(__('<span class="meta-nav">←</span> Older Comments', 'twentyten'));
?>
</div>
<div class="nav-next"><?php
next_comments_link(__('Newer Comments <span class="meta-nav">→</span>', 'twentyten'));
?>
</div>
</div><!-- .navigation -->
<?php
}
// check for comment navigation
?>
<div class="subc"><?php
comments_rss_link('Subscribe to comments');
?>
</div>
<?php
} else {
// or, if we don't have comments:
/* If there are no comments and comments are closed,
* let's leave a little note, shall we?
*/
if (!comments_open()) {
?>
<p class="nocomments"><?php
_e('Comments are closed.', 'twentyten');
?>
</p>
<?php
示例9: _e
?>
</dd>
<?php
}
?>
<?php
if ('open' == $post->comment_status) {
?>
<dt><img alt="<?php
_e('Comments rss', TEMPLATE_DOMAIN);
?>
" src="<?php
echo get_bloginfo('stylesheet_directory');
?>
/images/icons/feed-icon-16x16.gif" /></dt><dd><?php
comments_rss_link(__('Comments rss', TEMPLATE_DOMAIN));
?>
</dd>
<?php
}
?>
<?php
if ('open' == $post->ping_status) {
?>
<dt><img alt="<?php
_e('Trackback', TEMPLATE_DOMAIN);
?>
" src="<?php
echo get_bloginfo('stylesheet_directory');
?>
/images/icons/trackback-icon-16x16.gif" /></dt><dd><a href="<?php
示例10: die
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {
?>
<?php
die('Unauthorized');
?>
<?php
}
}
?>
<h3><?php
comments_number('No comments', 'One comment', '% comments');
?>
</h3>
<?php
comments_rss_link($link_text);
?>
<?php
if ($comments) {
?>
<ol>
<?php
foreach ($comments as $comment) {
?>
<li<?php
alternate_rows($i++);
?>
id="comment-<?php
comment_ID();
?>
示例11: comments_number
$oddcomment = 'class="comments-alt" ';
?>
<!-- You can start editing here. -->
<?php
if ($comments) {
?>
<h2 id="comments"><?php
comments_number('No Responses', 'Responses', 'Responses');
?>
</h2>
<div class="small">
<span class="feedlink"><?php
comments_rss_link('Feed');
?>
</span>
<?php
if ('open' == $post->ping_status) {
?>
<span class="trackbacklink"><a href="<?php
trackback_url();
?>
" title="Copy this URI to trackback this entry.">Trackback Address</a></span><?php
}
?>
</div>
<ol class="commentlist">
示例12: _e
echo $comment_author_url;
?>
" size="22" tabindex="3" /></p>
<?php
}
?>
<p><label for="comment" class="comment-field"><small><?php
_e('Comment:', 'vigilance');
?>
</small></label><textarea name="comment" id="comment" cols="50" rows="10" tabindex="4"></textarea></p>
<p class="guidelines"><?php
_e('<strong>Note:</strong> You can use basic XHTML in your comments. Your email address will <strong>never</strong> be published.', 'vigilance');
?>
</p>
<p class="comments-rss"><?php
comments_rss_link(__('Subscribe to this comment feed via RSS', 'vigilance'));
?>
</p>
<?php
do_action('comment_form', $post->ID);
?>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php
_e('Submit Comment', 'vigilance');
?>
" /><input type="hidden" name="comment_post_ID" value="<?php
echo $id;
?>
" /></p>
</form><!--end commentform-->
</div><!--end respond-->
<?php
示例13: trackback_url
?>
<div class="post-content">
<p>
<?php
if ($post->ping_status == "open") {
?>
<a href="<?php
trackback_url(display);
?>
">Trackback this post</a> |
<?php
}
if ($post->comment_status == "open") {
?>
<?php
comments_rss_link('Feed on Comments to this post');
}
?>
</p>
</div>
<?php
if ('open' == $post->comment_status) {
?>
<h3 id="respond">Leave a Reply</h3>
<?php
if (get_option('comment_registration') && !$user_ID) {
?>
<p>You must be <a href="<?php
示例14: the_author
<div id="meta-info">
Author: <?php
the_author();
?>
<br />
Categories: <?php
the_category(', ');
?>
<br />
<?php
the_tags();
?>
<br />
<?php
comments_rss_link('Comments RSS for this post');
?>
<br /><br />
</div>
<?php
the_content();
wp_link_pages();
?>
<div class="boldnspace">
<?php
if (comments_open() && pings_open()) {
// Both Comments and Pings are open
?>
示例15: bloginfo
<hr class="featurette-divider" />
<!-- FOOTER -->
<footer>
<p class="pull-right"><a href="#">Back to top</a></p>
<p>© 2013 <?php
bloginfo('name');
?>
· <a href="#">Privacy</a> · <a href="#">Terms</a></p>
<p>Designed by <a href="http://www.hillfold.com">HillFold</a></p>
<p><a href="<?php
bloginfo('rss2_url');
?>
">Latest Stories RSS</a> | <a href="<?php
comments_rss_link('comment feed');
?>
">Comments RSS</a></p>
</footer>
</div><!-- /.container -->
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<?php
wp_footer();
?>
</body>
</html>