<?php
/**
 * Displays footer widgets if assigned
 *
 * @package ComRepair
 */
?>

<?php
if ( is_active_sidebar( 'footer-1' ) ||
	is_active_sidebar( 'footer-2' ) ||
	is_active_sidebar( 'footer-3' ) ||
	is_active_sidebar( 'footer-4' ) ) :
?>

	<aside class="footer-widgets">
		<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
			<div class="footer-widgets-column">
				<?php dynamic_sidebar( 'footer-1' ); ?>
			</div><!-- .footer-widgets-column -->
		<?php endif; ?>

		<?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
			<div class="footer-widgets-column">
				<?php dynamic_sidebar( 'footer-2' ); ?>
			</div><!-- .footer-widgets-column -->
		<?php endif; ?>

		<?php if ( is_active_sidebar( 'footer-3' ) ) : ?>
			<div class="footer-widgets-column">
				<?php dynamic_sidebar( 'footer-3' ); ?>
			</div><!-- .footer-widgets-column -->
		<?php endif; ?>

		<?php if ( is_active_sidebar( 'footer-4' ) ) : ?>
			<div class="footer-widgets-column">
				<?php dynamic_sidebar( 'footer-4' ); ?>
			</div><!-- .footer-widgets-column -->
		<?php endif; ?>
	</aside><!-- .footer-widgets -->

<?php endif; ?>
