{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 && (!method_exists($wa->shop, 'hasRoutes') || $wa->shop->hasRoutes()) && !empty($theme_settings.show_cart) && empty($_hide_cart)} {$cart_total = $wa->shop->cart->total()} [s`Cart`] {wa_currency_html($cart_total, $wa->shop->currency())} {* %s is now in your shopping cart *} [s`View cart`] {strip} {capture assign="_loading_template"} {/capture} {/strip} {/if} {if $wa->isAuthEnabled()} {strip} {if $wa->user()->isAuth()} {if $wa->myUrl()} {else} {$wa->user('firstname')|default:'[`My account`]'} {/if} [s`Log out`] {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}