<?php
/**
 * The template part for Top Header
 *
 * @package Commercial Automation Services 
 * @subpackage commercial-automation-services
 * @since commercial-automation-services 1.0
 */
?>

<div class="topbar">
  <div class="container p-md-0 p-0 top-bar-container">
    <div class="d-flex flex-wrap flex-md-nowrap justify-content-between align-items-center top-header">
      <?php if( get_theme_mod('commercial_automation_services_topbar_text') != ''){ ?>
          <span class="topbar-text"><?php echo esc_html(get_theme_mod('commercial_automation_services_topbar_text'));?></span>
        <?php }?>
      <div class="d-flex gap-2 align-items-center justify-content-md-start justify-content-center"> 
         <?php if( get_theme_mod( 'commercial_automation_services_show_hide_currency_settings', true) == 1) { ?>
          <?php if(class_exists('woocommerce')){ ?>
            <div class="currency-box d-md-inline-block">
              <?php echo do_shortcode( '[woocommerce_currency_switcher_drop_down_box]' );?>
            </div>
          <?php } }?>
          <?php if( class_exists( 'GTranslate' ) ) { ?>
            <div class="translate-lang position-relative d-md-inline-block">
              <?php echo do_shortcode( '[gtranslate]' );?>
            </div>
          <?php }?>
      </div>
    </div>
  </div>
</div>