summaryrefslogtreecommitdiffstats
path: root/post.php
blob: 4c0e2761596fae75d047f38cf59cc8aca5b96935 (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
<?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>
<?php $this->need('includes/comments.php'); ?>
	</main>
<?php $this->need('includes/footer.php'); ?>