<?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 Life Coaches
 */

?>
<?php
$life_coaches_options = life_coaches_theme_options();
$show_widgets = $life_coaches_options['show_widgets'];
$fb_url = $life_coaches_options['fb_url'];
$youtube_url = $life_coaches_options['youtube_url'];

?>

	<footer id="colophon" class="site-footer">
		<?php if($show_widgets):?>
		<div class="prefooter">
		 	<div class="container">
	            <div class="row">
	                <?php if (is_active_sidebar('life_coaches_footer_1')) : ?>
	                    <div class="col-md-4">
	                        <?php dynamic_sidebar('life_coaches_footer_1') ?>
	                    </div>
	                    <?php
	                else: life_coaches_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('life_coaches_footer_2')) : ?>
	                    <div class="col-md-4">
	                        <?php dynamic_sidebar('life_coaches_footer_2') ?>
	                    </div>
	                    <?php
	                else: life_coaches_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('life_coaches_footer_3')) : ?>
	                    <div class="col-md-4">
	                        <?php dynamic_sidebar('life_coaches_footer_3') ?>
	                    </div>
	                    <?php
	                else: life_coaches_blank_widget();
	                endif; ?>
	            	</div>
	        </div>
       </div>
   		<?php endif; ?>

		<div class="site-info">
			<div class="container">
        			<div class="row">
        				<div class="col-md-12">
						<span><a target="_blank" href="https://themesartist.com/life-coaches/"><?php esc_html_e('Life Coaches' , 'life-coaches'); ?></a><?php esc_html_e(' By Themes Artist.' , 'life-coaches'); ?> <?php esc_html_e('Powered By WordPress', 'life-coaches');
       					?></span>
	    				</div>
	     		</div>
      		</div>
		</div><!-- .site-info -->
	</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>
