-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
53 lines (40 loc) · 1.65 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
<?php get_header(); ?>
<?php global $wp_query; ?>
<div class="mythemes-page-header">
<div class="container">
<div class="row">
<div class="col-sm-8 col-md-9 col-lg-9">
<h1><?php _e( 'Results for category' , 'myThemes' ); ?> "<?php echo get_cat_name( get_query_var( 'cat' ) ); ?>"</h1>
<nav class="mythemes-nav-inline">
<ul class="mythemes-menu">
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php _e( 'go home' , 'myThemes' ); ?>"><i class="icon-home"></i> <?php _e( 'Home' , 'myThemes' ); ?></a></li>
<li><?php echo get_cat_name( get_query_var( 'cat' ) ); ?></li>
</ul>
</nav>
</div>
<div class="col-sm-4 col-md-3 col-lg-3 mythemes-posts-found">
<div class="found-details">
<span>
<?php
echo $wp_query -> found_posts . ' ';
if( $wp_query -> found_posts == 1 ){
_e( 'Article' , 'myThemes' );
}
else{
_e( 'Articles' , 'myThemes' );
}
?>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
<div class="row">
<?php get_template_part( 'cfg/templates/loop' ); ?>
</div>
</div>
</div>
<?php get_footer(); ?>