-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcategory.php
67 lines (62 loc) · 2.67 KB
/
category.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
<?php get_header(); ?>
<div class="container">
<div class="col-xs-12 page-title">
<h1><?php single_cat_title( '', true ); ?></h1>
<p class="category-desc">
<?php echo category_description(); ?>
</p>
</div>
<div class="row">
<div class="col-sm-8 primary">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="col-md-6">
<article itemscope itemtype="http://schema.org/BlogPosting">
<header>
<a href="<?php the_permalink(); ?>">
<figure>
<?php the_post_thumbnail( 'full', array( 'class' => 'img-responsive' ) ); ?>
</figure>
</a>
<a href="<?php the_permalink(); ?>"><h2 class="post-title" itemprop="headline"><?php the_title(); ?></h2></a>
<p class="metadata sr-only">
<?php _e( "Published by:", "commcitytheme" ); ?> <a href="#" itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name"><?php the_author(); ?></span></a> <?php _e( "at", "commcitytheme" ); ?> <span itemprop="datePublished" content="2015-01-22"><?php the_date(); ?></span> <?php _e( "in category", "commcitytheme" ); ?> <?php the_category( ', ' ); ?>
</p>
</header>
<div class="content" itemprop="description">
<?php the_excerpt(); ?>
</div>
</article>
</div>
<?php endwhile; ?>
<div class="col-xs-12">
<div class="pagination">
<?php
$paginate_args = array(
'base' => '%_%',
'format' => '?page=%#%',
'total' => 1,
'current' => 0,
'show_all' => False,
'end_size' => 1,
'mid_size' => 2,
'prev_next' => True,
'prev_text' => '« Recent Posts',
'next_text' => 'Old Posts »',
'type' => 'plain',
'add_args' => False,
'add_fragment' => '',
'before_page_number' => '',
'after_page_number' => ''
);
paginate_links( $paginate_args );
?>
</div>
</div>
<?php else: ?>
<p><?php _e( "No posts found", "commcitytheme" ); ?></p>
<?php endif; ?> ?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>