forked from mashshare/mashshare-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy-kbe_taxonomy.php
152 lines (143 loc) · 4.12 KB
/
taxonomy-kbe_taxonomy.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
get_header();
$kbe_cat_slug = get_queried_object()->slug;
$kbe_cat_name = get_queried_object()->name;
$kbe_tax_post_args = array(
'post_type' => KBE_POST_TYPE,
'posts_per_page' => 999,
'orderby' => 'menu_order',
'order' => 'ASC',
'tax_query' => array(
array(
'taxonomy' => KBE_POST_TAXONOMY,
'field' => 'slug',
'terms' => $kbe_cat_slug
)
)
);
$kbe_tax_post_qry = new WP_Query($kbe_tax_post_args);
?>
<div class="container-fluid">
<div id="header-image"><!--start header-image-->
<div id="header-content" class="container" style="padding-bottom:40px;"><!--start header-->
<div class="row"><!--start row-->
<?php if(has_post_thumbnail()){?>
<div class="col-md-8">
<h1><?php the_title(); ?></h1>
</div>
<div class="col-md-4">
<?php the_post_thumbnail(); ?>
</div>
<?php } else { ?>
<div class="col-xs-12 col-md-offset-2 col-md-8" style="text-align:center;">
<h1><?php echo mash_get_tax_title(); ?></h1>
<h2>Documentation</h2>
</div>
<?php } ?>
</div><!--end row-->
</div><!--end header-->
</div><!--end header-image-->
<div class="decor-top container"><img src="<?php echo get_template_directory_uri(); ?>/images/decor_top.png" alt="blue" /></div>
<div id="page-wrap" class="container" style="margin-top: 40px;">
<div id="content" class="sidebar-right twelve columns blog blog-large">
<div id="kbe_container" style="margin-bottom: 40px;">
<div class="container">
<div class="row">
<div class="col-md-12" style="text-align: center; margin-top: 40px;">
<!--Breadcrum-->
<?php
if(KBE_BREADCRUMBS_SETTING == 1){
?>
<div class="kbe_breadcrum">
<?php echo kbe_breadcrumbs(); ?>
</div>
<?php
}
?>
<!--/Breadcrum-->
<!--search field-->
<?php
if(KBE_SEARCH_SETTING == 1){
kbe_search_form();
}
?>
<!--/search field-->
</div>
</div>
</div>
<!--content-->
<div class="container">
<div class="row">
<div class="col-md-12" style="padding-left:50px; padding-right: 70px; padding-bottom: 40px;">
<?php
if(KBE_SIDEBAR_INNER == 0){
?>
<div id="kbe_content" class="kbe_content_full">
<?php
}elseif(KBE_SIDEBAR_INNER == 1){
?>
<div id="kbe_content" class="kbe_content_right">
<?php
}elseif(KBE_SIDEBAR_INNER == 2){
?>
<div id="kbe_content" class="kbe_content_left">
<?php
}
?>
<!--leftcol-->
<div class="kbe_leftcol">
<!--<articles>-->
<div class="kbe_articles">
<h2><strong><?php echo $kbe_cat_name; ?></strong></h2>
<ul>
<?php
if($kbe_tax_post_qry->have_posts()) :
while($kbe_tax_post_qry->have_posts()) :
$kbe_tax_post_qry->the_post();
?>
<li>
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</li>
<?php
endwhile;
endif;
?>
</ul>
</div>
</div>
<!--/leftcol-->
</div>
</div>
</div>
</div>
<!--/content-->
<!--aside-->
<?php
if(KBE_SIDEBAR_INNER == 0){
?>
<div class="kbe_aside kbe_aside_none">
<?php
}elseif(KBE_SIDEBAR_INNER == 1){
?>
<div class="kbe_aside kbe_aside_left">
<?php
}elseif(KBE_SIDEBAR_INNER == 2){
?>
<div class="kbe_aside kbe_aside_right">
<?php
}
if((KBE_SIDEBAR_INNER == 2) || (KBE_SIDEBAR_INNER == 1)){
dynamic_sidebar('kbe_cat_widget');
}
?>
</div>
<!--/aside-->
</div>
</div>
</div>
</div>
<?php
get_footer();
?>