{* UTILS *} {include "{$wa->site->themePath(waRequest::getTheme())}u-utils.html"} {* GLOBAL VARS *} {*{include "{$wa->site->themePath(waRequest::getTheme())}u-vars.html" scope="parent"}*} {* HTML CLASSES *} {$_html_classes = []} {*{$_html_classes[] = "overflow-x-hidden"}*} user()->isAdmin()} style="min-height: 100vh;"{/if}> {$wa->title()|escape} {* META *} {* ICO *} {if !empty($canonical) && !empty($theme_settings["common__common_canonical"])} {/if} {if !empty($theme_settings["common__common_favicon"])} {/if} {* PRELOAD *} {* CSS *} {if !empty($is_blockpage)} {/if} {* Auth styles moved to main bundle *} {*{if !empty($wa->globals("isOrderPage")) || !empty($wa->globals('isMyAccount')) || !empty($wa->globals('isAuthPage'))} {/if}*} {$wa->css()} {* JS *} {$wa->js()} {* HEAD *} {include file="`$wa_active_theme_path`/head.html" inline} {$wa->head()} {$wa->block("site.{waRequest::getTheme()}_head_html")} {* INDEX *} {include "{$wa->site->themePath(waRequest::getTheme())}u-scripts.html"} {call include_template template="html/index/index.fonts"} {call include_template template="html/index/index.styles"} {* IS MAIN PAGE *} {$_is_main_page = ( $wa->currentUrl() == $wa_app_url && ( empty($page.id) && empty($page.content) ) && $wa_app === "site" )} {if $_is_main_page} {$wa->globals("hideHeader", true)} {$wa->globals("hideFooter", true)} {$wa->globals("hideGlobalHeader", true)} {$hide_sidebar = true} {/if} {* BODY *} {$_body_classes = []} {$_body_classes[] = "flex flex-col bg-color-background dark:bg-color-background-dark"} {if (!empty($theme_settings["other__maintenance_active"]) && !$wa->user()->isAdmin())} {$_body_classes[] = "justify-center h-lvh"} {/if} {if $_is_main_page} {$_body_classes[] = "relative overflow-hidden before:absolute before:top-0 before:start-0 before:bg-[url('https://preline.co/assets/svg/examples/squared-bg-element.svg')] dark:before:bg-[url('https://preline.co/assets/svg/examples-dark/squared-bg-element.svg')] before:bg-no-repeat before:bg-center before:size-full before:-z-content-overlay before:transform before:-translate-x-1/20"} {/if} {if empty($theme_settings["other__maintenance_active"]) || $wa->user()->isAdmin()} {if empty($wa->globals("hideHeader"))} {call include_template template="html/media-banners/media.header-above"} {if empty($is_mobile)} {call include_template template="html/header/desktop/header.layout"} {else} {call include_template template="html/header/mobile/header.layout"} {/if} {/if} {* H1 && BREADCRUMBS *} {if empty($wa->globals("hideGlobalHeader"))} {call include_template template="html/header/global/header.layout"} {/if} {$sidebarBeforeContent = $wa->globals("sidebarBeforeContent")} {if !empty($sidebarBeforeContent)} {$grid_template_cols = "grid-cols-1"} {$hide_sidebar = false} {else} {$grid_template_cols = (!empty($wa->globals("sidebarEnd"))) ? "grid-cols-1 lg:grid-cols-[1fr_260px]" : "grid-cols-1 lg:grid-cols-[260px_1fr]"} {/if} {* SUBCATEGORIES *} {$show_subcategories = false} {if !empty($theme_settings["catalog__subcategories_display_show"]) && !empty($wa->globals("isCategory"))} {if empty($wa->globals("hideSubcategories")) && empty($category.params.hideSubcategories)} {$show_subcategories = true} {/if} {elseif empty($theme_settings["catalog__subcategories_display_show"]) && !empty($wa->globals("isCategory"))} {if !empty($wa->globals("showSubcategories")) || !empty($category.params.showSubcategories)} {$show_subcategories = true} {/if} {/if} {if $show_subcategories} {call include_template template="html/category/subcategories" app="shop"} {/if}
{if !empty($wa->globals("mainOnly"))} {call include_template template="main" app="$wa_app"} {else}
{if empty($hide_sidebar)} {/if}
{call include_template template="main" app="$wa_app"}
{/if}
{if empty($wa->globals("hideFooter"))} {call include_template template="html/footer/footer.layout"} {if !empty($is_mobile) && !empty($theme_settings["mobile__fixed_panel_enabled"])} {call include_template template="html/header/mobile/panel.layout"} {/if} {/if} {else} {call include_template template="html/main/main.maintenance"} {/if} {* EASYFEEDBACK APP *} {if $wa->easyfeedback && !empty($theme_settings["apps__easyfeedback_enabled"])} {$wa->easyfeedback->dialog()} {/if} {call include_template template="html/index/index.microdata"} {call include_template template="html/index/index.before_body"}