<?php 
	global $etheme_responsive; 
	$fd = etheme_get_option('footer_demo'); 	
	$fbg = etheme_get_option('footer_bg');
	$fcolor = etheme_get_option('footer_text_color');
	$ft = ''; $ft = apply_filters('custom_footer_filter',$ft);
	$custom_footer = etheme_get_custom_field('custom_footer', et_get_page_id()); 
?>
    
    <!--<?php if($custom_footer != 'without'): ?>
		<?php if((is_active_sidebar('footer1') || $fd) && empty($custom_footer)): ?>
			<div class="footer-top footer-top-<?php echo esc_attr($ft); ?>">
				<div class="container">
	                <?php if ( !is_active_sidebar( 'footer1' ) ) : ?>
	               		<?php if($fd) etheme_footer_demo('footer1'); ?>
	                <?php else: ?>
	                    <?php dynamic_sidebar( 'footer1' ); ?>
	                <?php endif; ?>  
				</div>
			</div>
		<?php endif; ?>
		
	
		<?php if((is_active_sidebar('footer2') || $fd) && empty($custom_footer)): ?>
			<footer class="main-footer main-footer-<?php echo esc_attr($ft); ?> text-color-<?php echo $fcolor; ?>" <?php if($fbg != ''): ?>style="background-color:<?php echo $fbg; ?>"<?php endif; ?>>
				<div class="container">
	                <?php if ( !is_active_sidebar( 'footer2' ) ) : ?>
	               		<?php if($fd) etheme_footer_demo('footer2'); ?>
	                <?php else: ?>
	                    <?php dynamic_sidebar( 'footer2' ); ?>
	                <?php endif; ?>
	                <?php do_action('etheme_after_footer_widgets'); ?>
				</div>

			</footer>
		<?php endif; ?>
	
		<?php if(!empty($custom_footer)): ?>
            <footer class="main-footer main-footer-<?php echo esc_attr($ft); ?> text-color-<?php echo $fcolor; ?>" <?php if($fbg != ''): ?>style="background-color:<?php echo $fbg; ?>"<?php endif; ?>>
                <div class="container">
                    <?php echo et_get_block($custom_footer); ?>  
                </div>
            </footer>
        <?php endif; ?>
	
		<?php if((is_active_sidebar('footer9') || is_active_sidebar('footer10') || $fd) && empty($custom_footer)): ?>
		<div class=" copyright copyright-<?php echo esc_attr($ft); ?> text-color-<?php echo $fcolor; ?>" <?php if($fbg != ''): ?>style="background-color:<?php echo $fbg; ?>"<?php endif; ?>>
			<div class="container">
				<div class="row-copyrights">
					<div class="pull-left">
						<?php if(is_active_sidebar('footer9')): ?> 
							<?php dynamic_sidebar('footer9'); ?>	
						<?php else: ?>
							<?php if($fd) etheme_footer_demo('footer9'); ?>
						<?php endif; ?>
					</div>
					<div class="clearfix visible-xs"></div>
					<div class="copyright-payment">
						<?php if(is_active_sidebar('footer10')): ?> 
							<?php dynamic_sidebar('footer10'); ?>	
						<?php else: ?>
							<?php if($fd) etheme_footer_demo('footer10'); ?>
						<?php endif; ?>
					</div>
				</div>
			</div>-->

			
			<div class="custom-main-footer">
				
				<div class="col-md-3">
					<div class="footer-logo">
						<img src="<?php echo the_field('footer_logo', 19134); ?>">
					</div>

				</div>
				<div class="col-md-4">
					<ul class="social-link">
						<li><a href="<?php echo the_field('twitter_link', 19134); ?>"></a></li>
					</ul>

				</div>
				<div class="col-md-5">
					<div class="news-place">
						<?php echo do_shortcode('[email-subscribers namefield=”YES”  group=”Public”]'); ?>
					</div>

				</div>
				<div class="clearfix"></div>

			</div>
			<div class="footer-menu">
					<?php wp_nav_menu( array(
					'container'       => 'div',
					'container_class' => 'custom-nav',
					'menu_class'     => 'footer-menu',
					'theme_location'  => 'custom-menu'
					) ); ?>
			</div>
		</div>
	    <?php endif; ?>
    <?php endif; ?>

   




	
	</div> <!-- page wrapper -->
	</div> <!-- st-content-inner -->
	</div>
	</div>
	<?php do_action('after_page_wrapper'); ?>
	</div> <!-- st-container -->
	

    <?php if (etheme_get_option('loader')): ?>
    	<script type="text/javascript">
    		if(jQuery(window).width() > 1200) {
		        jQuery("body").queryLoader2({
		            barColor: "#111",
		            backgroundColor: "#fff",
		            percentage: true,
		            barHeight: 2,
		            completeAnimation: "grow",
		            minimumTime: 500,
		            onLoadComplete: function() {
			            jQuery('body').addClass('page-loaded');
		            }
		        });
    		}
        </script>
	<?php endif; ?>
	<script type="text/javascript">
/*function changeOverImage(element) {
    var url = jQuery(element).prop('src'),
        url_over = jQuery(element).data('change-over');

    jQuery(element)
        .prop('src', url_over)
        .data('change-over', url);
}

jQuery(document).delegate('img[data-change-over]', 'mouseover', function() {
    changeOverImage(this);
}); */







//jQuery('.carouseeel').removeClass('owl-wrapper-outer').addClass('owl-stage-outer');
            




  

jQuery('.item img').bind('mouseenter mouseleave', function() {
    jQuery(this).attr({
        src: jQuery(this).attr('data-change-over') 
        , 'data-change-over': jQuery(this).attr('src') 
    })
});


//});

</script>
	<?php if (etheme_get_option('to_top')): ?>
		<div id="back-top" class="back-top <?php if(!etheme_get_option('to_top_mobile')): ?>visible-lg<?php endif; ?> bounceOut">
			<a href="#top">
				<span></span>
			</a>
		</div>
	<?php endif; ?>


	<?php
		/* Always have wp_footer() just before the closing </body>
		 * tag of your theme, or you will break many plugins, which
		 * generally use this hook to reference JavaScript files.
		 */

		wp_footer();
	?>


<!--<script type="text/javascript">
jQuery(document).ready(function($){
		$('#togglecls-main-cls').hover(function(){
			$('#toggle-child-id').toggle('show');
		});
                
                $('#toggleid-main-two').hover(function(){
			$('#toggleid-showhide-two').toggle('show');
		});
                
                $('#toggleid-main-three').hover(function(){
			$('#toggleid-showhide-three').toggle('show');
		});
});
</script>-->


</body>

</html>
