-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
post.php
33 lines (33 loc) · 1.48 KB
/
post.php
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
32
33
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('includes/head.php');
$this->need('includes/header.php');
?>
<main class="main-container container" role="main">
<div class="post-body">
<div class="post-content" role="article" id="post-content"><!-- Post Content -->
<?php $postCheck = Utils::isOutdated($this); if($postCheck["is"] && $this->is('post')): ?>
<div class="tip red" id="out-date-alert">
<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 gtaecho('postTexts','post_timeAlert_1',$postCheck["created"]); gtaecho('postTexts','post_timeAlert_2',$postCheck["updated"]); ?></div>
</div></div>
</div>
<?php endif; ?>
<?php if($this->options->ifShowRTA!=0): ?>
<div class="tip blue" id="reading-time-alert">
<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(); ?>
</div>
<div class="post-footer"><!-- Post Footer -->
<span class="post-tags"><i class="iconfont icon-tags"></i> <?php $this->tags(' ', true, gt('postTexts','post_tag')); ?></span>
</div>
</div>
<?php $this->need('includes/comments.php'); ?>
</main>
<?php $this->need('includes/footer.php'); ?>