diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-10-06 13:54:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-06 13:54:18 +0800 |
| commit | 043c72d54324c615f192a1d3310e8c4017c23f10 (patch) | |
| tree | f3e3fb5394aa8957c3d7ee7b430bf6b9d1e2d824 /includes | |
| parent | cb42cfdc07776201f4daaef9c42840fd2cf62109 (diff) | |
🎉 Perf: 一些小改动
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/comments.php | 2 | ||||
| -rw-r--r-- | includes/head.php | 5 | ||||
| -rw-r--r-- | includes/header.php | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/includes/comments.php b/includes/comments.php index b8dcc78..4a0baff 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -28,7 +28,7 @@ echo $commentClass; <span class="comment-reply">
<?php $comments->reply('<i class="iconfont icon-return"></i>'); ?>
</span>
- <?php $comments->content(); ?>
+ <?php Contents::commentsParent($comments); $comments->content(); ?>
</div>
<p class="comment-meta">
<span class="comment-author"><?php $comments->author(); ?></span>
diff --git a/includes/head.php b/includes/head.php index 82e5fed..cab7569 100644 --- a/includes/head.php +++ b/includes/head.php @@ -57,7 +57,4 @@ <link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:300|Noto+Serif+SC:300&display=swap" rel="stylesheet"> <style>.body-dark .pio-action .pio-home{background-image: url(<?php Utils::indexTheme('images/icons/home.png'); ?>);}.body-dark .pio-action .pio-close{background-image: url(<?php Utils::indexTheme('images/icons/remove.png'); ?>);}.body-dark .pio-action .pio-skin{background-image: url(<?php Utils::indexTheme('images/icons/skin.png'); ?>);}.body-dark .pio-action .pio-info{background-image: url(<?php Utils::indexTheme('images/icons/info.png'); ?>);}.body-dark .pio-action .pio-night{background-image: url(<?php Utils::indexTheme('images/icons/night.png'); ?>);}@media (min-width:992px) {.search{background-image:url(<?php Utils::indexTheme('images/search.png'); ?>);}.login{background-image:url(<?php Utils::indexTheme('images/login.png'); ?>)}}.search {background-position: bottom right;background-repeat: no-repeat}.login {background-position: bottom left;background-repeat:no-repeat}<?php $this->options->cssEcho(); ?></style> </head> - <body class="<?php if($this->options->bodyFonts && $this->options->bodyFonts=1): ?> body-serif<?php endif; ?><?php if($this->options->grayTheme && $this->options->grayTheme=1): ?> body-gray<?php endif; ?> body-contentsize-normal"> - <!--[if lt IE 9]> - <div class="message error browsehappy" role="dialog">当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.</div> - <![endif]-->
\ No newline at end of file + <body class="<?php if(date("H") > 20 || date("H") < 7){echo 'body-dark';} ?><?php if($this->options->bodyFonts && $this->options->bodyFonts=1): ?> body-serif<?php endif; ?><?php if($this->options->grayTheme && $this->options->grayTheme=1): ?> body-gray<?php endif; ?> body-contentsize-normal">
\ No newline at end of file diff --git a/includes/header.php b/includes/header.php index 4935e45..ea1ee9d 100644 --- a/includes/header.php +++ b/includes/header.php @@ -162,7 +162,9 @@ <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->is('post')): ?><i class="iconfont icon-block"></i> <?php $this->category(','); ?> <?php endif; ?><i class="iconfont icon-comments"></i> <?php $this->commentsNum('None', 'Only 1', '%d'); ?> <i class="iconfont icon-clock"></i> <?php $this->date(); ?></p> + <p class="header-meta"> + <?php if($this->fields->meta==''): ?><?php if($this->is('post')): ?><i class="iconfont icon-block"></i> <?php $this->category(','); ?> <?php endif; ?><i class="iconfont icon-comments"></i> <?php $this->commentsNum('None', 'Only 1', '%d'); ?> <i class="iconfont icon-clock"></i> <?php $this->date(); ?><?php else: echo $this->fields->meta; endif; ?> + </p> <?php else: ?><?php endif; ?> </div> </div> |
