{strip} {$_name = ""} {if $wa->shop} {$_name = $wa->shop->settings('name')} {$_phone = $wa->shop->settings('phone')} {/if} {$_is_personal_area = $wa->globals("isMyAccount")}
{if $theme_settings.heder_variant === "logo_left"}
{$_logo_url = $wa_app_url} {if $wa->shop} {$_logo_url = $wa->getUrl("shop/frontend")} {/if} {if !empty($theme_settings.logo)} {/if} {if !empty($theme_settings.logo_tip)} {$theme_settings.logo_tip} {/if}
{if !empty($_phone)}
{$_phone} {if !empty($theme_settings.tip_the_phone_1)} {$theme_settings.tip_the_phone_1} {/if}
{/if} {if !empty($theme_settings.additional_phone)}
{$theme_settings.additional_phone} {if !empty($theme_settings.tip_the_phone_2)} {$theme_settings.tip_the_phone_2} {/if}
{/if}
{if $wa->user()->isAuth()} Профиль / Заказы / Выйти {else} Вход / Регистрация {/if}
{/if} {if $theme_settings.heder_variant === "logo_center"}
{if !empty($_phone)}
{$_phone} {if !empty($theme_settings.tip_the_phone_1)} {$theme_settings.tip_the_phone_1} {/if}
{/if}
{$_logo_url = $wa_app_url} {if $wa->shop} {$_logo_url = $wa->getUrl("shop/frontend")} {/if} {if !empty($theme_settings.logo)} {/if} {if !empty($theme_settings.logo_tip)} {$theme_settings.logo_tip} {/if}
{if !empty($theme_settings.additional_phone)}
{$theme_settings.additional_phone} {if !empty($theme_settings.tip_the_phone_2)} {$theme_settings.tip_the_phone_2} {/if}
{/if}
{/if} {if empty($_is_personal_area)}
{if $wa->shop} {$_categories = $wa->shop->categories(0, null, true)} {if !empty($_categories)} {$_is_shop_home = $wa->globals("isShopHome")}
{$_catalog_classes = []} {if !empty($_is_shop_home) && $theme_settings.slider_wight === "slider_wight_75"} {$_catalog_classes[] = "is-locked"} {/if} {if $theme_settings.catalog_font_width === "big"} {$_catalog_classes[] = "is-big"} {/if}
    {foreach $_categories as $_category} {$_limit = 20} {if !empty($theme_settings.menu_limit) && $theme_settings.menu_limit > 0} {$_limit = $theme_settings.menu_limit} {/if} {if $_category@iteration > $_limit}{break}{/if}
  • {$_category.name} {* sublevel 1 *} {if !empty($_category.childs)}
      {foreach $_category.childs as $_sub1_category}
    • {$_sub1_category.name} {* sublevel 2 *} {if !empty($_sub1_category.childs)}
        {foreach $_sub1_category.childs as $_sub2_category} {$_limit = 5} {if !empty($theme_settings.sub_menu_limit) && $theme_settings.sub_menu_limit > 0} {$_limit = $theme_settings.sub_menu_limit} {/if} {if $_sub2_category@index >= $_limit}
      • ...
      • {break} {/if}
      • {$_sub2_category.name}
      • {/foreach}
      {/if}
    • {/foreach}
    {/if}
  • {/foreach}
{/if} {/if}
{$_search_action = false} {$_placeholder = ""} {if $wa_app === "hub"} {$_search_action = $wa->getUrl("hub/frontend/search")} {$_placeholder = "[`Search`]"} {elseif $wa_app === "helpdesk"} {$_search_action = $wa->getUrl("helpdesk/frontend/search")} {$_placeholder = "[`Search`]"} {elseif $wa_app === "blog"} {$_search_action = $wa->getUrl("blog/frontend/search")} {$_placeholder = "[`Search`]"} {elseif $wa_app === "shop"} {$_search_action = $wa->getUrl("shop/frontend/search")} {$_placeholder = "[s`Find products`]"} {/if} {if $wa->shop} {$_search_action = $wa->getUrl("shop/frontend/search")} {$_placeholder = "[s`Find products`]"} {/if} {if !empty($_search_action)} {$_query = ""} {if $wa_app === "shop"} {$_query = $smarty.get.query|default:''|escape} {/if}
{/if}
{$_is_active = $wa->globals("isComparePage")} {$_compare_item_classes = []} {if !empty($_is_active)} {$_compare_item_classes[] = "is-active"} {/if}
[`Compare`] 0
{/if} {include file="`$wa_active_theme_path`/header.html" inline}
{/strip}