<?php if(!isset( $_GET['layout']) or $_GET['layout']!='sidebarmap'){ ?>
<!-- footer block module
	================================================== -->
<footer class="footer">
	<div class="container">

		<div class="footer__up-part">
			<div class="row">
				<div class="col-md-4">

					<?php if(is_active_sidebar('footer-1')){ ?>
						<?php dynamic_sidebar('footer-1'); ?>
					<?php } ?>

				</div>
				<div class="col-md-4">

					<?php if(is_active_sidebar('footer-2')){ ?>
						<?php dynamic_sidebar('footer-2'); ?>
					<?php } ?>

				</div>
				<div class="col-md-4">

					<?php if(is_active_sidebar('footer-3')){ ?>
						<?php dynamic_sidebar('footer-3'); ?>
					<?php } ?>

				</div>
			</div>
		</div>

		<div class="footer__down-part">
			<div class="row">
				<div class="col-md-7">
					<p class="footer__copyright">
						<?php echo do_shortcode(get_theme_mod( 'copyright','2019 triptip. &copy; All Rights Reserved Nunforest')); ?>
					</p>
				</div>
				<div class="col-md-5">
					<?php 
						$socials = 0;
						$facebook = get_theme_mod( 'facebook_url');
						if($facebook!=''){
							$socials = $socials +1;
						}
						$twitter = get_theme_mod( 'twitter_url');
						if($twitter!=''){
							$socials = $socials +1;
						}
						$vimeo = get_theme_mod( 'vimeo_url');
						if($vimeo!=''){
							$socials = $socials +1;
						}
						$linkedin = get_theme_mod( 'linkedin_url');
						if($linkedin!=''){
							$socials = $socials +1;
						}
						$instagram = get_theme_mod( 'instagram_url');
						if($instagram!=''){
							$socials = $socials +1;
						}
						$pinterest = get_theme_mod( 'pinterest_url');
						if($pinterest!=''){
							$socials = $socials +1;
						}
						$youtube = get_theme_mod( 'youtube_url');
						if($youtube!=''){
							$socials = $socials +1;
						}
					?>
					<?php if($socials>0){ ?>
					<ul class="footer__social-list">
						<?php if($facebook!=''){ ?>
						<li><a class="facebook" href="<?php echo esc_url($facebook); ?>"><i class="fa fa-facebook"></i></a></li>
						<?php } ?>
						<?php if($twitter!=''){ ?>
						<li><a class="twitter" href="<?php echo esc_url($twitter); ?>"><i class="fa fa-twitter"></i></a></li>
						<?php } ?>
						<?php if($vimeo!=''){ ?>
						<li><a class="video" href="<?php echo esc_url($vimeo); ?>"><i class="fa fa-vimeo"></i></a></li>
						<?php } ?>
						<?php if($linkedin!=''){ ?>
						<li><a class="linkedin" href="<?php echo esc_url($linkedin); ?>"><i class="fa fa-linkedin"></i></a></li>
						<?php } ?>
						<?php if($instagram!=''){ ?>
						<li><a class="instagram" href="<?php echo esc_url($instagram); ?>"><i class="fa fa-instagram"></i></a></li>
						<?php } ?>
						<?php if($youtube!=''){ ?>
						<li><a class="youtube" href="<?php echo esc_url($youtube); ?>"><i class="fa fa-youtube"></i></a></li>
						<?php } ?>
						<?php if($pinterest!=''){ ?>
						<li><a class="youtube" href="<?php echo esc_url($pinterest); ?>"><i class="fa fa-pinterest"></i></a></li>
						<?php } ?>
					</ul>
					<?php } ?>
				</div>
			</div>
		</div>

	</div>

</footer>
<!-- End footer -->
<?php } ?>