blob: 697a9b5815e9a9155749972746bd34e35816cece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('includes/head.php');
$this->need('includes/header.php');
?>
<main class="main-container container">
<div class="post-body">
<div class="post-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>
<div class="tip blue">
<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" id="readTip"></div></div></div>
</div>
<?php endif; ?>
<?php $this->content(); ?>
<br />
</div>
<div class="post-footer"><!-- 文章页脚 -->
<span class="post-tags"><i class="iconfont icon-tags"></i> <?php $this->tags(' ', true, '这人还没有写标签哦~'); ?></span>
</div>
</div>
<?php $this->need('includes/comments.php'); ?>
</main>
<?php $this->need('includes/footer.php'); ?>
|