<?php
/*
 * The Footer Widget Area
 * @package 
 */
 ?>
 </div><!--.mega-container-->
 <?php if ( is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3') ) : ?>
	 <div id="footer-sidebar" class="widget-area">
         <div class="footer-inner">
         <div class="layer"></div>
            <div id="footer-bar" class="container">

                <?php //if ( get_theme_mod('blain_social_loc') == 'headfoot' || get_theme_mod('blain_social_loc') == 'all') : ?>
                <div id="footer-social">
                   <?php get_template_part('modules/social/social', 'fafooter');?>
                </div>
                <?php //endif; ?>

                <div id="footer-menu">
                    <?php wp_nav_menu(array('theme_location' => 'footer')); ?>
                </div>

            </div>
		 
            <div class="container">
                <?php
                    if ( is_active_sidebar( 'footer-1' ) ) : ?>
                        <div class="footer-column col-md-4 col-sm-4">
                            <?php dynamic_sidebar( 'footer-1'); ?>
                        </div>
                    <?php endif;

                    if ( is_active_sidebar( 'footer-2' ) ) : ?>
                        <div class="footer-column col-md-4 col-sm-4">
                            <?php dynamic_sidebar( 'footer-2'); ?>
                        </div>
                    <?php endif;

                    if ( is_active_sidebar( 'footer-3' ) ) : ?>
                        <div class="footer-column col-md-4 col-sm-4"> <?php
                            dynamic_sidebar( 'footer-3'); ?>
                        </div>
                    <?php endif; ?>
            </div>
         </div>
	 </div>	<!--#footer-sidebar-->	
<?php endif; ?>