/**
* The template for displaying comments
*
* The area of the page that contains both current comments
* and the comment form.
*
* @package WordPress
* @subpackage Twenty_Fifteen
* @since Twenty Fifteen 1.0
*/
/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() ) {
return;
}
?>
一键复制
编辑
Web IDE
原始数据
按行查看
历史
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() ) :
?>
全部评论:<?php echo get_comments_number();?>条
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<?php paginate_comments_links('prev_text=&next_text='); ?>