Viewing File: /home/maglabs/2vsa/wp-content/themes/cargohub/sidebar.php

<?php
/**
 * The Sidebar containing the main widget areas.
 *
 * @package CargoHub
 */
if ( 'no-sidebar' == cargohub_get_layout() ) {
	return;
}

if ( cargohub_is_blog() ) {
	$col = 'col-md-4';
} else {
	$col = 'col-md-3';
}

$sidebar = 'blog-sidebar';

if ( is_post_type_archive( 'service' ) || is_tax( 'service_category' ) ) {
	$sidebar = 'service-sidebar';
} elseif( is_page() ) {
	$sidebar = 'page-sidebar';
}

?>
<aside id="primary-sidebar" class="widgets-area primary-sidebar <?php echo esc_attr( $sidebar ) ?> col-xs-12 col-sm-12 <?php echo esc_attr( $col ) ?>">
	<div class="cargohub-widget">
		<?php
		if (is_active_sidebar($sidebar)) {
			dynamic_sidebar($sidebar);
		}
		?>
	</div>
</aside><!-- #secondary -->
Back to Directory File Manager