<?php
/**
 * The template part for Top Header
 *
 * @package Forest Jungle Safari 
 * @subpackage forest-jungle-safari
 * @since forest-jungle-safari 1.0
 */
?>

<div class="main-header">
  <div class="container">
    <div class="row">
      <div class="col-xl-9 col-lg-6 col-md-7 align-self-center">
        <?php if(get_theme_mod('forest_jungle_safari_topbar_add_text_advertising') != '' || get_theme_mod('forest_jungle_safari_topbar_location_text_icon') != ''){ ?>
           <p class="topbar-text mb-0"> <i class="<?php echo esc_attr(get_theme_mod('forest_jungle_safari_topbar_location_text_icon','me-2 fa-solid fa-bullhorn')); ?>"></i><?php echo esc_html(get_theme_mod('forest_jungle_safari_topbar_add_text_advertising')) ?></p>
        <?php }?>
      </div>
      <div class="col-xl-3 col-lg-6 col-md-5 d-flex gap-4 justify-content-xl-end justify-content-lg-end align-self-center top-bar-col2">
        <?php if(get_theme_mod('forest_jungle_safari_topbar_about_us') != ''){ ?>
         <p class="topbar-text1 mb-0">
         <a href="<?php echo esc_url(get_theme_mod('forest_jungle_safari_about_us_link',false));?>"><?php echo esc_html(get_theme_mod('forest_jungle_safari_topbar_about_us'));?><span class="screen-reader-text"><?php esc_html_e( 'About Us','forest-jungle-safari');?></span>
            </a></p>
        <?php }?>

        <?php if(get_theme_mod('forest_jungle_safari_topbar_contact_us') != ''){ ?>
         <p class="topbar-text2 mb-0">
         <a href="<?php echo esc_url(get_theme_mod('forest_jungle_safari_contact_us_link',false));?>"><?php echo esc_html(get_theme_mod('forest_jungle_safari_topbar_contact_us'));?><span class="screen-reader-text"><?php esc_html_e( 'Contact Us','forest-jungle-safari');?></span>
            </a></p>
        <?php }?>

        <?php if(get_theme_mod('forest_jungle_safari_topbar_privacy_policy') != '' || get_theme_mod('forest_jungle_safari_topbar_location_text_icon') != ''){ ?>
         <p class="topbar-text3 mb-0">
         <a href="<?php echo esc_url(get_theme_mod('forest_jungle_safari_privacy_policy_link',false));?>"><?php echo esc_html(get_theme_mod('forest_jungle_safari_topbar_privacy_policy'));?><span class="screen-reader-text"><?php esc_html_e( 'Privacy Policy','forest-jungle-safari');?></span>
          </a></p>
        <?php }?>
      </div>
    </div>
  </div>
</div>