-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
110 lines (95 loc) · 3.25 KB
/
archive.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* The template for displaying archive pages
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each one. For example, tag.php (Tag archives),
* category.php (Category archives), author.php (Author archives), etc.
*
* @subpackage Simple China
* @since 3.0
*/
get_header(); ?>
<div style="clear:both;"></div>
<?php if(function_exists('bcn_display'))
{
?>
<div class="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#">
<?php
bcn_display();
?>
</div>
<?php
}?>
<header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
<h3><?php global $paged; if($paged!==0){echo "(". __('Page','simple-china').$paged.'/ '.$wp_query->max_num_pages.')';} ?></h3>
</header><!-- .page-header -->
<div id="container" class="row">
<div id="content" class="col-xs-12 col-md-9 col-sm-9">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(array('bgpng')); ?> >
<div class="title bgpng row" >
<div class="date col-md-3 col-xs-4 col-sm-3">
<?php the_time( get_option( 'date_format' ) ); // the_time('j') ?> <strong><?php //the_time('M') ?></strong>
</div>
<div class="posttitle col-md-8 col-xs-8 col-sm-7">
<h2 class=""><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</div>
<div class="comment-count col-md-1 hidden-xs col-sm-2"><?php comments_number('0', '1', '%'); ?> </div>
</div>
<div class="post-inner">
<div class="entry">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
?>
<div class="postthumb">
<?php the_post_thumbnail('thumbnail'); ?>
</div>
<?php
}
?>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div>
</div>
</div><!-- //post -->
<div class="bottom bgpng">
<div class="tags-box">
<div class="tags-entry bgpng" >
<ul class="">
<li class=""><?php the_tags(__('Tags:', 'simple-china'), ', ', '<br />'); ?> </li>
<li class=""><?php _e('Author:', 'simple-china'); ?> <?php the_author() ?></li>
<li class=""><?php _e('Category:', 'simple-china'); ?> <?php the_category(', ');?></li>
</ul>
</div>
</div>
</div>
<?php endwhile;?>
<?php if (function_exists('wp_pagenavi')) {
wp_pagenavi();
}
else { ?>
<div id="pagenav">
<ul>
<li class="older pull-left"><?php next_posts_link(__('« Older Entries', 'simple-china')) ?></li>
<li class="newer pull-right"><?php previous_posts_link(__('Newer Entries »', 'simple-china')) ?></li>
</ul>
</div>
<?php }
?>
<?php else : ?>
<h2><?php _e('Not found', 'simple-china'); ?></h2>
<?php endif; ?>
</div><!-- / Content -->
<div class="col-xs-12 col-md-3 col-sm-3">
<?php get_sidebar(); ?>
</div>
</div><!-- / container -->
<?php get_footer(); ?>