{*capture mini_html assign=mini_html*} {strip} {* UTILS *} {include "{$wa->site->themePath(waRequest::getTheme())}u-utils.html"} {* HTML CLASSES *} {$_html_classes = [] scope=global} {* FONT FAMILY *} {if !empty($theme_settings["common__design_font_family_custom_name"]) && waLicensing::check("site/themes/seller")->isPremium()} {$theme_font = ""} {$theme_font_name = $theme_settings["common__design_font_family_custom_name"] scope=global} {else} {$theme_font = $theme_settings["common__design_font_family"]|replace:"assets/img/themesettings/fonts/":""|replace:".jpg":"" scope=global} {/if} {$_html_classes[] = $theme_font scope=global} {* FONT FAMILY ONLY FOR HEADINGS *} {if !empty($theme_settings["common__design_font_family_headings"])}{$_html_classes[] = "common__design_font_family_headings"}{/if} {* LOCALE *} {$_locale_string = substr($wa->locale()|default:"en", 0, 2)} {$wa->title()|escape} {* THEME COLOR *} {if !empty($theme_settings["common__design_color_schema_custom"])} {$_theme_color = $theme_settings["common__design_color_schema_custom"]} {else} {$_theme_color = "#"|cat:str_replace("assets/img/themesettings/colors/","",str_replace(".png","",$theme_settings["common__design_color_schema"]))} {/if} {* META *} {if !empty($canonical) && !empty($theme_settings["common__common_canonical"])} {/if} {if !empty($theme_settings["common__common_favicon"])} {/if} {if $wa->blog && $wa_app == "blog"} {$rss = $wa->blog->rssUrl()} {if $rss} {/if} {/if} {* CSS *} {if empty($theme_settings["common__common_css_body"])} {/if} {* *} {* *} {$_tmp_css = $wa->css()|strip|replace:'">':'">,'} {$_tmp_css_2 = explode(',', $_tmp_css)} {$formated_css = []} {foreach $_tmp_css_2 as $css} {if $css@last}{continue}{/if} {$formated_css[$css@iteration] = $css} {/foreach} {foreach $formated_css as $css} {if $css|strstr:"brand" || $css|strstr:"buy1click"} {continue} {/if} {$css} {/foreach} {*$wa->css()*} {* JS *} {*call include_template template="html/index/index.jq"*} {$_tmp_js = $wa->js()|strip|replace:" ":","} {$_tmp_js_2 = explode(',', $_tmp_js)} {$formated_js = []} {foreach $_tmp_js_2 as $js} {if $js@last}{continue}{/if} {$formated_js[$js@iteration] = $js} {/foreach} {foreach $formated_js as $js} {if $js|strstr:"buy1click"} {continue} {/if} {$js} {/foreach} {*$wa->js()*} {call include_template template="head" app=$wa_app} {$wa->head()} {if empty($theme_settings["common__common_css_body"])}{call include_template template="html/index/index.styles"}{/if} {call include_template template="html/index/index.waTheme"} {call include_template template="html/index/index.color-mode"} {call include_template template="html/index/index.fonts"} {* USER HTML *} {$wa->block("site.{waRequest::getTheme()}_head_html")} {if !empty($theme_settings["common__common_preload"])}
{/if} {if empty($wa->globals("headerBannerBeforeHide"))} {call include_template template="html/header/desktop/banner" app="shop"} {/if} {$main_classes = []} {$main_classes[] = (!empty($is_mobile)) ? "l-main--mobile" : ""} {$main_classes[] = (!empty($wa->globals("isProductPage"))) ? "l-main--product" : ""}
{*
{call include_template template="html/header/mobile/layouts/header.layout"} {if !empty($theme_settings["mobile__fixed_panel_enable"])} {call include_template template="html/header/mobile/blocks/fixed_panel"} {/if}
{call include_template template="html/header/desktop/layouts/header.layout"}
*} {if empty($is_mobile)} {call include_template template="html/header/desktop/layouts/header.layout"} {/if} {if !empty($is_mobile)} {call include_template template="html/header/mobile/layouts/header.layout"} {if !empty($theme_settings["mobile__fixed_panel_enable"])} {call include_template template="html/header/mobile/blocks/fixed_panel"} {/if} {/if} {* BANNER BELOW HEADER *} {if empty($wa->globals("headerAbsolute"))} {$props_below_banner = [ "promos_array" => explode(",", $theme_settings["media__header_below_banner_type_promoslist_single"]) ]} {call include_template template="html/header/desktop/banner" app="shop" props=$props_below_banner} {/if} {* H1 && BREADCRUMBS *} {if empty($wa->globals("globalHeaderHidden"))} {call include_template template="html/header/common/header.global"} {/if} {* SUBCATEGORIES *} {if !empty($theme_settings["catalog__categories_common_show"]) && empty($wa->globals("hideSubcategories")) || !empty($wa->globals("showSubcategories"))} {call include_template template="html/category/subcategories" app="shop"} {/if} {if !empty($self_content)} {call include_template template="main" app="$wa_app"} {else}
{$main_row_classes = []} {$main_row_classes[] = (!empty($hide_sidebar)) ? "row-cols-1" : "row-cols-1 row-cols-lg-2 g-4 g-lg-7"} {$main_row_classes[] = (!empty($wa->globals("sidebarEnd"))) ? "flex-row-reverse" : ""}
{if empty($hide_sidebar)} {call include_template template="sidebar.layout"} {/if}
{call include_template template="main" app="$wa_app"}
{/if} {call include_template template="html/footer/banner" app="shop"} {call include_template template="html/modals/promo" app="shop"} {call include_template template="html/footer/footer.layout"} {call include_template template="html/admin-panel/panel"} {* EASYFEEDBACK APP *} {if $wa->easyfeedback && !empty($theme_settings["apps__easyfeedback_enabled"])} {$wa->easyfeedback->dialog()} {/if} {* FEEDBACK MODAL *} {if !$smarty.server.HTTP_USER_AGENT|strstr:"Chrome-Lighthouse"} {if $theme_settings["common__feedback_common_type_buttons"] === "modal"} {call include_template template="html/modals/feedback"} {if $theme_settings["common__feedback_modal_toggle_type_buttons"] === "always" || $theme_settings["common__feedback_modal_toggle_type_buttons"] === "desktop" && empty($is_mobile)}
{/if} {/if} {/if}
{call include_template template="html/index/index.schema_org"} {call include_template template="html/index/index.before_body"} {call include_template template="html/index/index.up-button"} {call include_template template="html/index/index.cookies"} {/strip} {*/capture} {shopCustom::mfMoveJs($mini_html, $action)*}