custom/plugins/ChiliCustom/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {# Set variable to "true" to enable HMR (hot page reloading) mode #}
  3. {% set isHMRMode = app.request.headers.get('hot-reload-mode') and app.environment == 'dev' %}
  4. {% block base_doctype %}
  5. <!DOCTYPE html>
  6. {% endblock %}
  7. {% block base_html %}
  8. <html lang="{{ page.header.activeLanguage.translationCode.code }}"
  9.       itemscope="itemscope"
  10.       itemtype="https://schema.org/WebPage">
  11. {% endblock %}
  12. {% block base_head %}
  13.     {% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
  14. {% endblock %}
  15. {% block base_body %}
  16. <body class="{% block base_body_classes %}is-ctl-{% if controllerName is not empty %}{{ controllerName|lower }}{% endif %} is-act-{% if controllerAction is not empty %}{{ controllerAction|lower }}{% endif %}{% endblock %}">
  17. <div class="page-wrap fixed-header">
  18.     {% block base_body_inner %}
  19.         {% block base_noscript %}
  20.             <noscript class="noscript-main">
  21.                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  22.                     type: 'info',
  23.                     content: 'general.noscriptNotice'|trans|sw_sanitize
  24.                 } %}
  25.             </noscript>
  26.         {% endblock %}
  27.         {% block base_header %}
  28.             <header class="header-main header-wrap fixed">
  29.                 {% block base_header_inner %}
  30.                     <div class="container">
  31.                         {% sw_include '@Storefront/storefront/layout/header/header.html.twig' %}
  32.                     </div>
  33.                 {% endblock %}
  34.             </header>
  35.         {% endblock %}
  36.         {#{% block base_navigation %}------------NAVIGATION DOPPELT-------------
  37.         <div class="nav-main">
  38.             {% block base_navigation_inner %}
  39.                 {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  40.             {% endblock %}
  41.         </div>
  42.     {% endblock %}#}
  43.         {% block base_offcanvas_navigation %}
  44.             {% if page.header.navigation %}
  45.                 <div class="d-none js-navigation-offcanvas-initial-content{% if context.salesChannel.navigationCategoryId == page.header.navigation.active.id %} is-root{% endif %}">
  46.                     {% block base_offcanvas_navigation_inner %}
  47.                         {% sw_include '@Storefront/storefront/layout/navigation/offcanvas/navigation.html.twig' with { navigation: page.header.navigation } %}
  48.                     {% endblock %}
  49.                 </div>
  50.             {% endif %}
  51.         {% endblock %}
  52.         {% block base_main %}
  53.             <main class="content-main">
  54.                 {% block base_flashbags %}
  55.                     <div class="flashbags container">
  56.                         {% for type, messages in app.flashes %}
  57.                             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: type, list: messages } %}
  58.                         {% endfor %}
  59.                     </div>
  60.                 {% endblock %}
  61.                 {% block base_main_inner %}
  62.                     <div class="container">
  63.                         {% block base_main_container %}
  64.                             <div class="container-main">
  65.                                 <div class="test"></div>
  66.                                 {% block base_breadcrumb %}
  67.                                     {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  68.                                         context: context,
  69.                                         category: page.product.seoCategory
  70.                                     } only %}
  71.                                 {% endblock %}
  72.                                 {% block base_content %}{% endblock %}
  73.                             </div>
  74.                         {% endblock %}
  75.                     </div>
  76.                 {% endblock %}
  77.             </main>
  78.         {% endblock %}
  79.         {% block base_footer %}
  80.             <footer class="footer-main">
  81.                 {% block base_footer_inner %}
  82.                     <div class="footer-main-inner container">
  83.                         {{ parent() }}
  84.                     </div>
  85.                     <div class="footer-copyright-outer">
  86.                         <div class="container">
  87.                             <div class="footer-copyright">
  88.                                 <span> {#{{ "footer.copyrightInfo"|trans|sw_sanitize }}#}</span>
  89.                                 <a class="cs-logo" href="https://www.chilischarf.at/shopware" target="_blank" title="chiliSCHARF Werbeagentur - Agentur für Onlineshops | Shopware"><img src="{{ asset('assets/images/cslogo.png', '@ChiliCustom') }}"/></a>
  90.                             </div>
  91.                         </div>
  92.                     </div>
  93.                 {% endblock %}
  94.             </footer>
  95.         {% endblock %}
  96.     {% endblock %}
  97.     {% block base_scroll_up %}
  98.         {% sw_include '@Storefront/storefront/layout/scroll-up.html.twig' %}
  99.     {% endblock %}
  100.     {% block base_cookie_permission %}
  101.         {% sw_include '@Storefront/storefront/layout/cookie/cookie-permission.html.twig' %}
  102.     {% endblock %}
  103.     {% block base_pseudo_modal %}
  104.         {% sw_include '@Storefront/storefront/component/pseudo-modal.html.twig' %}
  105.     {% endblock %}
  106.     {% block base_body_script %}
  107.         {% if not feature('FEATURE_NEXT_15917') %}
  108.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_token` instead #}
  109.             {% block base_script_token %}
  110.             {% endblock %}
  111.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_router` instead #}
  112.             {% block base_script_router %}
  113.             {# Register all routes that will be needed in JavaScript to the window.router object #}
  114.             <script>
  115.                 window.activeNavigationId = '{{ page.header.navigation.active.id }}';
  116.                 window.router = {
  117.                     'frontend.cart.offcanvas': '{{ path('frontend.cart.offcanvas') }}',
  118.                     'frontend.cookie.offcanvas': '{{ path('frontend.cookie.offcanvas') }}',
  119.                     'frontend.checkout.finish.page': '{{ path('frontend.checkout.finish.page') }}',
  120.                     'frontend.checkout.info': '{{ path('frontend.checkout.info') }}',
  121.                     'frontend.menu.offcanvas': '{{ path('frontend.menu.offcanvas') }}',
  122.                     'frontend.cms.page': '{{ path('frontend.cms.page') }}',
  123.                     'frontend.cms.navigation.page': '{{ path('frontend.cms.navigation.page') }}',
  124.                     'frontend.account.addressbook': '{{ path('frontend.account.addressbook') }}',
  125.                     'frontend.csrf.generateToken': '{{ path('frontend.csrf.generateToken') }}',
  126.                     'frontend.country.country-data': '{{ path('frontend.country.country.data') }}',
  127.                     'frontend.store-api.proxy': '{{ path('frontend.store-api.proxy') }}',
  128.                 };
  129.                 window.storeApiProxyToken = '{{ sw_csrf("frontend.store-api.proxy", {"mode": "token"}) }}';
  130.                 window.salesChannelId = '{{ app.request.attributes.get('sw-sales-channel-id') }}';
  131.             </script>
  132.             {% endblock %}
  133.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_breakpoints` instead #}
  134.             {% block base_script_breakpoints %}
  135.             {# Register the available viewport breakpoints the window.breakpoints object #}
  136.             <script>
  137.                 {% set breakpoint = {
  138.                     'xs': theme_config('breakpoint.xs'),
  139.                     'sm': theme_config('breakpoint.sm'),
  140.                     'md': theme_config('breakpoint.md'),
  141.                     'lg': theme_config('breakpoint.lg'),
  142.                     'xl': theme_config('breakpoint.xl')
  143.                 } %}
  144.                 {# @deprecated tag:v6.5.0 - Bootstrap v5 adds xxl breakpoint #}
  145.                 {% if feature('v6.5.0.0') %}
  146.                 {% set breakpoint = breakpoint|merge({
  147.                     'xxl': theme_config('breakpoint.xxl')
  148.                 }) %}
  149.                 {% endif %}
  150.                 window.breakpoints = {{ breakpoint|json_encode()|raw }};
  151.             </script>
  152.             {% endblock %}
  153.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_csrf` instead #}
  154.             {% block base_script_csrf %}
  155.             <script>
  156.                 window.csrf = {
  157.                     'enabled': '{{ shopware.csrfEnabled }}',
  158.                     'mode': '{{ shopware.csrfMode }}'
  159.                 }
  160.             </script>
  161.             {% endblock %}
  162.         {% if config('core.cart.wishlistEnabled') %}
  163.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_wishlist_state` instead #}
  164.             {% block base_script_wishlist_state %}
  165.             <script>
  166.                 window.customerLoggedInState = {{ context.customer is not null and not context.customer.guest ? 1 : 0 }};
  167.                 window.wishlistEnabled = {{ config('core.cart.wishlistEnabled') }};
  168.             </script>
  169.             {% endblock %}
  170.         {% endif %}
  171.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_jquery` instead #}
  172.             {% block base_script_jquery %}
  173.             {% endblock %}
  174.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_hmr_mode` instead #}
  175.             {% block base_script_hmr_mode %}
  176.         {% if isHMRMode %}
  177.             <script type="text/javascript" src="/_webpack_hot_proxy_/js/vendor-node.js"></script>
  178.             <script type="text/javascript" src="/_webpack_hot_proxy_/js/vendor-shared.js"></script>
  179.             <script type="text/javascript" src="/_webpack_hot_proxy_/js/runtime.js"></script>
  180.             <script type="text/javascript" src="/_webpack_hot_proxy_/js/app.js"></script>
  181.             {# The storefront entry is a combined entry point which contains all plugins & themes #}
  182.             <script type="text/javascript" src="/_webpack_hot_proxy_/js/storefront.js"></script>
  183.         {% else %}
  184.             {% for file in theme_config('assets.js') %}
  185.             <script type="text/javascript" src="{{ asset(file, 'theme') }}"></script>
  186.             {% endfor %}
  187.         {% endif %}
  188.             {% endblock %}
  189.         {% endif %}
  190.     {% endblock %}
  191. </div>
  192. </body>
  193. {% endblock %}