<?php
/**
 * The template part for Middle Header
 *
 * @package Keto Organic Diet
 * @subpackage keto-organic-diet
 * @since keto-organic-diet 1.0
 */
?>

<?php if( get_theme_mod( 'keto_organic_diet_topbar_hide_show', true) != '' || get_theme_mod('keto_organic_diet_responsive_topbar_hide',true)) { ?>
  <div class="container">
    <div class="top-bar ">
        <div class="row">
          <div class="col-lg-3 col-md-3 col-12 text-lg-start text-md-start text-center">
            <div class="location py-2">
              <?php if( get_theme_mod( 'keto_organic_diet_header_address') != '') { ?>
                <span><i class="me-2 <?php echo esc_attr(get_theme_mod('keto_organic_diet_location_icon','fas fa-map-marker-alt')); ?>"></i><?php echo esc_html(get_theme_mod('keto_organic_diet_header_address',''));?></span>
              <?php }?>
            </div>
          </div>
          <div class="col-lg-3 col-md-4 col-12 text-lg-start text-md-start text-center">
            <div class="email py-2 ">
              <?php if( get_theme_mod('keto_organic_diet_email_address') != ''){ ?>
                <span class="mb-0"><i class="me-2 <?php echo esc_attr(get_theme_mod('keto_organic_diet_mail_icon','far fa-envelope')); ?>"></i><a href="mailto:<?php echo esc_attr(get_theme_mod('keto_organic_diet_email_address',''));?>"><?php echo esc_html(get_theme_mod('keto_organic_diet_email_address',''));?></a></span>
              <?php } ?>
            </div>
          </div>
          <div class="col-lg-6 col-md-5 col-12 text-lg-end text-md-end text-center">
            <div class="social-icon ">
              <?php if (is_active_sidebar('social-links')) : ?>
                <?php dynamic_sidebar('social-links'); ?>  
              <?php else : ?>
              <!-- Default Social Icons Widgets -->
                <div class="widget">
                    <ul class="custom-social-icons" >
                      <li><a href="https://facebook.com" target="_blank"><i class="fab fa-facebook"></i></a></li> 
                      <li><a href="https://twitter.com" target="_blank"><i class="fab fa-twitter"></i></a></li> 
                      <li><a href="https://instagram.com" target="_blank"><i class="fab fa-instagram"></i></a></li> 
                      <li><a href="https://youtube.com" target="_blank"><i class="fab fa-youtube"></i></a></li>
                    </ul>
                </div>
              <?php endif; ?>   
            </div>
          </div>
        </div>
    </div>
  </div>
<?php } ?>