{if empty($_cart_url) && $wa->shop} {$_cart_url = $wa->getUrl('shop/frontend/order')} {/if} {if !empty($is_bp_header)} {/if} {if count($wa->apps())>0 || $wa->isAuthEnabled()} {if $theme_settings.header_sitename || $theme_settings.logo} {if $theme_settings.logo} {$wa->accountName()} {else} {$wa->accountName()} {/if} {/if} {$_hide_cart = $wa->globals("hideCart")} {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())} globals('isMyAccount') || strlen($a.url)>1 && $wa->currentUrl()|strstr:$a.url} class="selected"{/if}>{$a.name} {/if} {/foreach} {/strip} {if $wa->shop} {$_phone = $wa->shop->settings('phone')|default:''} {if !empty($_phone)} {$_phone|escape} {/if} {/if} {if $wa->shop && !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 $wa->shop && (!method_exists($wa->shop, 'hasRoutes') || $wa->shop->hasRoutes()) && !empty($theme_settings.show_cart) && empty($_hide_cart)} {$cart_count = $wa->shop->cart->count()} {* %s is now in your shopping cart *} [s`Cart`] {if $cart_count > 0}{$cart_count}{/if} {/if} {if $wa->isAuthEnabled()} {strip} {if $wa->user()->isAuth()} {if $wa->myUrl()} {$wa->user('firstname')|default:'[`My account`]'} {else} {$wa->user('firstname')|default:'[`My account`]'} {/if} {else} [s`Log in`] {*[s`Sign up`]*} {/if} {/strip} {/if} {/if} {if empty ($_is_order_page)} {if $wa->globals('isMyAccount')} {* focused personal accounts navigation *} {$wa->myNav('pages')} {else} {include file="`$wa_active_theme_path`/header.html" inline} {/if} {/if}