HEX
Server: Microsoft-IIS/10.0
System: Windows NT WIN8095 10.0 build 20348 (Windows Server 2016) AMD64
User: kytoffice-001 (0)
PHP: 7.4.30
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source
Upload Files
File: h:/root/home/kytoffice-001/www/expresstinou/wp-content/themes/newsmunch/sidebar-front-content.php
<?php
if ( ! is_active_sidebar( 'frontpage-content' ) ) {
	return;
}
$is_rt_active = is_active_sidebar('frontpage-left-sidebar');
$is_lt_active = is_active_sidebar('frontpage-right-sidebar');
$class='';
if($is_lt_active && $is_rt_active) { 
	$class= 'dt-col-lg-6'; 
}elseif(!$is_rt_active && !$is_lt_active) { 
	$class= 'dt-col-lg-12'; 
}elseif((!$is_rt_active && $is_lt_active) || ($is_rt_active && !$is_lt_active)) {
	$class= 'dt-col-lg-9'; 
}
?>
<div class="<?php echo esc_attr($class); ?>">
	<?php dynamic_sidebar( 'frontpage-content' ); ?>
</div>