<?php // Main footer widget areas
if ( is_active_sidebar( 'footer-area-1' ) || is_active_sidebar( 'footer-area-2' ) || is_active_sidebar( 'footer-area-3' ) || is_active_sidebar( 'footer-area-4' ) || is_active_sidebar( 'footer-area-5' )) { ?>
<section class="main container_wrap">
	
	<?php // Hook: at the start of the footer section: main
    rem_footer_main_begin(); ?>
	
	<div class="container">
		
		<?php if ( is_active_sidebar( 'footer-area-1' ) ) { ?>
			<div id="widget-area-1" class="col">
				<?php dynamic_sidebar( 'footer-area-1' ); ?>
			</div>
		<?php } ?>
		<?php if ( is_active_sidebar( 'footer-area-2' ) ) { ?>
			<div id="widget-area-2" class="col">
				<?php dynamic_sidebar( 'footer-area-2' ); ?>
			</div>
		<?php } ?>
		<?php if ( is_active_sidebar( 'footer-area-3' ) ) { ?>
			<div id="widget-area-3" class="col">
				<?php dynamic_sidebar( 'footer-area-3' ); ?>
			</div>
		<?php } ?>
		<?php if ( is_active_sidebar( 'footer-area-4' ) ) { ?>
			<div id="widget-area-4" class="col">
				<?php dynamic_sidebar( 'footer-area-4' ); ?>
			</div>
		<?php } ?>
		<?php if ( is_active_sidebar( 'footer-area-5' ) ) { ?>
			<div id="widget-area-5" class="col">
				<?php dynamic_sidebar( 'footer-area-5' ); ?>
			</div>
		<?php } ?>
		
	</div>
	
	<?php // Hook: at the end of the footer section: main
    rem_footer_main_end(); ?>
	
</section>
<?php }; ?>