summaryrefslogtreecommitdiffstats
path: root/page.php
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-07-25 16:07:14 +0800
committerGitHub <noreply@github.com>2019-07-25 16:07:14 +0800
commit35a51540b738f47c500b47a3398416e951096e5a (patch)
tree2885d38d5be8c07581e52afb68410eeb8481b08d /page.php
parent38353f67af44f1a2c0b29d9ff43f0c2a42958833 (diff)
左侧抽屉栏,可与顶部导航栏进行切换 / Bug fix
Diffstat (limited to 'page.php')
-rw-r--r--page.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/page.php b/page.php
index fc724fe..4023e47 100644
--- a/page.php
+++ b/page.php
@@ -6,6 +6,14 @@ $this->need('includes/header.php');
<div class="post-body">
<!-- 页面内容 -->
<div class="post-content page-content">
+ <?php $postCheck = Utils::isOutdated($this); if($postCheck["is"] && $this->is('post')): ?>
+ <div class="tip red">
+ <div class="container-fluid"><div class="row">
+ <div class="col-1 tip-icon"><i class="iconfont icon-info"></i></div>
+ <div class="col-11 tip-content">页面编写于 <?php echo $postCheck["created"]; ?> 天前,最后修改于 <?php echo $postCheck["updated"]; ?> 天前,其中某些信息可能已经过时。</div>
+ </div></div>
+ </div>
+ <?php endif; ?>
<?php $this->content(); ?>
</div>
</div>