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

$messina_blog_options = messina_blog_theme_options();

$show_prefooter = $messina_blog_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('messina_blog_footer_1')) : ?>
	                    <div class="col-md-4">
	                        <?php dynamic_sidebar('messina_blog_footer_1') ?>
	                    </div>
	                    <?php
	                else: messina_blog_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('messina_blog_footer_2')) : ?>
	                    <div class="col-md-4">
	                        <?php dynamic_sidebar('messina_blog_footer_2') ?>
	                    </div>
	                    <?php
	                else: messina_blog_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('messina_blog_footer_3')) : ?>
	                    <div class="col-md-4">
	                        <?php dynamic_sidebar('messina_blog_footer_3') ?>
	                    </div>
	                    <?php
	                else: messina_blog_blank_widget();
	                endif; ?>
	            </div>
	        </div>
	    </section>
	<?php } ?>

		<div class="site-info">
		<p><?php esc_html_e('Powered By WordPress', 'messina-blog');
                    esc_html_e(' | ', 'messina-blog') ?>
                    <a target="_blank" rel="nofollow"
                       href="<?php echo esc_url('https://elegantblogthemes.com/theme/messina-blog'); ?>"><?php esc_html_e('Messina Blog' , 'messina-blog'); ?></a>
                </p>
		</div><!-- .site-info -->
	</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>
<!-- // Demo buy CTA button - Start -->
<?php if ( get_option( 'theme_demo' ) ) { ?>

	<style>
#back-to-top {
	bottom: 100px;
}
@media only screen and (max-width: 991px) {
	footer.site-footer{
		padding-bottom:60px;
	}
	.site-info {
		padding-left: 55px;
        padding-right: 55px;
    }	  
}
</style>
<div class="box_wrapper">
<div class="toggle" id="togglePopup"></div>
<div class="section-deal">
<h2>Make your website live today!</h2>
<h3>GET <strong>A FULL</strong> COPY OF THIS EXACT DEMO THEME IN YOUR WORDPRESS WITHIN MINUTES.</h3>
<ul>
<li><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 13">
<path fill="#a0c801"
                            d="M15.57 2.845L14.238 1.51c-.13-.13-.353-.13-.48 0L6.66 8.623l-3.093-3.11c-.13-.13-.352-.13-.482 0L1.75 6.845c-.128.13-.128.352 0 .48l4.67 4.67c.073.055.147.092.24.092s.167-.037.24-.093l8.67-8.67c.13-.13.13-.35 0-.48z">
</path>
</svg> Effortless one-click demo import</li>
<li><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 13">
<path fill="#a0c801"
                            d="M15.57 2.845L14.238 1.51c-.13-.13-.353-.13-.48 0L6.66 8.623l-3.093-3.11c-.13-.13-.352-.13-.482 0L1.75 6.845c-.128.13-.128.352 0 .48l4.67 4.67c.073.055.147.092.24.092s.167-.037.24-.093l8.67-8.67c.13-.13.13-.35 0-.48z">
</path>
</svg> Theme Installation Service at <strong>$29</strong></li>
<li><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 13">
<path fill="#a0c801"
                            d="M15.57 2.845L14.238 1.51c-.13-.13-.353-.13-.48 0L6.66 8.623l-3.093-3.11c-.13-.13-.352-.13-.482 0L1.75 6.845c-.128.13-.128.352 0 .48l4.67 4.67c.073.055.147.092.24.092s.167-.037.24-.093l8.67-8.67c.13-.13.13-.35 0-.48z">
</path>
</svg> Life Time Updates & Premium Support</li>
<li><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 13">
<path fill="#a0c801"
                            d="M15.57 2.845L14.238 1.51c-.13-.13-.353-.13-.48 0L6.66 8.623l-3.093-3.11c-.13-.13-.352-.13-.482 0L1.75 6.845c-.128.13-.128.352 0 .48l4.67 4.67c.073.055.147.092.24.092s.167-.037.24-.093l8.67-8.67c.13-.13.13-.35 0-.48z">
</path>
</svg> Risk-Free 7 Days Money Back Policy</li>
</ul>
<p>Purchase this WordPress theme and <strong> save $10</strong> today</p>
</div>
<div class="section-action">
<a href="https://elegantblogthemes.com/theme/messina-blog-best-blog-wordpress-theme-ever/" class="action-button" target="_blank"><span class="main">Buy Messina Blog Theme </span><span
                    class="after">SALE</span>
</a>
<!--  <span class="alternative-action">or
<a href="https://elegantblogthemes.com/theme/vinyl-news-mag-best-newspaper-and-magazine-wordpress-theme/" target="_blank">learn more about it's features</a>
</span> -->
</div>
</div>
<script>
       document.addEventListener('DOMContentLoaded', function () {
        var toggleButton = document.getElementById('togglePopup');
        var boxWrapper = document.querySelector('.box_wrapper');
        toggleButton.addEventListener('click', function () {
            boxWrapper.classList.toggle('open');
        });
    });
</script>
<?php } ?>
<!-- // Demo buy CTA button - End -->
</body>
</html>
