mirror of
https://git.beihong.wang/wangbeihong/blog-source.git
synced 2026-04-24 05:33:04 +08:00
initial
This commit is contained in:
44
usr/themes/HarmonyHues/post.php
Executable file
44
usr/themes/HarmonyHues/post.php
Executable file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 文章内容页面
|
||||
*
|
||||
* @author 星语社长
|
||||
* @link https://biibii.cn
|
||||
* @update 2024-7-6 18:00:04
|
||||
*/
|
||||
if (!defined('__TYPECHO_ROOT_DIR__')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$isSidebar = $this->fields->showSidebar;
|
||||
if (empty($isSidebar) && $isSidebar !== false) {
|
||||
$isSidebar = true;
|
||||
} else {
|
||||
$isSidebar = (bool)$isSidebar;
|
||||
}
|
||||
|
||||
$this->need('components/header.php');
|
||||
?>
|
||||
|
||||
<!--主体st-->
|
||||
<main>
|
||||
<div class="container p-2 <?php echo htmlspecialchars($isSidebar ? 'pl-lg-4 pl-xl-4' : 'px-lg-3 px-xl-3'); ?>">
|
||||
<!-- 面包屑 -->
|
||||
<?php $this->need('components/breadcrumb.php'); ?>
|
||||
<div class="row no-gutters">
|
||||
<!-- 文章内容st -->
|
||||
<div class="<?php echo htmlspecialchars($isSidebar ? 'col-lg-9' : 'col-12'); ?>">
|
||||
<?php $this->need('components/post-content.php'); ?>
|
||||
</div>
|
||||
<!-- 文章内容end -->
|
||||
<!--侧边栏st-->
|
||||
<?php if ($isSidebar): ?>
|
||||
<?php $this->need('components/sidebar.php'); ?>
|
||||
<?php endif; ?>
|
||||
<!--侧边栏end-->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<!--主体end-->
|
||||
<?php $this->need('components/footer.php'); ?>
|
||||
Reference in New Issue
Block a user