8 Star 19 Fork 13

Specs / Wp-theme-9iphp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
page-archives.php 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
/*
Template Name: 归档模板
*/
$layout = of_get_option('side_bar');
$layout = (empty($layout)) ? 'right_side' : $layout;
get_header(); ?>
<?php if($layout == 'left_side'){ ?>
<aside class="col-md-4 hidden-xs hidden-sm">
<div id="sidebar">
<?php dynamic_sidebar( 'sidebar_single'); ?>
</div>
</aside>
<?php } ?>
<section id='main' class='<?php echo ($layout == 'single') ? 'col-md-12' : 'col-md-8'; ?>' >
<?php while ( have_posts() ) : the_post(); ?>
<article class="well clearfix page" id="post">
<header class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
</header>
<div id="archives" class="page-content">
<?php specs_archives_list();?>
<?php //the_content(); ?>
</div>
<footer class="entry-footer">
<!--评论模块-->
<?php comments_template(); ?>
</footer>
</article>
<?php endwhile; // end of the loop. ?>
</section>
<!--侧边栏-->
<?php if($layout == 'right_side'){ ?>
<aside class="col-md-4 hidden-xs hidden-sm">
<div id="sidebar">
<?php dynamic_sidebar( 'sidebar_single'); ?>
</div>
</aside>
<?php } ?>
<!--底部-->
<?php get_footer(); ?>
PHP
1
https://gitee.com/9iphp/Wp-theme-9iphp.git
git@gitee.com:9iphp/Wp-theme-9iphp.git
9iphp
Wp-theme-9iphp
Wp-theme-9iphp
master

搜索帮助