0) {
// --- set sidebar footer attributes ---
// 2.0.9: added template name to footer class attribute
$template = str_replace('.php', '', basename(__FILE__));
$classes = 'sidebar sidebar-footer';
if ($template != 'footer') {$classes .= ' sidebar-'.$template;}
$args = array('class' => $classes);
// --- open footer div ---
bioship_html_comment('#sidebar-footer');
$attributes = hybrid_get_attr('sidebar', 'footer', $args);
echo '
'.PHP_EOL;
// --- before widgets action hook ---
bioship_do_action('bioship_before_footer_widgets');
// --- Footer Sidebar 1 ---
if (is_active_sidebar('footer-widget-area-1')) {
$footercount++;
$first = ' first';
if ($footercount == $footerwidgets) {$last = ' last';}
$footerclasses = $footergrid.$first.$last;
echo ''.PHP_EOL;
}
// --- Footer Sidebar 2 ---
if (is_active_sidebar('footer-widget-area-2')) {
$footercount++;
if ($first == '') {$first = ' first';}
if ($footercount == $footerwidgets) {$last = ' last';}
$footerclasses = $footergrid.$first.$last;
echo ''.PHP_EOL;
}
// --- Footer Sidebar 3 ---
if (is_active_sidebar('footer-widget-area-3')) {
$footercount++;
if ($first == '') {$first = ' first';}
if ($footercount == $footerwidgets) {$last = ' last';}
$footerclasses = $footergrid.$first.$last;
echo ''.PHP_EOL;
}
// --- Footer Sidebar 4 ---
if (is_active_sidebar('footer-widget-area-4')) {
$footercount++;
if ($first == '') {$first = ' first';}
if ($footercount == $footerwidgets) {$last = ' last';}
$footerclasses = $footergrid.$first.$last;
echo ''.PHP_EOL;
}
// --- after widgets action hook ---
bioship_do_action('bioship_after_footer_widgets');
echo '
'.PHP_EOL;
bioship_html_comment('/#sidebar-footer');
// --- output clear div ---
echo ''.PHP_EOL;
}