<!--------Footer-------->
<?php
$facebook_link= '';
$youtube_link= '';
$linkedin_link= '';
$instagram_link= '';
$twitter_link= '';
$printrest_link= '';
$tiktok_link= '';

$footer_logo = get_field('footer_logo', 'option');
$address_heading = get_field('address_heading', 'option');
$footer_address = get_field('footer_address', 'option');
$footer_phone_number = get_field('footer_phone_number', 'option');
$footer_email = get_field('footer_email', 'option');
$footer_social_media = get_field('footer_social_media', 'option');
if(!empty($footer_social_media)) {
    $facebook_link = $footer_social_media['facebook_link'];
    $youtube_link = $footer_social_media['youtube_link'];
    $linkedin_link = $footer_social_media['linkedin_link'];
    $instagram_link = $footer_social_media['instagram_link'];
    $twitter_link = $footer_social_media['twitter_link'];
    $printrest_link = $footer_social_media['printrest_link'];
    $tiktok_link = $footer_social_media['tiktok_link'];
}

$privacy_policy_link = get_field('privacy_policy_link', 'option');
$terms_of_use_link = get_field('terms_of_use_link', 'option');
$copy_right_text = get_field('copy_right_text', 'option');

?>
<footer class="space">
  <div class="container">
    <div class="row">
     <div class="col-md-6 col-lg-6">
      <div class="left">

			<a href="<?php echo home_url(); ?>" class="logo">
			<img src="<?php echo esc_url($footer_logo); ?>" align="logo"></a>
        <div class="address">
           <small class="sub-text"><?php echo esc_html($address_heading); ?></small>
           <h5><?php echo esc_html($footer_address); ?></h5>
        </div>
      </div>
     </div>
     <div class="col-md-6 col-lg-6">
      <div class="right">
        <small class="sub-text">Contact</small>
        <ul class="contact">
            <li>
              <a href="tel:<?php echo esc_attr($footer_phone_number); ?>"><?php echo esc_html($footer_phone_number); ?></a>
            </li>
            <li>
              <a href="mailto:<?php echo esc_attr($footer_email); ?>"><?php echo esc_html($footer_email); ?></a>
            </li>
          </ul>
          <small class="sub-text">Follow Us on:</small>
          <ul class="social-media">
            <li>
              <a href="<?php echo esc_url($facebook_link); ?>" target="_blank"><img src="<?php echo get_template_directory_uri();?>/assets/images/facebook.svg" alt="icon"></a>
            </li>
             <li>
              <a href="<?php echo esc_url($youtube_link); ?>" target="_blank"><img src="<?php echo get_template_directory_uri();?>/assets/images/youtube.svg" alt="icon"></a>
            </li>
             <li>
              <a href="<?php echo esc_url($linkedin_link); ?>" target="_blank"><img src="<?php echo get_template_directory_uri();?>/assets/images/linkedin.svg" alt="icon"></a>
            </li>
             <li>
              <a href="<?php echo esc_url($instagram_link); ?>" target="_blank"><img src="<?php echo get_template_directory_uri();?>/assets/images/instagram.svg" alt="icon"></a>
            </li>
             <li>
              <a href="<?php echo esc_url($twitter_link); ?>" target="_blank"><img src="<?php echo get_template_directory_uri();?>/assets/images/twitter.svg" alt="icon"></a>
            </li>
             <li>
              <a href="<?php echo esc_url($printrest_link); ?>" target="_blank"><img src="<?php echo get_template_directory_uri();?>/assets/images/pintrest.svg" alt="icon"></a>
            </li>
             <li>
              <a href="<?php echo esc_url($tiktok_link); ?>" target="_blank"><img src="<?php echo get_template_directory_uri();?>/assets/images/tiktok.svg" alt="icon"></a>
            </li>
          </ul>
          <ul class="privacy">
            <li>
              <a href="<?php echo esc_url($privacy_policy_link); ?>">Privacy Policy</a>
            </li>
            <li>
              <a href="<?php echo esc_url($terms_of_use_link); ?>">Terms of Use</a>
            </li>
          </ul>
          <p><?php echo esc_html($copy_right_text); ?></p>
      </div>
     </div>
    </div>
    
    </div>
  </div>
</footer>

<?php wp_footer(); ?>