{strip} {* UTILS *} {include "{$wa->site->themePath(waRequest::getTheme())}utils.html"} {$_max_post_size = waRequest::getPostMaxSize()} {$_max_file_size = waRequest::getUploadMaxFilesize()} {$_max_post_size_mb = floor($_max_post_size * 10/(1024))/10} {$_max_file_size_mb = floor($_max_file_size * 10/(1024))/10} {$_is_auth_page = $wa->globals("isAuthPage")} {$_is_compare_page = $wa->globals("isComparePage")} {$_is_error_page = $wa->globals("isErrorPage")} {$_is_home_page = $wa->globals("isHomePage")} {$_is_blog_post = $wa->globals("isPost")} {$_is_self_content = $wa->globals("isSelfContent")} {$_is_self_html = $wa->globals("isSelfHTML")} {$_is_header_absolute = $wa->globals("isHeaderAbsolute")} {$_is_header_bottom_full = $wa->globals("headerBottomFullColored")} {$_is_header_light = $wa->globals("isHeaderLight")} {$_is_header_banner = $wa->globals("headerBanner")} {$_is_bg_light = $wa->globals("isBgLight")} {$_hide_header = $wa->globals("hideHeader")} {$_hide_sidebar = $wa->globals("hideSidebar")} {$_hide_subcategories = $wa->globals("hideSubcategories")} {$_hide_demo = $wa->globals("hideDemo")} {if !empty($theme_settings.shop_plugins_search_pro) && $wa->param('plugin') === 'searchpro'} {$_hide_sidebar = true} {/if} {* BRANDS ALPHACAT *} {if !empty($action) && $action == 'brands_list'} {$_hide_sidebar = false} {$wa->globals("sidebarWidgets", $theme_settings.catalog__sidebar_widgets_sortable)} {/if} {$_sidebar_widgets = []} {if $wa->blog && $wa->app() == "blog"} {$_sidebar_widgets = $theme_settings.blog_app_sidebar_widgets_sortable} {/if} {if $wa->photos && $wa->app() == "photos"} {$_sidebar_widgets = $theme_settings.photos_app_sidebar_widgets_sortable} {/if} {if $wa->hub && $wa->app() == "hub"} {$_sidebar_widgets = $theme_settings.hub_app_sidebar_widgets_sortable} {/if} {if $wa->helpdesk && $wa->app() == "helpdesk"} {$_sidebar_widgets = $theme_settings.helpdesk_app_sidebar_widgets_sortable} {/if} {$_sidebar_widgets = $wa->globals("sidebarWidgets")|default:$_sidebar_widgets} {if !empty($_sidebar_widgets)} {$_is_empty_sidebar = true} {foreach from=$_sidebar_widgets|json_decode:true item=_widget key=key} {if !empty($_widget) && $_widget["enable"] == "true"} {$_is_empty_sidebar = false} {/if} {/foreach} {if $_is_empty_sidebar}{$_hide_sidebar = true}{/if} {/if} {* GET CART INFO *} {if $wa->shop} {if method_exists($wa->shop, 'checkout')} {$_cart_url = $wa->shop->checkout()->cartUrl()} {else} {$_cart_url = $wa->getUrl('shop/frontend/cart')} {/if} {call get_cart} {$cart = $wa->globals('ahead.return')} {$_cart_total = $wa->shop->cart->total()} {$_cart_count = $wa->shop->cart->count()} {* {$_cart_discount = $wa->shop->cart->discount()} *} {$_cart_discount = $wa->shop->cart->total(false) - $_cart_total} {$_price_text = "0"} {if !empty($_cart_total)} {$_price_text = wa_currency_html($_cart_total, $wa->shop->currency())} {/if} {$_discount_text = ""} {if !empty($_cart_discount)} {$_discount_text = wa_currency_html($_cart_discount, $wa->shop->currency())} {/if} {$compare = $wa->shop->compare()|default:[]} {$count_compare = count($compare)} {$count_favorite = intval("{call favorite_count}")} {/if} {* GET AUTH LINK *} {if $wa->isAuthEnabled()} {if $wa->user()->isAuth()} {if $wa->myUrl()} {$_user_url = $wa->myUrl()} {else} {$_user_url = $wa->getUrl('/frontend/myProfile')} {if $wa->shop} {$_user_url = $wa->getUrl('shop/frontend/myOrders')} {/if} {/if} {$_user_text = "[`Personal area`]"} {else} {$_user_url = $wa->loginUrl()} {$_user_text = '[`Log in`]'} {/if} {/if} {$_hide_breadcrumbs = $wa->globals("hideBreadcrumbs")} {$_hide_footer = $wa->globals("hideFooter")} {$_font_family = $wa->globals("fontFamily")} {if !empty($_font_family)} {$theme_settings.font_family = $_font_family} {/if} {$_html_classes = []} {$_sidebar_classes = []} {$_content_classes = []} {$_html_class = $wa->globals("htmlClass")} {if !empty($_html_class)} {$_html_classes[] = $_html_class} {/if} {if $theme_settings.font_family}{$_html_classes[] = $theme_settings.font_family}{/if} {if !empty($theme_settings.font_family_h1_h6)}{$_html_classes[] = "font_family_h1_h6"}{/if} {if $theme_settings.headins_style|strstr:'uppercase'}{$_html_classes[] = 'h1_h6_uppercase'}{/if} {if $theme_settings.buttons_design|strstr:'pill'}{$_html_classes[] = 'btn_pill'}{/if} {if $theme_settings.buttons_text|strstr:'uppercase'}{$_html_classes[] = 'btn_uppercase'}{/if} {if !empty($theme_settings.buttons_ripple)}{$_html_classes[] = 'btn_ripple'}{/if} {$_html_classes[] = "easyweb-ahead-theme"} {$_html_classes[] = $theme_settings.font_size} {$_html_classes[] = 'headings_weight_'|cat:str_replace('assets/img/themesettings/headings/','',str_replace('.jpg','',$theme_settings.headings_weight))} {if $_is_auth_page} {$_html_classes[] = "is-auth-page"} {$_hide_sidebar = true} {/if} {if $_is_self_content} {$_html_classes[] = "is-self-page"} {$_hide_sidebar = true} {/if} {if $_is_self_html} {$_html_classes[] = "is-self-html"} {$_hide_sidebar = true} {/if} {if empty($_hide_sidebar)} {$_sidebar_classes[] = "c-sidebar-wrapper"} {$_content_classes[] = "c-content-wrapper"} {if !empty($theme_settings.sidebar_full_width)} {$_sidebar_classes[] = "c-sidebar-wrapper--wide"} {$_content_classes[] = "c-content-wrapper--wide"} {/if} {/if} {if $_is_bg_light} {$_bg_light = true} {/if} {if !empty($theme_settings.color_scheme_custom)} {$_theme_color = $theme_settings.color_scheme_custom} {else} {$_theme_color = '#'|cat:str_replace('assets/img/themesettings/colors/','',str_replace('.png','',$theme_settings.color_scheme))} {/if} {if !empty($theme_settings.font_ruble)} {$_html_classes[] = "ruble-font"} {/if} {$_locale_string = substr($wa->locale()|default:"en", 0, 2)} shop}{if method_exists('shopOpengraphHeaderHelper', 'getPrefixHeader')}{shopOpengraphHeaderHelper::getPrefixHeader()}{/if}{/if}> {$wa->title()|escape} {call include_block block="head-meta"} {* Google fonts *} {$_real_font_name = "undefined"} {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:'fira_condensed'}{$_real_font_name = 'Fira+Sans+Condensed:300,300i,400,400i,500,500i,700,700i'}{/if} {if $theme_settings.font_family|strstr:'merriweather'}{$_real_font_name = 'Merriweather:300,300i,400,400i,700,700i'}{/if} {if $theme_settings.font_family|strstr:'montserrat'}{$_real_font_name = 'Montserrat:300,300i,400,400i,500,500i,700,700i'}{/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:300,300i,400,400i,500,500i,700,700i'}{/if} {if $theme_settings.font_family|strstr:'roboto_condensed'}{$_real_font_name = 'Roboto+Condensed:300,300i,400,400i,700,700i'}{/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 $theme_settings.font_family|strstr:'playfairdisplay'}{$_real_font_name = 'Playfair+Display:400,400i,500,500i,700,700i'}{/if} {if $theme_settings.font_family|strstr:'rubik'}{$_real_font_name = 'Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900'}{/if} {$_real_font_name = $_real_font_name|cat:"&subset=latin,cyrillic&display=swap"} {/if} {if !empty($_theme_color)} {call color_scheme _color=$_theme_color} {/if} {* INLINE JQUERY ewtodo *} {call include_block block="jquery"} {* *} {* PAGE PRELOADER *} {$wa->css()} {$wa->js()} {include file="`$wa_active_theme_path`/head.html" inline} {$wa->head()} {* USER HEAD HTML *} {$wa->block("site.{waRequest::getTheme()}_head_html")} {* PAGE PRELOADER *} {if $theme_settings.page_preload != "disabled"} {if !$wa->isMobile()}
{if $theme_settings.page_preload == "spinner"}
[`Loading`]
{elseif $theme_settings.page_preload == "spinner-grow"}
[`Loading`]
[`Loading`]
[`Loading`]
{else} [`Loading`] {/if}
{/if} {/if} {if !empty($theme_settings.top_bar__enabled)} {call include_block block="topbar"} {/if} {* HEADER *} {call include_template template="partials/header/header.layout"} {* BANNER *} {if !empty($category)} {if class_exists('shopSkcatimagePlugin')} {$_is_header_banner = shopSkcatimageHelper::getImages($category.id, 'banner')} {if empty($_is_header_banner)}{$_is_header_banner = false}{/if} {/if} {if !empty($category.params.banner)} {$_is_header_banner = $category.params.banner} {/if} {/if} {if !empty($_is_header_banner)}
{/if} {* MAIN *}
{if !empty($_is_home_page)} {call include_template template="home"} {elseif !empty($_is_self_html)} {* HEADER GLOBAL *} {if empty($_hide_header)} {call include_template template="partials/header/header.global"} {/if} {if !empty($_is_self_html)} {$_is_self_html = explode(',', $_is_self_html)} {call include_template template="{$_is_self_html[0]}" app="{$_is_self_html[1]}"} {/if} {elseif !empty($_is_self_content)} {* HEADER GLOBAL *} {if empty($_hide_header)} {call include_template template="partials/header/header.global"} {/if} {include file="`$wa_active_theme_path`/main.html" inline} {else} {* HEADER GLOBAL *} {if empty($_hide_header)} {call include_template template="partials/header/header.global"} {/if} {* CATEGORY SUBCATEGORIES *} {if empty($_hide_subcategories)} {$_subcategories_type = str_replace('assets/img/themesettings/shop/catalog/categories/','',str_replace('.jpg','',$theme_settings.catalog__subcategories_type))} {if !empty($category.subcategories) && !empty($theme_settings.catalog__subcategories)} {$_subcategories_params = [ 'classes' => 'mb-8', 'container' => true, 'subcategories' => $theme_settings.catalog__subcategories_subcategories_count, 'slider' => $theme_settings.catalog__subcategories_subcategories_slider ]} {call include_block block="categories/categories_{$_subcategories_type}" categories=$category.subcategories params=$_subcategories_params app="shop"} {/if} {/if}
{* SIDEBAR *} {if empty($_hide_sidebar)}
{call include_template template="sidebar.layout"}
{/if} {* CONTENT *}
{if empty($_is_blog_post) && empty($_is_error_page)} {if $wa->blog && $wa_app == 'blog'}
{call include_icon icon="feather/search"}
{/if} {/if} {include file="`$wa_active_theme_path`/main.html" inline}
{/if}
{* Footer *} {if empty($_hide_footer)} {call include_template template="partials/footer/footer"} {/if} {* ACCEPT COOKIES *} {call include_block block="cookies"} {* SUBSCRIBE MODAL *} {call include_block block="modals/subscribe"} {* TOAST *}
{* PROMO MODALS *} {call include_block block="modals/promo"} {call include_block block="modals/promo-leave"} {* SIDE ACTION WIDGETS *} {call include_block block="side-widgets"} {* Backtotop *} {call include_block block="backtotop"} {* Demo panel *} {if $wa->currentUrl()|strpos:"?hidedemo=1"} {$_hide_demo = true} {/if} {if !$wa->isMobile() && empty($_hide_demo)} {call include_template template="partials/demo/demo"} {/if} {* Organization meta *} {if $wa->shop} {call include_block block="microdata" app="shop"} {/if} {* Organization meta *} {call include_block block="organization"} {* THEME VENDORS JS *} {* THEME JS *} {if !empty($theme_settings.fontawesome)} {/if} {* EASYFEEDBACK APP *} {if $wa->easyfeedback && $theme_settings.easyfeedback_app} {$wa->easyfeedback->dialog()} {/if} {* USER CSS *} {$wa->block("site.{waRequest::getTheme()}_css")} {* USER JS *} {$wa->block("site.{waRequest::getTheme()}_js")} {* CUSTOMIZER APP *} {if $wa->customizer}{$wa->customizer->customizer()}{/if} {/strip}