<?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 ekta_directory
 */

$ekta_directory_options = ekta_directory_theme_options();

$show_prefooter = $ekta_directory_options['show_prefooter'];

?>


<footer id="colophon" class="site-footer">


	<?php if ($show_prefooter== 1){ ?>
	    <section class="footer-sec">
	        <div class="container">
	            <div class="row">
	                <?php if (is_active_sidebar('ekta_directory_footer_1')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('ekta_directory_footer_1') ?>
	                    </div>
	                    <?php
	                else: ekta_directory_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('ekta_directory_footer_2')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('ekta_directory_footer_2') ?>
	                    </div>
	                    <?php
	                else: ekta_directory_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('ekta_directory_footer_3')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('ekta_directory_footer_3') ?>
	                    </div>
	                    <?php
	                else: ekta_directory_blank_widget();
	                endif; ?>
	               	<?php if (is_active_sidebar('ekta_directory_footer_4')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('ekta_directory_footer_4') ?>
	                    </div>
	                    <?php
	                else: ekta_directory_blank_widget();
	                endif; ?>
	            </div>
	        </div>
	    </section>
	<?php } ?>

		<div class="site-info">
		 <p><?php esc_html_e('Powered By WordPress', 'ekta-directory');
                    esc_html_e(' | ', 'ekta-directory') ?>
                    <span><?php esc_html_e('Ekta Directory' , 'ekta-directory'); ?></span>
                </p>
		</div><!-- .site-info -->
	</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>
