{*{extends_parent}*}

<div class="infopanel-wrapper-header">
    {include "components/infoPanel.tpl"}

   <header class="header {block "header-class"}{/block}">
       {block "header-top"}
          <div class="header-top">
             <div class="container-fluid display-flex">
                <p>{t}Máte nějaký dotaz?{/t} <a href="tel:{$dbcfg.shop_phone}">{$dbcfg.shop_phone}</a> <a
                      href="mailto:{$dbcfg.shop_email}">{$dbcfg.shop_email}</a></p>

                <div class="top-menu-wrapper">
                    {insert_menu label="menu_header" level_max=0}
                    {if $cfg.tpl.language_currency_switcher}
                        {include "components/block.switcher.tpl"}
                    {/if}
                </div>
             </div>
          </div>
       {/block}
      <div class="container-fluid display-flex">
         <div class="header-burger header-icon">
            <button type="button" data-toggle="burger">
               <span class="fc icons_burger"></span>
            </button>
         </div>

         <a href="{url s=index}" title="{$dbcfg.index_title}" class="logo">
            <img src="/templates/images/logo.svg" alt="{$dbcfg.index_title}" class="img-responsive">
         </a>

         <div class="header-sections">
             {block "tpl-vars"}
                 {$tpl_vars.submenu_v = $cfg.tpl.submenu.version}
             {/block}

             {if $tpl_vars.submenu_v == 2}
                 {$level_max = 2}
             {else}
                 {$level_max = 1}
             {/if}
             {insert_leafly_sections template="block.sections.header.tpl" level_max=$level_max}

         </div>

         <div class="header-icons">
            <div class="header-search header-icon">
               <a href="{url s=search}" data-toggle="search">
                  <span class="fc icons_search"></span>
               </a>
            </div>

            <div class="header-login header-icon" id="js-shop-user">
               <a href="{url s=login}" class="cart-signin">
                  <span class="fc icons_user"></span>
               </a>
            </div>
             {include "components/jsShop.cartInfo.tpl"}
         </div>
      </div>

       {if $cfg.tpl.header_search.version == 2}
           {include "components/block.search.v2.tpl"}
       {else}
           {include "components/block.search.tpl"}
       {/if}

   </header>
   <div class="header-sticky-helper"></div>
    {if $cfg.tpl.language_currency_switcher}
        {include "focus/focus.language-switcher.tpl" class="language-switcher"}
        {include "focus/focus.currency-switcher.tpl" class="currency-switcher"}
    {/if}
</div>



