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