diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-03-28 10:42:09 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-03-28 10:42:09 +0800 |
| commit | 92654dd2c8b9235699d071a763d885bc30550625 (patch) | |
| tree | ae7ec49c573f0a4170e1631393abf654860d0b07 /includes/header.php | |
| parent | fa6cebff1041b92714f2323481cb473298df3161 (diff) | |
📑 Fix: 头图链接文字颜色错误
Diffstat (limited to 'includes/header.php')
| -rw-r--r-- | includes/header.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/includes/header.php b/includes/header.php index e656ab3..7fd9976 100644 --- a/includes/header.php +++ b/includes/header.php @@ -139,16 +139,20 @@ <p><?php $this->options->bannerIntro(); ?></p> <?php elseif($this->is('post') || $this->is('page')): ?> <h1><?php $this->title(); ?></h1> - <p class="header-meta"><?php if($this->fields->meta==''): ?> + <div class="header-meta"> + <?php if($this->fields->meta==''): ?> <div class="header-meta-line-one"> <?php if($this->is('post')): ?><i class="iconfont icon-block" title="文章分类"></i> <?php $this->category(','); ?> <?php endif; ?> <i class="iconfont icon-comments" title="共 <?php $this->commentsNum('0', '1', '%d'); ?> 条评论"></i> <?php $this->commentsNum('None', 'Only 1', '%d'); ?>  </div> <div class="header-meta-line-two"> <i class="iconfont icon-clock" title="该文章发布于 <?php $this->date(); ?>"></i> <?php $this->date(); ?>  - <i class="icon-view iconfont" title="该文章被浏览 <?php get_post_view($this) ?> 次"></i> <?php get_post_view($this) ?><?php else: echo $this->fields->meta;?><div style="display:none"><?php get_post_view($this) ?></div><?php endif; ?> + <i class="icon-view iconfont" title="该文章被浏览 <?php get_post_view($this) ?> 次"></i> <?php get_post_view($this) ?> </div> - </p> + <?php else: ?> + <?php $this->fields->meta(); ?><div style="display:none"><?php get_post_view($this) ?></div> + <?php endif; ?> + </div> <?php elseif($this->is('archive')): ?> <h1><?php $this->archiveTitle(array( 'category' => _t('分类 %s 下的文章'), |
