summaryrefslogtreecommitdiffstats
path: root/includes/comments.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2020-07-13 19:16:09 +0800
committerGitHub <noreply@github.com>2020-07-13 19:16:09 +0800
commiteb76e462647e334c58890da50b9fc5897de93bd8 (patch)
tree29ceacdac93066f42a444e1064d57bdfa9925f02 /includes/comments.php
parent97b29666220652dd78312afb25f8f782cf56d3a8 (diff)
:poop: Fix: 评论列表缺失 #comments id #70
Diffstat (limited to 'includes/comments.php')
-rw-r--r--includes/comments.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/comments.php b/includes/comments.php
index 78b6357..7439c90 100644
--- a/includes/comments.php
+++ b/includes/comments.php
@@ -54,7 +54,7 @@ echo $commentClass;
<?php $this->comments()->to($comments); ?>
<?php if($this->fields->commentShow == 0)://如果显示评论列表 ?>
<?php if ($comments->have())://如果有评论 则显示 ?>
- <div class="comment-container">
+ <div class="comment-container" id="comments">
<h3 class="comment-title" id="response"><?php $this->commentsNum(_t('暂无评论'), _t('已有 1 条评论'), _t('已有 %d 条评论')); ?></h3>
<?php $comments->listComments(array(
'before' => '<div class="comment-list" role="list">',
@@ -109,4 +109,4 @@ echo $commentClass;
</div>
</div>
<?php //兼容 typecho 反垃圾
- if ($this->options->commentsAntiSpam) { Comments::AntiSpam($this->respondId, Typecho_Common::shuffleScriptVar($this->security->getToken(preg_replace('/\??&?_pjax=[^&]+/i','',$this->request->getRequestUrl())))); } ?> \ No newline at end of file
+ if ($this->options->commentsAntiSpam) { Comments::AntiSpam($this->respondId, Typecho_Common::shuffleScriptVar($this->security->getToken(preg_replace('/\??&?_pjax=[^&]+/i','',$this->request->getRequestUrl())))); } ?>