<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after.
 *
 * @package consultup
 */
?>
<!--==================== consultup-FOOTER AREA ====================-->
  <?php 
  $consultup_footer_widget_background = get_theme_mod('consultup_footer_widget_background');
  $consultup_overlay_footer_widget_control = get_theme_mod('consultup_overlay_footer_widget_control'); 
   if($consultup_footer_widget_background != '') { ?>
<footer style="background-image:url('<?php echo esc_url($consultup_footer_widget_background);?>');">
  <?php } else { ?>
<footer> 
  <?php } ?>
  <div class="overlay" style="background-color: <?php echo esc_html($consultup_overlay_footer_widget_control);?>;">
  <!--Start consultup-footer-widget-area-->
  <?php if ( is_active_sidebar( 'footer_widget_area' ) ) { ?>
  <div class="consultup-footer-widget-area">
    <div class="container">
      <div class="row">
        <?php  dynamic_sidebar( 'footer_widget_area' ); ?>
      </div>
    </div>
  </div>
  <?php } ?>
  <!--End consultup-footer-widget-area-->
  <div class="consultup-footer-copyright">
    <div class="container">
      <div class="row">
        <div class="col-md-6">
			<div class="site-info">
				<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'consultup' ) ); ?>">
					<?php
					/* translators: placeholder replaced with string */
					printf( esc_html__( 'Proudly powered by %s', 'consultup' ), 'WordPress' );
					?>
				</a>
				<span class="sep"> | </span>
				<?php
				/* translators: placeholder replaced with string */
				printf( esc_html__( 'Theme: %1$s by %2$s.', 'consultup' ), 'Consultup', '<a href="' . esc_url( __( 'https://themeansar.com/', 'consultup' ) ) . '" 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')
		  {
		  $consultup_footer_fb_link = get_theme_mod('consultup_footer_fb_link');
		  $consultup_footer_fb_target = get_theme_mod('consultup_footer_fb_target',1);
		  $consultup_footer_twt_link = get_theme_mod('consultup_footer_twt_link');
		  $consultup_footer_twt_target = get_theme_mod('consultup_footer_twt_target',1);
		  $consultup_footer_lnkd_link = get_theme_mod('consultup_footer_lnkd_link');
		  $consultup_footer_lnkd_target = get_theme_mod('consultup_footer_lnkd_target',1);
		  $consultup_footer_insta_link = get_theme_mod('consultup_footer_insta_link');
		  $consultup_footer_insta_target = get_theme_mod('consultup_footer_insta_target',1);
		  ?>
		  <ul class="ti-footer-social ti-social">
			<?php if($consultup_footer_fb_link !=''){?>
			<li><span class="icon-soci"><a <?php if($consultup_footer_fb_target) { ?> target="_blank" <?php } ?>href="<?php echo esc_url($consultup_footer_fb_link); ?>"><i class="fa fa-facebook"></i></a></span> </li>
			<?php } if($consultup_footer_twt_link !=''){ ?>
			<li><span class="icon-soci"><a <?php if($consultup_footer_twt_target) { ?>target="_blank" <?php } ?>href="<?php echo esc_url($consultup_footer_twt_link);?>"><i class="fa fa-twitter"></i></a></span></li>
			<?php } if($consultup_footer_lnkd_link !=''){ ?>
			<li><span class="icon-soci"><a <?php if($consultup_footer_lnkd_target) { ?>target="_blank" <?php } ?> href="<?php echo esc_url($consultup_footer_lnkd_link); ?>"><i class="fa fa-linkedin"></i></a></span></li>
			<?php } 
			if($consultup_footer_insta_link !=''){ ?>
			<li><span class="icon-soci"><a <?php if($consultup_footer_insta_target) { ?>target="_blank" <?php } ?> href="<?php echo esc_url($consultup_footer_insta_link); ?>"><i class="fa 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="page-scroll-up"><i class="fas fa-long-arrow-alt-up"></i></a>
<!-- /Scroll To Top -->
<?php } ?>
<?php wp_footer(); ?>
</body>
</html>