<?php
/**
 *
 * Footer Widget
 *
 * @author      CodeGearThemes
 * @category    WordPress
 * @package     Acoustics
 * @version     1.0.0
 *
 */

if(is_active_sidebar('footer-column-1') ||
    is_active_sidebar('footer-column-2') ||
    is_active_sidebar('footer-column-3') ||
    is_active_sidebar('footer-column-4') ):
?>
<div class="section-footer block-footer-widget">
	<div class="<?php echo esc_attr( apply_filters( 'acoustics_container_class', 'container' ) ); ?>">
		<div class="grid">
			<?php if( is_active_sidebar('footer-column-1') ): ?>
				<div class="grid__item footer-block large--four-twelfths medium--one-half small--one-whole footer--block-contact">
					<?php dynamic_sidebar('footer-column-1');?>
				</div>
			<?php endif; ?>
			<?php if( is_active_sidebar('footer-column-2') ): ?>
				<div class="grid__item footer-block large--two-twelfths medium--one-half small--one-half">
					<?php dynamic_sidebar('footer-column-2'); ?>
				</div>
			<?php endif; ?>
			<?php if( is_active_sidebar('footer-column-3') ): ?>
				<div class="grid__item footer-block large--two-twelfths medium--one-half small--one-half">
					<?php dynamic_sidebar('footer-column-3'); ?>
				</div>
			<?php endif; ?>
			<?php if( is_active_sidebar('footer-column-4') ): ?>
				<div class="grid__item footer-block large--two-twelfths medium--one-half small--one-half">
					<?php dynamic_sidebar('footer-column-4'); ?>
				</div>
			<?php endif; ?>
			<?php if( is_active_sidebar('footer-column-5') ): ?>
				<div class="grid__item footer-block large--two-twelfths medium--one-half small--one-half">
					<?php dynamic_sidebar('footer-column-5'); ?>
				</div>
			<?php endif; ?>
		</div>
	</div>
</div>
<?php endif;
