<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after.
 *
 * @package consultco
 */
?>
<!--==================== CONSULTCO-FOOTER AREA ====================-->
  <?php 
  $consultco_footer_widget_background = get_theme_mod('consultco_footer_widget_background');
  $consultco_overlay_footer_widget_control = get_theme_mod('consultco_overlay_footer_widget_control'); 
   if($consultco_footer_widget_background != '') { ?>
<footer style="background-image:url('<?php echo esc_url($consultco_footer_widget_background);?>');">
  <?php } else { ?>
<footer> 
  <?php } ?>
  <div class="overlay" style="background-color: <?php echo esc_attr($consultco_overlay_footer_widget_control);?>;">
  <!--Start consultco-footer-widget-area-->
  <?php if ( is_active_sidebar( 'footer_widget_area' ) ) { ?>
  <div class="bs-footer-widget-area">
    <div class="container">
      <div class="row">
        <?php  dynamic_sidebar( 'footer_widget_area' ); ?>
      </div>
    </div>
  </div>
  <?php } ?>
  <!--End consultco-footer-widget-area-->
  <div class="bs-footer-copyright">
    <div class="container">
      <div class="row">
        <div class="col-md-6 text-center">
			<div class="site-info mb-3 mb-md-0">
				<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'consultco' ) ); ?>">
					<?php
					/* translators: placeholder replaced with string */
					printf( esc_html__( 'Proudly powered by %s', 'consultco' ), 'WordPress' );
					?>
				</a>
				<span class="sep"> | </span>
				<?php
				/* translators: placeholder replaced with string */
				printf( esc_html__( 'Theme: %1$s by %2$s.', 'consultco' ), 'Consultco', '<a href="' . esc_url( __( 'https://themeansar.com/', 'consultco' ) ) . '" rel="designer">Themeansar</a>' );
				?>		
			</div>
		</div>
        <div class="col-md-6 text-right">
           <?php 
		  $footer_social_icon_enable = get_theme_mod('footer_social_icon_enable','on');
		  if($footer_social_icon_enable !='off')
		  {
		  $consultco_footer_fb_link = get_theme_mod('consultco_footer_fb_link');
		  $consultco_footer_fb_target = get_theme_mod('consultco_footer_fb_target',1);
		  $consultco_footer_twt_link = get_theme_mod('consultco_footer_twt_link');
		  $consultco_footer_twt_target = get_theme_mod('consultco_footer_twt_target',1);
		  $consultco_footer_lnkd_link = get_theme_mod('consultco_footer_lnkd_link');
		  $consultco_footer_lnkd_target = get_theme_mod('consultco_footer_lnkd_target',1);
		  $consultco_footer_insta_link = get_theme_mod('consultco_footer_insta_link');
		  $consultco_footer_insta_target = get_theme_mod('consultco_footer_insta_target',1);
		  ?>
		  <ul class="bs-social">
			<?php if($consultco_footer_fb_link !=''){?>
			<li><span class="icon-soci"><a <?php if($consultco_footer_fb_target) { ?> target="_blank" <?php } ?>href="<?php echo esc_url($consultco_footer_fb_link); ?>"><i class="fab fa-facebook-f"></i></a></span> </li>
			<?php } if($consultco_footer_twt_link !=''){ ?>
			<li><span class="icon-soci"><a <?php if($consultco_footer_twt_target) { ?>target="_blank" <?php } ?>href="<?php echo esc_url($consultco_footer_twt_link);?>"><i class="fab fa-twitter"></i></a></span></li>
			<?php } if($consultco_footer_lnkd_link !=''){ ?>
			<li><span class="icon-soci"><a <?php if($consultco_footer_lnkd_target) { ?>target="_blank" <?php } ?> href="<?php echo esc_url($consultco_footer_lnkd_link); ?>"><i class="fab fa-linkedin"></i></a></span></li>
			<?php } 
			if($consultco_footer_insta_link !=''){ ?>
			<li><span class="icon-soci"><a <?php if($consultco_footer_insta_target) { ?>target="_blank" <?php } ?> href="<?php echo esc_url($consultco_footer_insta_link); ?>"><i class="fab fa-instagram"></i></a></span></li>
			<?php } ?>
		  </ul>
		  <?php } ?>
      </div>
      </div>
    </div>
  </div>
  </div>
</footer>
</div>
<?php $scoller = get_theme_mod('scroller_enable','on');
if($scoller !='off') { ?>
<!-- Scroll To Top -->
<a href="#" class="bs_upscr"><i class="fas fa-angle-up"></i></a>
<!-- /Scroll To Top -->
<?php } ?>
<?php wp_footer(); ?>
</body>
</html>