Chic/page.php

27 lines
917 B
PHP
Raw Normal View History

2024-06-27 19:59:47 +08:00
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('part/head.php');?>
2024-06-30 07:43:57 +08:00
<div class="wrapper">
2024-06-27 19:59:47 +08:00
<?php $this->need('part/header.php'); ?>
2024-06-30 07:43:57 +08:00
<div class="main">
2024-06-27 19:59:47 +08:00
<div class="container">
<article class="post-wrap page">
<div class="post-wrap">
<h2 class="post-title">-&nbsp;&nbsp;<?php $this->title() ?>&nbsp;&nbsp;-</h2>
<section class="post-content">
<?php $this->content(); ?>
</section>
<!-- 判断如果允许评论则显示评论的div -->
<?php if ($this->allow('comment')): ?>
<!-- 如果启用了 twikoo 选项,显示 twikoo 评论系统 -->
<?php if ($this->options->twikoo): ?>
<?php $this->options->twikoo(); ?>
<?php else: ?>
<!-- 否则调用自带的评论模板 -->
<?php $this->need('comments.php'); ?>
<?php endif; ?>
<?php endif; ?>
</div>
</article>
2024-06-30 07:43:57 +08:00
</div></div>
2024-06-27 19:59:47 +08:00
<?php $this->need('part/footer.php'); ?>