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

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