-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-archives.php
77 lines (76 loc) · 2.25 KB
/
page-archives.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/*
Template Name: 文章归档
*/
?>
<?php
/**
* Main Template of Tinection WordPress Theme
*
* @package Tinection
* @version 1.1.1
* @date 2014.12.19
* @author Zhiyan <[email protected]>
* @site Zhiyanblog <www.zhiyanblog.com>
* @copyright Copyright (c) 2014-2015, Zhiyan
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
* @link http://www.zhiyanblog.com/tinection.html
**/
?>
<?php get_header(); ?>
<?php get_template_part( 'includes/breadcrumbs');?>
<!-- Header Banner -->
<?php $headerad=ot_get_option('headerad');if (!empty($headerad)) {?>
<div id="header-banner">
<div class="container">
<?php echo ot_get_option('headerad');?>
</div>
</div>
<?php }?>
<!-- /.Header Banner -->
<!-- Main Wrap -->
<div id="main-wrap">
<div id="sitenews-wrap" class="container"><?php get_template_part('includes/sitenews'); ?></div>
<div class="container pagewrapper clr">
<aside class="pagesidebar">
<li id="page-sort-menu-btn"><a href="#"><?php _e('菜单','tinection'); ?></a></li>
<?php wp_nav_menu( array( 'theme_location' => 'pagebar', 'container' => '', 'menu_id' => '', 'menu_class' => 'pagesider-menu', 'depth' => '1' ) ); ?>
</aside>
<!-- Content -->
<div class="pagecontent">
<div class="content">
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<h2><?php bloginfo('name');?><?php _e('下目前共有文章:','tinection'); ?><?php echo PostCount();?><?php _e('篇','tinection'); ?></h2>
<?php tin_archives_list(); ?>
<?php $singlebottomad=ot_get_option('singlebottomad');if (!empty($singlebottomad)) {?>
<div id="singlebottom-banner">
<?php echo ot_get_option('singlebottomad');?>
</div>
<?php }?>
</div>
<!-- /.Content -->
<?php endwhile; ?>
</div>
</div>
</div>
<!--/.Main Wrap -->
<!-- Bottom Banner -->
<?php $bottomad=ot_get_option('bottomad');if (!empty($bottomad)) {?>
<div id="bottom-banner">
<div class="container">
<?php echo ot_get_option('bottomad');?>
</div>
</div>
<?php }else{?>
<div style="height:50px;"></div>
<?php }?>
<!-- /.Bottom Banner -->
<?php if(ot_get_option('footer-widgets-singlerow') == 'on'){?>
<div id="ft-wg-sr">
<div class="container">
<?php dynamic_sidebar( 'footer-row'); ?>
</div>
</div>
<?php }?>
<?php get_footer(); ?>