diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-23 15:26:05 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-08-23 15:26:05 +0800 |
| commit | e1bdd5b544a0faf0c0058362b0fd061aba7338f9 (patch) | |
| tree | 2fa362229eace9f5c8f8e2e8ad29c1c266261121 /single.php | |
| parent | 91488d03815d43e9a270f240b2059d2744f5932e (diff) | |
:mag_right: Perf: 优化文章浏览量统计功能,并加入设置项
Diffstat (limited to 'single.php')
| -rw-r--r-- | single.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ?> |
