summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-07-15 11:58:01 +0800
committerBigCoke233 <hi@guhub.cn>2020-07-15 11:58:01 +0800
commit00646ca95266c8b37ab56453e972fbb81c8aa927 (patch)
treeeeeea8a7735a208b74d4b80effd6411b95e5b95e /includes
parente96581380a2ab52a3fc9708ddbff61bade1f2288 (diff)
:pizza: Perf: 页面/文章评论列表隐藏时,不显示评论数;更新日志
Diffstat (limited to 'includes')
-rw-r--r--includes/header.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/header.php b/includes/header.php
index 2497966..fc5c6ec 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -144,7 +144,7 @@
if($_SESSION["isPageArchive"]!=true){ ?>
<div class="header-meta-line-one">
<?php if($this->is('post')): ?><span class="hint--bottom" data-tooltip="<?php gtaecho('postTexts','sort_title',$this->category) ?>"><i class="iconfont">&#xe80e;</i> <?php $this->category(','); ?></span>&emsp;<?php endif; ?>
- <span class="hint--bottom" data-tooltip="<?php if($this->commentsNum=='0'): gtecho('commentListTexts', 'commentNumNone'); else:gtaecho('commentListTexts', 'commentNum', $this->commentsNum);endif; ?>"><i class="iconfont">&#xe65e;</i> <?php $this->commentsNum('0', '1', '%d'); ?></span>&emsp;
+ <?php if($this->fields->commentShow=='0'):?><span class="hint--bottom" data-tooltip="<?php if($this->commentsNum=='0'): gtecho('commentListTexts', 'commentNumNone'); else:gtaecho('commentListTexts', 'commentNum', $this->commentsNum);endif; ?>"><i class="iconfont">&#xe65e;</i> <?php $this->commentsNum('0', '1', '%d'); ?></span>&emsp;<?php endif;?>
</div>
<div class="header-meta-line-two">
<span class="hint--bottom" data-tooltip="<?php gtaecho('postTexts', 'post_time', date('Y-m-d',$this->created)); ?>"><i class="iconfont">&#xedb9;</i> <?php $this->date(); ?></span>&emsp;