themes-wordpress/dara/sidebar-footer.php
2018-02-27 14:10:31 +11:00

33 lines
978 B
PHP

<?php
/**
* The sidebar containing the footer page widget areas.
*
* If no active widgets in either sidebar, they will be hidden completely.
*
* @package Dara
*/
if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) && ! is_active_sidebar( 'sidebar-4' ) ) {
return;
}
?>
<div id="tertiary" class="widget-area footer-widget-area" role="complementary">
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
<div id="widget-area-2" class="widget-area">
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</div><!-- #widget-area-2 -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
<div id="widget-area-3" class="widget-area">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</div><!-- #widget-area-3 -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?>
<div id="widget-area-4" class="widget-area">
<?php dynamic_sidebar( 'sidebar-4' ); ?>
</div><!-- #widget-area-4 -->
<?php endif; ?>
</div><!-- #tertiary -->