{strip} {$html_class_array = []} {$_color_scheme_class = 'color_scheme_'|cat:str_replace('img/themesettings/','',str_replace('.png','',$theme_settings.color_scheme))} {if $theme_settings.color_scheme}{$html_class_array[] = $_color_scheme_class}{/if} {if $theme_settings.font_size}{$html_class_array[] = $theme_settings.font_size}{/if} {if $theme_settings.font_family}{$html_class_array[] = $theme_settings.font_family}{/if} {if $wa->globals('isMyAccount')}{$html_class_array[] = 'my'}{/if} {if $wa->shop} {if method_exists($wa->shop, 'checkout')} {$_cart_url = $wa->shop->checkout()->cartUrl()} {else} {$_cart_url = $wa->getUrl('shop/frontend/cart')} {/if} {/if} {$_is_order_page = $wa->globals("isOrderPage")} {if !empty($_is_order_page)} {$html_class_array[] = "is-order-page"} {/if} {/strip} {$_head_prefix = $wa->globals("headPrefix")} {$wa->title()|escape} {if !empty($canonical)}{/if} {if $wa->blog} {$rss=$wa->blog->rssUrl()} {if $rss}{/if} {/if} {$wa->css()} {* links active plugins CSS *} {if $theme_settings.font_family|strstr:'_google_'} {if $theme_settings.font_family|strstr:'fira'}{$_real_font_name = 'Fira+Sans:400,500,700,400italic,500italic,700italic'}{/if} {if $theme_settings.font_family|strstr:'opensans'}{$_real_font_name = 'Open+Sans:400,700,700italic,400italic'}{/if} {if $theme_settings.font_family|strstr:'ptsans'}{$_real_font_name = 'PT+Sans:400,700,700italic,400italic'}{/if} {if $theme_settings.font_family|strstr:'ptserif'}{$_real_font_name = 'PT+Serif:400,700,700italic,400italic'}{/if} {if $theme_settings.font_family|strstr:'ptsansandserif'}{$_real_font_name = 'PT+Sans+Caption:400,700|PT+Serif:400,700,700italic,400italic'}{/if} {if $theme_settings.font_family|strstr:'roboto'}{$_real_font_name = 'Roboto:400,700,700italic,400italic'}{/if} {if $theme_settings.font_family|strstr:'lora'}{$_real_font_name = 'Lora:400,700,700italic,400italic'}{/if} {if $theme_settings.font_family|strstr:'ubuntu'}{$_real_font_name = 'Ubuntu:400,700,700italic,400italic'}{/if} {/if} {$wa->js()} {* links active plugins JS *} {include file="`$wa_active_theme_path`/head.html" inline} {$wa->head()} {* links Google Analytics tracking code, site's custom JS (defined in Site app settings), and meta data such as Open Graph data *}
{include file="`$wa_active_theme_path`/main.html" inline}
{* admin-only slideout sidebar for nice and smooth real time theme customizations *} {if $theme_settings.admin_sidebar} {if $wa->user()->isAdmin()}{include file="admin-sidebar.html" inline}{/if} {/if}