{% sw_extends '@Storefront/storefront/base.html.twig' %} {# ---------------- START: SET TEMPLATE VARS ---------------- #} {# ThemeWare: Set theme variables #} {% set twtContainerLayout = theme_config('twt-container-layout') %} {% set twtAdditionalJsFile = theme_config('twt-additional-js-file') %} {% set twtAdditionalJsFileAsync = theme_config('twt-additional-js-file-async') %} {% set twtAnnoncementBannerShow = theme_config('twt-annoncement-banner-show') %} {% set twtBodyClass = theme_config('twt-body-class') %} {% set twtBodyClassCmsPageId = theme_config('twt-body-class-cms-page-id') %} {% set twtContainerLayout = theme_config('twt-container-layout') %} {% set twtContainerMaxWidth = theme_config('twt-container-max-width') %} {% set twtFloatingWidgetAnimation = theme_config('twt-floating-widget-animation') %} {% set twtFloatingWidgetBackdrop = theme_config('twt-floating-widget-backdrop') %} {% set twtFloatingWidgetShow = theme_config('twt-floating-widget-show') %} {% set twtFloatingWidgetShowOpened = theme_config('twt-floating-widget-show-opened') %} {% set twtHeaderLogoType = theme_config('twt-header-logo-type') %} {% set twtHeaderSearchType = theme_config('twt-header-search-type') %} {% set twtHeaderType = theme_config('twt-header-type') %} {% set twtLicensekey = theme_config('twt-footer-lizenzkey') %} {% set twtShoppingExperiencesHeaderPosition = theme_config('twt-shopping-experiences-header-position') %} {% set twtStickyNavMainBreakpoint = theme_config('twt-sticky-nav-main-breakpoint') %} {% set twtStickyNavMainCartShow = theme_config('twt-sticky-nav-main-cart-show') %} {% set twtStickyNavMainLogoImage = theme_config('twt-sticky-nav-main-logo-image') %} {% set twtStickyNavMainLogoShow = theme_config('twt-sticky-nav-main-logo-show') %} {% set twtStickyNavMainScrollTop = theme_config('twt-sticky-nav-main-scroll-top') %} {% set twtStickyNavMainSearchShow = theme_config('twt-sticky-nav-main-search-show') %} {% set twtStickyNavMainShow = theme_config('twt-sticky-nav-main-show') %} {% set twtStickyNavMainToggle = theme_config('twt-sticky-nav-main-toggle') %} {% set twtStickyNavMainType = theme_config('twt-sticky-nav-main-type') %} {% set twtUspBarFooter = theme_config('twt-usp-bar-footer') %} {% set twtUspBarFooterPosition = theme_config('twt-usp-bar-footer-position') %} {% set twtUspBarHeader = theme_config('twt-usp-bar-header') %} {% set twtUspBarHeaderPosition = theme_config('twt-usp-bar-header-position') %} {# ---------------- END: SET TEMPLATE VARS ---------------- #} {# ThemeWare: Set custom fields #} {% set twtCustomFields = { category: page.header.navigation.active.translated.customFields, product: page.product.translated.customFields } %} {# TODO: prüfen... #} {# TODO: Kommentare formatieren, Blöcke mit TW #} {# ThemeWare: add/change body inner #} {% block base_body_inner %} {% set tcinn = true %} {% if twtLicensekey %} {% set twtLicensekeyValues = {} %} {% for letter in 0..9 %} {% set twtLicensekeyValues = twtLicensekeyValues|merge({ (letter): (loop.index + 47) }) %} {% endfor %} {% for letter in 'A'..'Z' %} {% set twtLicensekeyValues = twtLicensekeyValues|merge({ (letter): (loop.index + 64) }) %} {% endfor %} {% for letter in 'a'..'z' %} {% set twtLicensekeyValues = twtLicensekeyValues|merge({ (letter): (loop.index + 96) }) %} {% endfor %} {% set twtLicensekeySum = 0 %} {% for char in twtLicensekey|replace({'-': ''})|split('') %} {% set twtLicensekeySum = (twtLicensekeySum + (twtLicensekeyValues[char] * (loop.index-1))) %} {% endfor %} {% if twtLicensekeySum == 11000 or (twtLicensekey starts with 'TL' and twtLicensekey|length == 16) %} {% set tcinn = false %} {% endif %} {% endif %} {# ThemeWare: Add additional wrapper in the body for boxed layout #} {% if twtContainerLayout == 3 %}