-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathpost.php
23 lines (23 loc) · 968 Bytes
/
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
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('template-parts/header.php');
?>
<?php $this->need('template-parts/left.php'); ?>
<div class="col-md-12 col-lg-8" id="middle">
<?php $this->need('template-parts/navbar.php'); ?>
<div class="container-fluid p-4 d-flex flex-column row-gap-3">
<?php if ($this->fields->postType): ?>
<?php if ('1' == $this->fields->postType): ?>
<?php $this->need('template-parts/post-default.php') ?>
<?php endif; ?>
<?php if ('2' == $this->fields->postType): ?>
<?php $this->need('template-parts/post-moment.php') ?>
<?php endif; ?>
<?php else: ?>
<?php $this->need('template-parts/post-default.php') ?>
<?php endif; ?>
<?php $this->need('template-parts/comments.php'); ?>
</div>
</div>
<?php $this->need('template-parts/right.php'); ?>
<?php $this->need('template-parts/footer.php'); ?>