<?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 luzuk Premium
 */
?>
<?php 
	if( get_theme_mod('sec_footerseTmargin',true) ) {
		$sec_footerseTmargin = 'padding-top:'.esc_attr(get_theme_mod('sec_footerseTmargin')).';';
	}
	if( get_theme_mod('sec_footersebottommargin',true) ) {
		$sec_footersebottommargin = 'padding-bottom:'.esc_attr(get_theme_mod('sec_footersebottommargin')).';';
	}
?>		
<footer class="footer-area" id="footer">
	<?php if(is_active_sidebar('luzuk-footer1') || is_active_sidebar('luzuk-footer2') || is_active_sidebar('luzuk-footer3') || is_active_sidebar('luzuk-footer4') || is_active_sidebar('luzuk-footer5') ){ ?>
		
		<div class="container">
            <div class="fbox"> 
				<div class="row mr-0"> 
					<!-- <div class="s-footer col-lg-4 col-md-3 col-sm-6 col-xs-12 single-footer-1 ">	 -->
					<div class="s-footer single-footer-1 ">
						<div class="single-footer wow zoomIn" data-wow-duration="1s">	
							<?php if(is_active_sidebar('luzuk-footer1')): 
									dynamic_sidebar('luzuk-footer1');
								endif;
							?>	
						</div>
					</div> 
					
					<div class="s-footer  single-footer-2">
						<div class="single-footer wow zoomIn" data-wow-duration="1.5s" >
							<?php if(is_active_sidebar('luzuk-footer2')): 
								dynamic_sidebar('luzuk-footer2');
							endif;
							?>	
						</div>
					</div>

					<div class="s-footer single-footer-3 ">
						<div class="single-footer wow zoomIn"  data-wow-duration="2s" >
							<?php if(is_active_sidebar('luzuk-footer3')): 
								dynamic_sidebar('luzuk-footer3');
							endif;
							?>	
						</div>
					</div>

					<div class="s-footer  single-footer-4 " >
						<div class="single-footer wow zoomIn" data-wow-duration="2.5s" >
							<?php if(is_active_sidebar('luzuk-footer4')): 
								dynamic_sidebar('luzuk-footer4');
							endif;
							?>	
						</div>
					</div>
				</div>
                <?php 
                    $footercopyright = get_theme_mod('footer_area_copyrighttext', 'Copyright @ 2024 Wine Store All Rights Reserved.');

                    if( get_theme_mod('sec_bottomareaTmargin',true) ) {
                        $sec_bottomareaTmargin = 'padding-top:'.esc_attr(get_theme_mod('sec_bottomareaTmargin')).';';
                    }
                    if( get_theme_mod('sec_bottomareabottommargin',true) ) {
                        $sec_bottomareabottommargin = 'padding-bottom:'.esc_attr(get_theme_mod('sec_bottomareabottommargin')).';';
                    }
                    
                ?>      
                <?php if( $footercopyright  ){ ?>
                    <div class="bottom-area " style="<?php echo esc_attr($sec_bottomareaTmargin); ?>" "<?php echo esc_attr($sec_bottomareabottommargin); ?>">
                            <div class="row mr-0">
                                <div class="col-md-12 col-sm-12 col-xs-12 pd-0">
                                    <div class="footer-text">
                                        <?php if($footercopyright){ ?>
                                                <?php echo $footercopyright;?>
                                        <?php } ?>
                                    </div>
                                </div>
                                
                            </div>
                        <!-- </div> -->
                    </div>
                <?php } ?> 
			</div>
			<div class="clearfix"></div>
		</div>
	<?php } ?>
</footer>

<script type="text/javascript">
	if(jQuery(window).width() >= 1170){
		new WOW().init();
	}
</script>

<script>
	$(window).scroll(function() {
		var height = $(window).scrollTop();
		if (height > 100) {
			$('#back2Top').fadeIn();
		} else {
			$('#back2Top').fadeOut();
		}
	});
	$(document).ready(function() {
		$("#back2Top").click(function(event) {
			event.preventDefault();
			$("html, body").animate({ scrollTop: 0 }, "slow");
			return false;
		});

	});
</script> 
<script type="text/javascript">
    jQuery(document).ready(function(){
        setTimeout(function(){
            jQuery(".flex-control-nav").wrapInner("<div class='owl-carousel'></div>");
            jQuery('.flex-control-nav li').addClass('item');

            $('.flex-control-nav .owl-carousel').owlCarousel({
                refreshClass: 'owl-refresh',
                autoplayTimeout: 5000,
                loop: true,
                margin: 10,
                autoplay: false,
                navText: [
                    '<i class="fa fa-angle-left" aria-hidden="true"></i>',
                    '<i class="fa fa-angle-right" aria-hidden="true"></i>'
                ],
                responsive: {
                    0: {
                        items: 2,
                        nav: true
                    },
                    400: {
                        items: 3,
                        nav: true
                    },
                    768: {
                        items: 4,
                        nav: true
                    },
                    992: {
                        items: 3,
                        nav: true
                    },
                    1199: {
                        items: 4,
                        nav: true
                        // loop: true
                    }
                }
            });
        }, 1000);
    });
</script>


<?php wp_footer(); ?>

	<!-- <a id="back2Top" title="Back to top" href="#"> &#10148; </a> -->

<div id="back2Top" title="Back to top" >
	<svg width="64px" height="64px" viewBox="0 0 261.22 261.22" xml:space="preserve" stroke="#000000" stroke-width="0.00261223"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <path d="M207.538,48.159C209.281,17.108,194.211,0,194.211,0l-63.6,1.94L67.027,0c0,0-15.081,17.108-13.344,48.159 c1.737,31.034,68.98,47.567,68.98,66.715c0,18.625,0,114.176,0,119.184c-0.691,14.919-28.519,22.32-45.674,25.619 c-3.735,0.744-2.643,1.546,0,1.546c2.51,0,47.852,0,53.371,0c0.296,0,0.546,0,0.546,0c5.53,0,50.86,0,53.37,0 c2.649,0,3.753-0.778,0.023-1.546c-17.382-3.334-45.604-10.875-45.604-26.152c0,0-0.14-100.444-0.14-118.65 C138.558,95.726,205.807,79.193,207.538,48.159z M101.982,79.82c-7.157-4.235-16.295-10.399-24.591-18.189L74.312,58.5 c-1.046-1.226-2.283-2.544-2.905-3.602c-1.917-2.846-2.962-6.192-3.393-8.952c-0.819-5.733-0.285-10.729,0.453-14.953 c1.632-8.4,4.404-13.466,4.404-13.466s0.581,5.496,1.476,13.728c0.453,3.962,0.865,8.638,2.033,12.978 c0.499,2.266,1.226,4.072,2.393,5.664c1.499,2.12,2.806,3.462,4.758,5.548c7.72,7.541,15.476,15.069,21.285,20.722 c5.757,5.914,9.504,10.08,9.504,10.08S109.209,83.974,101.982,79.82z"></path> </g> </g></svg>
	
</div>

</body>
</html>
