-
Notifications
You must be signed in to change notification settings - Fork 1
/
tag.php
47 lines (30 loc) · 1.08 KB
/
tag.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
<?php get_header(); ?>
<main id="main" role="main" class="main cat-index<?php if ( is_active_sidebar( 'rightside' ) ): ?> hasside<?php endif; ?>">
<?php if (have_posts()) : ?>
<header class="title">
<h1 class="cat-title"><?php $cattitle = single_cat_title( '', false ); echo $cattitle; ?></h1>
<?php
// Show an optional term description.
$term_description = term_description();
if ( ! empty( $term_description ) ) :
printf( '<div class="catdescript">%s</div>', $term_description );
endif;
?>
</header>
<ul class="cf" role="list" aria-label="<?php _e( 'List of posts', 'minart' ); ?>">
<?php
while (have_posts()) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
?>
</ul>
<nav id="nav-main" class="navs" role="navigation" aria-label="<?php _e( 'Posts navigation', 'minart' ); ?>">
<p><?php posts_nav_link( ' ', __('Newer', 'minart'), __( 'Older', 'minart') ); ?></p>
</nav>
<?php
else: ?>
<p><?php _e('Sorry, no posts found.', 'minart'); ?></p>
<?php endif; ?>
</main> <!-- end main -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>