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

$prato_store_options = prato_store_theme_options();

$show_prefooter = $prato_store_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('prato_store_footer_1')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('prato_store_footer_1') ?>
	                    </div>
	                    <?php
	                else: prato_store_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('prato_store_footer_2')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('prato_store_footer_2') ?>
	                    </div>
	                    <?php
	                else: prato_store_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('prato_store_footer_3')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('prato_store_footer_3') ?>
	                    </div>
	                    <?php
	                else: prato_store_blank_widget();
	                endif; ?>
	               	<?php if (is_active_sidebar('prato_store_footer_4')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('prato_store_footer_4') ?>
	                    </div>
	                    <?php
	                else: prato_store_blank_widget();
	                endif; ?>
	            </div>
	        </div>
	    </section>
	<?php } ?>

		<div class="site-info">
		 <p><?php esc_html_e('Powered By WordPress', 'prato-store');
                    esc_html_e(' | ', 'prato-store') ?>
                    <span> <a target="_blank" rel="nofollow"
                       href="<?php echo esc_url('https://www.flawlessthemes.com/theme/prato-store-best-woocommerce-store-wordpress-theme/'); ?>"><?php esc_html_e('Prato Store' , 'prato-store'); ?></a></span>
                </p>
		</div><!-- .site-info -->
	</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>
</div>
</body>
</html>
