diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2020-01-23 12:58:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-23 12:58:28 +0800 |
| commit | 08f7a3b2485b475e2411f994aeb10fd493449c20 (patch) | |
| tree | 0afa0d405062d536a9fe9fc0917851dba3a75c6f | |
| parent | c38b5dca2ac8754dd76471cffc40947b4153eb62 (diff) | |
⚔️ Remove: 删除无用的 if 语句
| -rw-r--r-- | includes/comments.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/comments.php b/includes/comments.php index 61021ef..cc53bc1 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -49,7 +49,7 @@ echo $commentClass; <?php if($this->fields->commentShow == 0)://如果显示评论列表 ?>
<?php if ($comments->have())://如果有评论 则显示 ?>
<div class="comment-container">
- <h3 class="comment-title"><?php $this->commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?></h3>
+ <h3 class="comment-title" id="response"><?php $this->commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?></h3>
<?php $comments->listComments(array(
'before' => '<div class="comment-list">',
'after' => '</div>',
@@ -63,7 +63,7 @@ echo $commentClass; <?php endif;//有无评论判断结束?>
<?php else: //如果不显示评论列表 ?>
- <?php if($this->allow('comment')): ?><div class="comment-hidden">博主已关闭本页面的评论显示<?php if($this->allow('comment')): ?>,您评论后将不会看到您的评论内容<?php endif; ?></div><?php endif; ?>
+ <?php if($this->allow('comment')): ?><div class="comment-hidden">博主已关闭本页面的评论显示,您评论后将不会看到您的评论内容</div><?php endif; ?>
<?php endif;//是否显示判断结束 ?>
<div class="comment-form">
|
