summaryrefslogtreecommitdiffstats
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/post.php b/post.php
index f0a4fb9..4d0da29 100644
--- a/post.php
+++ b/post.php
@@ -6,9 +6,14 @@ $this->need('includes/header.php');
<div class="post-body">
<!-- 文章内容 -->
<div class="post-content">
- <?php $time = $this->date();
-
- ?>
+ <?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(); ?>
<br />
<!-- 文章页脚 -->