<?php $places = theme_get_sidebar_places('header'); $count_widgets = array_sum(array_map('count', $places)); if ($count_widgets > 0) { theme_print_sidebar('header', $places); }
<?php $places = theme_get_sidebar_places('top'); $count_widgets = array_sum(array_map('count', $places)); if ($count_widgets > 0) { theme_print_sidebar('top', $places); }
<?php $places = theme_get_sidebar_places('bottom'); $count_widgets = array_sum(array_map('count', $places)); if ($count_widgets > 0) { theme_print_sidebar('bottom', $places); }
<?php $places = theme_get_sidebar_places('footer'); $count_widgets = array_sum(array_map('count', $places)); if ($count_widgets > 0) { theme_print_sidebar('footer', $places); }
<?php if (theme_has_layout_part("left_sidebar")) { ?> <?php $places = theme_get_sidebar_places('default'); $count_widgets = array_sum(array_map('count', $places)); if ($count_widgets > 0) { ?> <div class="art-layout-cell art-sidebar1 clearfix"> <?php theme_print_sidebar('default', $places); ?> </div><?php } ?> <?php } ?>