-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcategory.php
56 lines (40 loc) · 1.44 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
<?php
/* ------------------------------------------------------------------------- *
* The template for displaying Category pages.
/* ------------------------------------------------------------------------- */
?>
<?php get_header(); ?>
<section class="container<?php ac_mini_disabled() ?> main-section clearfix">
<?php get_sidebar( 'browse' ); ?>
<div class="wrap-template-1 clearfix">
<section class="content-wrap with-title" role="main">
<?php
// Categories content wrap inside top action
do_action( 'ac_action_categories_content_wrap_inside_top' );
?>
<header class="main-page-title">
<h1 class="page-title"><?php _e( 'Category Archives:', 'justwrite' ) ?> <span><?php single_cat_title() ?></span> <?php ac_icon( 'angle-down' ); ?></h1>
</header>
<div class="posts-wrap clearfix">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
get_template_part( 'post-templates/content', 'index' );
endwhile;
else :
get_template_part( 'post-templates/content', 'no-articles' );
endif;
?>
</div><!-- END .posts-wrap -->
<?php
// Pagination
ac_paginate();
// Categories content wrap inside bottom action
do_action( 'ac_action_categories_content_wrap_inside_bot' );
?>
</section><!-- END .content-wrap -->
<?php get_sidebar(); ?>
</div><!-- END .wrap-template-1 -->
</section><!-- END .container -->
<?php get_footer(); ?>