forked from SimonPadbury/bst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
executable file
·48 lines (43 loc) · 1.91 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
<?php get_template_part('parts/header'); ?>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-8">
<div id="content" role="main">
<header class="archive-header">
<h3>Blog Category: <?php single_cat_title(''); ?></h3>
<hr/>
<?php if(have_posts()): while(have_posts()): the_post();?>
<article role="article" id="post_<?php the_ID()?>">
<header>
<h2><a href="<?php the_permalink(); ?>"><?php the_title()?></a></h2>
<h4>
<em>
<span class="text-muted" class="author">By <?php the_author() ?>,</span>
<time class="text-muted" datetime="<?php the_time('d-m-Y')?>"><?php the_time('jS F Y') ?></time>
</em>
</h4>
</header>
<?php the_post_thumbnail(); ?>
<?php the_content( __( '… Continue reading <i class="glyphicon glyphicon-arrow-right"></i>', 'bst' ) ); ?>
<p class="text-muted" style="margin-bottom: 20px;">
<i class="glyphicon glyphicon-folder-open"></i> Filed under: <?php _e(''); ?> <?php the_category(', ') ?><br/>
<i class="glyphicon glyphicon-comment"></i> Comments: <?php comments_popup_link('None', '1', '%'); ?>
</p>
<hr/>
</article>
<?php endwhile; ?>
<ul class="pagination">
<li class="older"><?php next_posts_link('« Older') ?></li>
<li class="newer"><?php previous_posts_link('Newer »') ?></li>
</ul>
<?php else: ?>
<?php wp_redirect(get_bloginfo('siteurl').'/404', 404); exit; ?>
<?php endif;?>
</div><!-- /#content -->
</div>
<div class="col-xs-6 col-sm-4" id="sidebar" role="navigation">
<?php get_template_part('parts/sidebar'); ?>
</div>
</div><!-- /.row -->
</div><!-- /.container -->
<?php get_template_part('parts/footer'); ?>