<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Big Blue
 */

?>
	</div><!-- #content -->

	<div class="footer-widget-container">
        <div class="container">
            <div class="row">
                <div class="col-md-4">                    
                    <?php dynamic_sidebar('big-blue-footer-one-widget'); ?>
                </div>
                <div class="col-md-4">                    
                    <?php dynamic_sidebar('big-blue-footer-two-widget'); ?>
                </div>
                <div class="col-md-4">                    
                    <?php dynamic_sidebar('big-blue-footer-three-widget'); ?>
                </div>
            </div>
        </div>
    </div>
	<footer id="colophon" class="site-footer" role="contentinfo">
    	<div class="container">
        	<div class="row">
            	<div class="col-md-12">
                    
                    <?php if ( has_nav_menu( 'social' ) ) {
						wp_nav_menu(
							array(
								'theme_location'  => 'social',
								'container'       => 'div',
								'container_id'    => 'menu-social',
								'container_class' => 'menu',
								'menu_id'         => 'menu-social-items',
								'menu_class'      => 'menu-items',
								'depth'           => 1,
								'link_before'     => '<span class="screen-reader-text">',
								'link_after'      => '</span>',
								'fallback_cb'     => '',
							)
						);
					
					} ?>
                    
                    <div class="footer-info">
					<?php echo __('&copy; ', 'big-blue') . esc_attr( get_bloginfo( 'name', 'big-blue' ) );  ?>
                    <?php if(is_home() && !is_paged()){?>            
                        <?php echo __(' - Built with','big-blue'); ?> <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'big-blue' ) ); ?>" rel="nofollow" target="_blank"><?php printf( esc_html( '%s', 'big-blue' ), 'WordPress' ); ?></a><span><?php esc_html_e(' and ','big-blue'); ?></span><a href="<?php echo esc_url( __( 'https://wpdevshed.com/bigblue-theme/', 'big-blue' ) ); ?>" rel="nofollow" target="_blank"><?php printf( esc_html( '%s', 'big-blue' ), 'Big Blue' ); ?></a>
                    <?php } ?>
                    </div><!-- .site-info -->
                    
                </div>
            </div>
        </div>
	</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>
