{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}>