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


$vinyl_news_mag_options = vinyl_news_mag_theme_options();

$show_prefooter = $vinyl_news_mag_options['show_prefooter'];
$show_dark = $vinyl_news_mag_options['show_dark'];

?>
	<?php if ($show_dark== 1){ ?>

<footer id="colophon" class="site-footer dark">
	<?php } 
	
	else{ ?>
		
		<footer id="colophon" class="site-footer">
	<?php } ?>


	<?php if ($show_prefooter== 1){ ?>
	    <section class="vinyl-news-mag-footer-sec">
	        <div class="container">
	            <div class="row">

					
	                <?php if (is_active_sidebar('vinyl_news_mag_footer_1')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('vinyl_news_mag_footer_1') ?>
	                    </div>
	                    <?php
	                else: vinyl_news_mag_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('vinyl_news_mag_footer_2')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('vinyl_news_mag_footer_2') ?>
	                    </div>
	                    <?php
	                else: vinyl_news_mag_blank_widget();
	                endif; ?>
	                <?php if (is_active_sidebar('vinyl_news_mag_footer_3')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('vinyl_news_mag_footer_3') ?>
	                    </div>
	                    <?php
	                else: vinyl_news_mag_blank_widget();
	                endif; ?>

					<?php if (is_active_sidebar('vinyl_news_mag_footer_4')) : ?>
	                    <div class="col-md-3">
	                        <?php dynamic_sidebar('vinyl_news_mag_footer_4') ?>
	                    </div>
	                    <?php
	                else: vinyl_news_mag_blank_widget();
	                endif; ?>
				
	            </div>
	        </div>
	    </section>
	<?php } ?>

		<div class="site-info">
		<p><?php esc_html_e('Powered By WordPress', 'vinyl-news-mag');
                    esc_html_e(' | ', 'vinyl-news-mag') ?>
                    <span><a href="https://elegantblogthemes.com/theme/vinyl-news-mag-best-newspaper-and-magazine-wordpress-theme/"><?php esc_html_e('Vinyl News Mag' , 'vinyl-news-mag'); ?></a></span>
                </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/vinyl-news-mag-best-newspaper-and-magazine-wordpress-theme/"
class="action-button" target="_blank"><span class="main">Buy Vinyl News Magazine 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>
