File "sidebar.php"

Full Path: /home/flipjqml/onlinebetsolution.com/wp-content/themes/cyarb/sidebar.php
File size: 870 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * The sidebar containing the main widget area
 * @package cyarb
 */

if ( class_exists( 'WooCommerce' ) ) {
	if( is_woocommerce() ) {
		$sidebar = 'shop';
	}elseif ( is_product() ) {
		$sidebar = 'shop';
	}else {
		$sidebar = 'article-sidebar';
	}
}else{
	$sidebar = 'article-sidebar';
}

if ( ! is_active_sidebar( $sidebar ) ) { 
	return;
}
?>
<div class="col-lg-4 col-md-12">
	<?php if ( class_exists( 'WooCommerce' ) ) {
		if( is_woocommerce() ) { ?>
			<div id="secondary" class="sidebar shop-sidebar">
			<?php
		} elseif ( is_product() ) { ?>
			<div id="secondary" class="sidebar shop-sidebar">
		<?php
		} else { ?>
			<div id="secondary" class="title blog-sidebar widget-area">
		<?php
		}
	} else { ?>
		<div id="secondary" class="title blog-sidebar widget-area">
	<?php } ?>

		<?php dynamic_sidebar( $sidebar );?>
	</div>
</div><!-- #secondary -->