-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.php
47 lines (41 loc) · 1.72 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
<?php
get_header();
$dontshow_sidebar = of_get_option('md_posts_sidebar');
?>
<br class="clear">
<div class="row searchpage">
<div class="<?php if(!$dontshow_sidebar) { echo 'two-thirds column'; }else{ echo 'sixteen columns'; } ?>">
<?php if ( have_posts() ) : ?>
<h1 class="border-color">
<?php printf( __( 'Tag : %s', 'dronetv' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?>
</h1>
<?php
// GET ITEMS
get_template_part( 'loop', 'item' );
?>
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<br class="clear" />
<br class="clear" />
<div class="navigation-bottom">
<?php previous_posts_link( __( '<span class="meta-nav">←</span> Back', 'dronetv' ) ); ?>
<?php next_posts_link( __( 'Next <span class="meta-nav">→</span>', 'dronetv' ) ); ?>
</div>
<?php endif; ?>
<?php else : ?>
<h1 class="border-color">
<?php _e( 'Nothing found for', 'dronetv' ); ?> <?php echo single_tag_title( '', false ); ?>
</h1>
<div class="noresults">
<p><?php _e( 'Sorry, but nothing matched with this tag. <br>Please try to use search form : ', 'dronetv' ); ?></p>
<?php get_search_form(); ?>
</div>
<?php endif; ?>
</div>
<?php if(!$dontshow_sidebar) { ?>
<div class="one-third column">
<?php get_template_part( 'sidebar', 'blog' ); ?>
</div>
<?php } ?>
</div>
<?php get_footer(); ?>