1 Star 0 Fork 12

张木 / CorePress

forked from ghboke / CorePress 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
category.php 2.17 KB
一键复制 编辑 原始数据 按行查看 历史
mainpc 提交于 2021-06-19 20:26 . 4.9
<!doctype html>
<html lang="zh">
<head>
<?php get_header(); ?>
</head>
<body>
<?php get_template_part('component/body-top'); ?>
<div id="app">
<header>
<div class="header-main-plane">
<div class="header-main container">
<?php
get_template_part('component/nav-header');
?>
</div>
</div>
</header>
<div class="top-divider"></div>
<main class="container">
<div class="html-main">
<?php
global $set;
if ($set['theme']['sidebar']['other']) {
?>
<style>
body .post-info-right {
display: none;
}
.post-item-thumbnail img {
max-width: 336px;
}
.post-item-content,.post-item-info {
font-size: 16px;
}
.post-item h2 {
font-size: 22px;
}
</style>
<div class="post-main post-main-closesidebar" style="flex-basis: 100%;">
<?php
get_template_part('component/post-main-index');
?>
</div>
<?php
} else
if ($set['theme']['sidebar_position'] == 1) {
?>
<div class="post-main">
<?php get_template_part('component/post-main-index'); ?>
</div>
<div class="sidebar">
<?php dynamic_sidebar('index_sidebar'); ?>
</div>
<?php
} else {
?>
<div class="sidebar">
<?php dynamic_sidebar('index_sidebar'); ?>
</div>
<div class="post-main">
<?php get_template_part('component/post-main-index'); ?>
</div>
<?php
}
?>
</div>
</main>
<footer>
<?php
wp_footer();
get_footer(); ?>
</footer>
</div>
</body>
</html>
<?php
PHP
1
https://gitee.com/zhangmu66/corepress.git
git@gitee.com:zhangmu66/corepress.git
zhangmu66
corepress
CorePress
master

搜索帮助