{strip} {$_name = ""} {if $wa->shop} {$_name = $wa->shop->settings('name')} {$_phone = $wa->shop->settings('phone')} {/if} {$_is_personal_area = $wa->globals("isMyAccount")}
{$_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 !empty($theme_settings.store_address)}
{$theme_settings.store_address}
{/if} {strip} {if $wa->shop} {if !empty($theme_settings.use_shop_schedule) && method_exists($wa->shop, 'schedule')} {$_schedule = $wa->shop->schedule()}
{_wd("shop", "Business hours")}
{foreach $_schedule.current_week as $_day}
{$_day.name|escape}
{if !empty($_day.work)}
{$_day.start_work|escape} — {$_day.end_work|escape}
{else}
{_wd("shop", "day off")}
{/if}
{/foreach}
{elseif !empty($theme_settings.manual_schedule)}
{$theme_settings.manual_schedule|escape}
{/if} {/if} {/strip}
    {$_links = []} {if $theme_settings.header_links == 'site-pages'} {if $wa->site}{$_links = $wa->site->pages()}{/if} {elseif $theme_settings.header_links == 'shop-pages'} {if $wa->shop}{$_links = $wa->shop->pages()}{/if} {elseif $theme_settings.header_links == 'blog-pages'} {if $wa->blog}{$_links = $wa->blog->pages()}{/if} {elseif $theme_settings.header_links == 'photos-pages'} {if $wa->photos}{$_links = $wa->photos->pages()}{/if} {elseif $theme_settings.header_links == 'hub-pages'} {if $wa->hub}{$_links = $wa->hub->pages()}{/if} {elseif $theme_settings.header_links != 'none'} {$_links = $wa->apps()} {/if} {foreach $_links as $a} {if !($a.url == $wa_url && $a.name == $wa->accountName())} {$_is_selected = false} {if $a.url == $wa_app_url && !$wa->globals('isMyAccount') || strlen($a.url)>1 && $wa->currentUrl()|strstr:$a.url} {$_is_selected = true} {/if}
  • {$a.name}
  • {/if} {/foreach}
{if $wa->isAuthEnabled()}
{/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)} {$_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 !empty($theme_settings.promotion_uri) && !empty($theme_settings.promotion_name)}  {$theme_settings.promotion_name|escape} {/if}
{/if}
{/if} {include file="`$wa_active_theme_path`/header.html" inline}
{/strip}