set no sidebar for category online-bsss.
This commit is contained in:
parent
75fc5022f0
commit
993312fc3a
@ -9,6 +9,10 @@
|
|||||||
get_header();
|
get_header();
|
||||||
$postType = get_post_type();
|
$postType = get_post_type();
|
||||||
|
|
||||||
|
global $wp_query;
|
||||||
|
$tax_slug = $wp_query->get_queried_object();
|
||||||
|
$isNoSideBar = 'online-bsss' === $tax_slug->slug;
|
||||||
|
|
||||||
if ( !$postType ) {
|
if ( !$postType ) {
|
||||||
global $wp_query;
|
global $wp_query;
|
||||||
if ($wp_query->query_vars['post_type']) {
|
if ($wp_query->query_vars['post_type']) {
|
||||||
@ -18,7 +22,7 @@ if ( !$postType ) {
|
|||||||
<!-- [ #container ] -->
|
<!-- [ #container ] -->
|
||||||
<div id="container" class="innerBox clearfix">
|
<div id="container" class="innerBox clearfix">
|
||||||
<!-- [ #content ] -->
|
<!-- [ #content ] -->
|
||||||
<div id="content" class="content">
|
<div id="content" class="content<?php echo $isNoSideBar ? ' wide' : ''; ?>">
|
||||||
|
|
||||||
<div class="bcnlist">
|
<div class="bcnlist">
|
||||||
<?php if(function_exists('bcn_display'))
|
<?php if(function_exists('bcn_display'))
|
||||||
@ -62,7 +66,6 @@ if ( !$postType ) {
|
|||||||
<?php
|
<?php
|
||||||
// append static page
|
// append static page
|
||||||
if (!is_year() && !is_month() && !is_author()) {
|
if (!is_year() && !is_month() && !is_author()) {
|
||||||
$tax_slug = $wp_query->get_queried_object();
|
|
||||||
$post = get_page_by_path('category-'.esc_html($tax_slug->slug));
|
$post = get_page_by_path('category-'.esc_html($tax_slug->slug));
|
||||||
if ($post) {
|
if ($post) {
|
||||||
?>
|
?>
|
||||||
@ -124,12 +127,14 @@ if ( !$postType ) {
|
|||||||
</div>
|
</div>
|
||||||
<!-- [ /#content ] -->
|
<!-- [ /#content ] -->
|
||||||
|
|
||||||
|
<?php if (!$isNoSideBar) : ?>
|
||||||
<!-- [ #sideTower ] -->
|
<!-- [ #sideTower ] -->
|
||||||
<div id="sideTower" class="sideTower side">
|
<div id="sideTower" class="sideTower side">
|
||||||
<?php get_sidebar($postType); ?>
|
<?php get_sidebar($postType); ?>
|
||||||
</div>
|
</div>
|
||||||
<!-- [ /#sideTower ] -->
|
<!-- [ /#sideTower ] -->
|
||||||
<?php biz_vektor_sideTower_after();?>
|
<?php biz_vektor_sideTower_after();?>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<!-- [ /#container ] -->
|
<!-- [ /#container ] -->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user