forked from CRIK0VA/alethemes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.php
executable file
·121 lines (106 loc) · 4.73 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php get_header(); ?>
<!-- Content -->
<div class="blog-center-align">
<!-- Blog Caption -->
<div class="blog-caption">
<div class="blogtitle"><?php echo single_tag_title("", false); ?></div>
</div>
<!-- Blog Line -->
<div class="blog-line"></div>
<!-- Filters Here -->
<ul class="blog-filter-line">
<li><?php _e('Filter By','aletheme'); ?>:</li>
<li>
<a class="filter-caption"><p><?php _e('Author','aletheme'); ?></p><span></span></a>
<ul>
<?php
$args = array(
'orderby' => 'name',
'order' => 'ASC',
'number' => null,
'optioncount' => false,
'exclude_admin' => false,
'show_fullname' => false,
'hide_empty' => true,
'echo' => true,
'style' => 'list',
'html' => true );
wp_list_authors($args); ?>
</ul>
</li>
<li>
<a class="filter-caption"><p><?php _e('Category','aletheme'); ?></p><span></span></a>
<ul>
<?php
$args = array(
'show_option_all' => '',
'orderby' => 'name',
'order' => 'ASC',
'style' => 'list',
'show_count' => 0,
'hide_empty' => 1,
'use_desc_for_title' => 1,
'child_of' => 0,
'feed' => '',
'feed_type' => '',
'feed_image' => '',
'exclude' => '',
'exclude_tree' => '',
'include' => '',
'hierarchical' => 1,
'title_li' => '',
'show_option_none' => __('No categories','aletheme'),
'number' => null,
'echo' => 1,
'depth' => 0,
'current_category' => 0,
'pad_counts' => 0,
'taxonomy' => 'category',
'walker' => null
);
wp_list_categories($args); ?>
</ul>
</li>
<li>
<a class="filter-caption"><p><?php _e('Tags','aletheme'); ?></p><span></span></a>
<?php
$tags = get_tags();
$html = '<ul>';
foreach ( $tags as $tag ) {
$tag_link = get_tag_link( $tag->term_id );
$html .= "<li><a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}'>";
$html .= "{$tag->name}</a></li>";
}
$html .= '</ul>';
echo $html;
?>
</li>
<li class="search">
<form role="search" method="get" id="searchform" action="<?php echo site_url()?>" >
<input type="search" class="searchinput" value="<?php echo get_search_query(); ?>" name="s" id="s" placeholder="<?php _e('SEARCH', 'aletheme')?>" />
<button type="submit" id="searchsubmit"></button>
</form>
</li>
</ul>
<!-- Blog Content -->
<div class="blog-content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php ale_part('postpreview' );?>
<?php endwhile; else: ?>
<?php ale_part('notfound')?>
<?php endif; ?>
</div>
<!-- Blog Nav -->
<div class="blog-nav">
<span class="left"><?php echo get_previous_posts_link(__('< Newer Posts','aletheme')); ?></span>
<span class="right"><?php echo get_next_posts_link(__('Older Posts >','aletheme')); ?></span>
<div class="center"><?php _e('page','aletheme'); ?> <?php echo $paged; ?> <?php _e('of','aletheme'); ?> <?php echo $wp_query->max_num_pages; ?></div>
</div>
<!-- Blog Nav -->
<div class="blog-line"></div>
<!-- Blog Footer -->
<div class="blog-footer">
<?php ale_part('archives'); ?>
</div>
</div>
<?php get_footer(); ?>