<?php if(get_theme_mod('andaman_widget_footer', true) == true)  { ?>
<footer>
<?php if(get_theme_mod('andaman_footer_color', 'black') == 'white')  { ?>
	<div class="footer">
<?php } else { ?>
	<div class="footer black">
<?php }; ?>
  	<?php if ( is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3') || is_active_sidebar('footer-4')) { ?>
	  	<?php if(get_theme_mod('andaman_footer_maps', 'enable') == true)  { ?>
			<div class="footer-area-cont">
		<?php } else { ?>
			<div class="footer-area-cont no-map">
		<?php }; ?>
			<div class="container">
				<div class="row">
				  <?php $andaman_widget_footer_count = get_theme_mod( 'andaman_widget_footer_count', 'one'); ?>
				    <?php if ($andaman_widget_footer_count == 'one'): ?>
						<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
							<div class="footer-widget">
								<div class="footer-area">
									<?php dynamic_sidebar( 'footer-1' ); ?>
								</div>
							</div>
						</div>
						<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
							<div class="footer-widget">
								<div class="footer-area">
									<?php dynamic_sidebar( 'footer-2' ); ?>
								</div>
							</div>
						</div>
						<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
							<div class="footer-widget">
								<div class="footer-area">
									<?php dynamic_sidebar( 'footer-3' ); ?>
								</div>
							</div>
						</div>
     				<?php elseif ($andaman_widget_footer_count == 'two'): ?>
							<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
								<div class="footer-widget">
									<div class="footer-area">
										<?php dynamic_sidebar( 'footer-1' ); ?>
									</div>
								</div>
							</div>
							<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
								<div class="footer-widget">
									<div class="footer-area">
										<?php dynamic_sidebar( 'footer-2' ); ?>
									</div>
								</div>
							</div>
							<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
								<div class="footer-widget">
									<div class="footer-area">
										<?php dynamic_sidebar( 'footer-3' ); ?>
									</div>
								</div>
							</div>
							<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
								<div class="footer-widget">
									<div class="footer-area">
										<?php dynamic_sidebar( 'footer-4' ); ?>
									</div>
								</div>
							</div>
     				<?php endif; ?> 
				</div>
			</div>
		</div>
	<?php } ?>
		<div class="footer-copyright">
			<div class="container">
				<div class="row">
					<div class="col-sm-6 col-xs-12">
						<div class="copyright-info">
							<p><?php echo get_theme_mod( 'andaman_footer_copy', wp_kses( __('© 2018 Andaman by <a href="https://themeforest.net/user/dankovthemes" target="_blank">DankovThemes</a>. All right reserved.', 'andaman'), array('a'=> array('href' => array(),'target' => array())))); ?></p>
						</div>
					</div>
					<div class="col-sm-6 col-xs-12">
						<div class="footer-menu text-right">
		                    <?php wp_nav_menu( array(
		                          'theme_location' => 'footer-menu',
		                          'depth' => 1,
		                          'fallback_cb' => 'andaman_MenuFallback_footer'
		                    )); ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</footer>
<?php }; ?> 