<div class="header header-compact header-sm <?php echo $journal3->classes($journal3->get('headerClasses')); ?> <?php if ($journal3->get('slimLogoPosition') == 'outside'): ?>header-slim-new<?php endif; ?>">
  <div class="header-slim-wrapper">
    <?php if ($journal3->get('slimLogoPosition') == 'outside'): ?>
      <div class="desktop-logo-wrapper <?php echo $journal3->get('header_logo_color_scheme'); ?>">
        <div id="logo">
          <?php if ($journal3->get('desktop_logo_src') || $journal3->get('desktop_logo_alternate_src')): ?>
            <a href="<?php echo $home; ?>">
              <img class="header-logo" src="<?php echo $journal3->get('desktop_logo_src'); ?>" <?php if ($journal3->get('desktop_logo_src2x')): ?>srcset="<?php echo $journal3->get('desktop_logo_src'); ?> 1x, <?php echo $journal3->get('desktop_logo_src2x'); ?> 2x"<?php endif; ?> width="<?php echo $journal3->get('desktop_logo_width'); ?>" height="<?php echo $journal3->get('desktop_logo_height'); ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>"/>
              <img class="header-logo-alternate" src="<?php echo $journal3->get('desktop_logo_alternate_src'); ?>" <?php if ($journal3->get('desktop_logo_alternate_src2x')): ?>srcset="<?php echo $journal3->get('desktop_logo_alternate_src'); ?> 1x, <?php echo $journal3->get('desktop_logo_alternate_src2x'); ?> 2x"<?php endif; ?> width="<?php echo $journal3->get('desktop_logo_alternate_width'); ?>" height="<?php echo $journal3->get('desktop_logo_alternate_height'); ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>"/>
            </a>
          <?php else: ?>
            <h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
          <?php endif; ?>
        </div>
      </div>
    <?php endif; ?>
    <div class="top-bar navbar-nav <?php echo $journal3->get('header_top_color_scheme'); ?>">
      <?php echo $journal3->get('desktop_top_menu'); ?>
      <?php if ($journal3->get('langPosition') == 'top'): ?>
        <div class="language-currency top-menu">
          <div class="desktop-language-wrapper">
            <?php echo $language; ?>
          </div>
          <div class="desktop-currency-wrapper">
            <?php echo $currency; ?>
          </div>
        </div>
      <?php endif; ?>
      <div class="top-menu third-menu"><?php echo $journal3->get('desktop_top_menu_3'); ?></div>
      <?php if ($journal3->get('secondaryMenuPosition') == 'top'): ?>
        <div class="top-menu secondary-menu"><?php echo $journal3->get('desktop_top_menu_2'); ?></div>
      <?php endif; ?>
    </div>
    <div class="mid-bar navbar-nav">
      <div class="desktop-main-menu-wrapper menu-top has-menu-1">
        <?php if (!$journal3->get('mobile_header_active')): ?>
          <div class="menu-trigger menu-item main-menu-item menu-trigger-1">
            <ul class="j-menu">
              <li class="menu-item"><a href="javascript:;" data-off-canvas="desktop-mobile-main-menu-container"><span class="links-text"><?php echo $journal3->get('menuTriggerText'); ?></span></a></li>
            </ul>
          </div>
          <?php if (!$journal3->get('mobileMenu1')): ?>
            <?php echo $journal3->get('desktop_main_menu'); ?>
          <?php endif; ?>
        <?php endif; ?>
      </div>
      <?php if ($journal3->get('slimLogoPosition') == 'inside'): ?>
        <div class="desktop-logo-wrapper <?php echo $journal3->get('header_logo_color_scheme'); ?>">
          <div id="logo">
            <?php if ($journal3->get('desktop_logo_src') || $journal3->get('desktop_logo_alternate_src')): ?>
              <a href="<?php echo $home; ?>">
                <img class="header-logo" src="<?php echo $journal3->get('desktop_logo_src'); ?>" <?php if ($journal3->get('desktop_logo_src2x')): ?>srcset="<?php echo $journal3->get('desktop_logo_src'); ?> 1x, <?php echo $journal3->get('desktop_logo_src2x'); ?> 2x"<?php endif; ?> width="<?php echo $journal3->get('desktop_logo_width'); ?>" height="<?php echo $journal3->get('desktop_logo_height'); ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>"/>
                <img class="header-logo-alternate" src="<?php echo $journal3->get('desktop_logo_alternate_src'); ?>" <?php if ($journal3->get('desktop_logo_alternate_src2x')): ?>srcset="<?php echo $journal3->get('desktop_logo_alternate_src'); ?> 1x, <?php echo $journal3->get('desktop_logo_alternate_src2x'); ?> 2x"<?php endif; ?> width="<?php echo $journal3->get('desktop_logo_alternate_width'); ?>" height="<?php echo $journal3->get('desktop_logo_alternate_height'); ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>"/>
              </a>
            <?php else: ?>
              <h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
            <?php endif; ?>
          </div>
        </div>
      <?php endif; ?>
      <div class="desktop-search-wrapper full-search">
        <?php echo str_replace([
          'color-scheme-__SEARCH_COLOR_SCHEME__',
          'color-scheme-__SEARCH_CATEGORIES_COLOR_SCHEME__',
        ], [
          $journal3->get('header_search_color_scheme') ?: 'color-scheme-',
          $journal3->get('header_search_categories_color_scheme') ?: '',
        ], $search); ?>
      </div>
      <div class="header-cart-group">
        <?php if ($journal3->get('langPosition') == 'search'): ?>
          <div class="language-currency top-menu">
            <div class="desktop-language-wrapper">
              <?php echo $language; ?>
            </div>
            <div class="desktop-currency-wrapper">
              <?php echo $currency; ?>
            </div>
          </div>
        <?php endif; ?>
        <?php if ($journal3->get('secondaryMenuPosition') == 'cart'): ?>
          <div class="top-menu secondary-menu <?php echo $journal3->get('secondary_color_scheme'); ?>"><?php echo $journal3->get('desktop_top_menu_2'); ?></div>
        <?php endif; ?>
        <div class="desktop-cart-wrapper">
          <?php echo $cart; ?>
        </div>
      </div>
    </div>
  </div>
  <?php if ($journal3->get('headerMainMenu2')): ?>
    <div class="desktop-main-menu-wrapper menu-bar menu-<?php echo $journal3->get('headerMenuLayout'); ?> <?php if ($journal3->get('desktop_main_menu_2')): ?>has-menu-2<?php endif; ?> navbar-nav <?php echo $journal3->get('header_menu_color_scheme'); ?>">
      <?php if (!$journal3->get('mobile_header_active')): ?>
        <div class="main-menu-1">
          <div class="menu-trigger menu-item main-menu-item menu-trigger-2">
            <ul class="j-menu">
              <li class="menu-item"><a href="javascript:;" data-off-canvas="desktop-mobile-main-menu-container"><span class="links-text"><?php echo $journal3->get('menuTriggerText'); ?></span></a></li>
            </ul>
          </div>
          <?php if (!$journal3->get('mobileMenu2')): ?>
            <?php echo $journal3->get('desktop_main_menu_2'); ?>
          <?php endif; ?>
        </div>
      <?php endif; ?>
    </div>
  <?php endif; ?>
</div>
