summaryrefslogtreecommitdiff
path: root/single.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-08-23 15:26:05 +0800
committerEltrac Koalar <hi@guhub.cn>2022-08-23 15:26:05 +0800
commite1bdd5b544a0faf0c0058362b0fd061aba7338f9 (patch)
tree2fa362229eace9f5c8f8e2e8ad29c1c266261121 /single.php
parent91488d03815d43e9a270f240b2059d2744f5932e (diff)
:mag_right: Perf: 优化文章浏览量统计功能,并加入设置项
Diffstat (limited to 'single.php')
-rw-r--r--single.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/single.php b/single.php
index 5ff218f..32cb3ca 100644
--- a/single.php
+++ b/single.php
@@ -9,7 +9,7 @@
<ul class="post-meta post-meta-atpage">
<li><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php echo Matcha::date($this->created); ?></time></li>
<li><?php $this->category(','); ?></li>
- <li><?php echo '阅读 '.Matcha::views($this).' 次'; ?></li>
+ <?php if($this->options->EnableViewsCount=='able'){ ?><li><?php Matcha::views($this); ?></li><?php } ?>
<?php if($this->user->hasLogin()):?>
<li><a href="<?php $this->options->adminUrl(); ?>write-post.php?cid=<?php echo $this->cid;?>" target="_blank" no-pjax>编辑</a></li>
<?php endif ?>