<?php
/**
 * Template part for displaying Top Bar Content
 *
 * @package advance_education_pro
 */ 

$about_section = get_theme_mod( 'advance_education_pro_topbar_enable' );
if ( 'Disable' == $about_section ) {
  return;
}
/*About us*/
if( get_theme_mod('advance_education_pro_topbar_bgcolor','') ) {
  $background_setting = 'background-color:'.esc_attr(get_theme_mod('advance_education_pro_topbar_bgcolor','')).';';
}elseif( get_theme_mod('advance_education_pro_topbar_bgimage','') ){
  $background_setting = 'background-image:url(\''.esc_url(get_theme_mod('advance_education_pro_topbar_bgimage')).'\')';
}else{
  $background_setting = '';
}
?>
<section id="site_top" class="top_bar" style="<?php echo esc_attr($background_setting);  ?>">
  <div class="container-fluid contact_details">
    <div class="row m-0">
      <div class="opening_hours col-lg-3 col-md-3 col-sm-12 col-12 p-md-0">
        <?php if(get_theme_mod('advance_education_pro_top_bar_opening_time',true) != ''){ ?>
          <p class="opening_timing">
            <span class="hi_normal"><span class="open_hours_label"><?php echo esc_html(get_theme_mod('advance_education_pro_top_bar_opening_time_label')) ?></span><?php echo esc_html(get_theme_mod('advance_education_pro_top_bar_opening_time'));?></p>
          </li>
         <?php } ?>
      </div>
      <div class="col-lg-5 col-md-5 col-sm-7 col-12 p-md-0">
        <ul class="left-side-content pt-1">
          <?php if(get_theme_mod('advance_education_pro_top_bar_contact_number',true) != ''){ ?>
            <li class="contact_number">
              <span class="hi_normal"><i class="<?php echo esc_html(get_theme_mod('advance_education_pro_top_bar_contact_number_icon')); ?>"></i><?php echo esc_html(get_theme_mod('advance_education_pro_top_bar_contact_number'));?></span>
            </li>
          <?php } ?>
          <?php if(get_theme_mod('advance_education_pro_top_bar_email_address',true) != ''){ ?>
            <li class="email_wrap">
              <span class="hi_normal"><a href="mailto:<?php echo esc_html(get_theme_mod('advance_education_pro_top_bar_email_address',__("",'advance-education-pro'))); ?>"><i class="far fa-envelope"></i><?php echo esc_html(get_theme_mod('advance_education_pro_top_bar_email_address'));?></a></span>
            </li>
          <?php } ?>
        </ul>
      </div>
      <div class="col-lg-4 col-md-4 col-sm-5 col-12 p-0">
        <div class="register_login right-side-content pt-2">
          <?php if(get_theme_mod('advance_education_pro_top_bar_register_title',true)!= ""){?>
            <a href="<?php echo esc_url(get_theme_mod('advance_education_pro_top_bar_registration_link')) ?>" class="register-login">
              <?php echo esc_html(get_theme_mod('advance_education_pro_top_bar_register_title'))?>
            </a>
          <?php }?>
          <?php if(get_theme_mod('advance_education_pro_top_bar_login_title',true)!= ""){?>
            <a href="<?php echo esc_url(get_theme_mod('advance_education_pro_top_bar_login_link')) ?>" class="register-login">
              <?php echo esc_html(get_theme_mod('advance_education_pro_top_bar_login_title'))?>
            </a>
          <?php }?>
        </div>
      </div>
    <div class="clearfix"></div>
  </div>
</section>