vendor/shopware/storefront/Resources/views/storefront/base.html.twig line 1

  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.                     iconCache: false
  23.                 } %}
  24.             </noscript>
  25.         {% endblock %}
  26.         {% block base_header %}
  27.             <header class="header-main">
  28.                 {% block base_header_inner %}
  29.                     <div class="container">
  30.                         {% sw_include '@Storefront/storefront/layout/header/header.html.twig' %}
  31.                     </div>
  32.                 {% endblock %}
  33.             </header>
  34.         {% endblock %}
  35.         {% block base_navigation %}
  36.             <div class="nav-main">
  37.                 {% block base_navigation_inner %}
  38.                     {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  39.                 {% endblock %}
  40.             </div>
  41.         {% endblock %}
  42.         {% block base_offcanvas_navigation %}
  43.             {% if page.header.navigation %}
  44.                 <div class="d-none js-navigation-offcanvas-initial-content{% if context.salesChannel.navigationCategoryId == page.header.navigation.active.id %} is-root{% endif %}">
  45.                     {% block base_offcanvas_navigation_inner %}
  46.                         {% sw_include '@Storefront/storefront/layout/navigation/offcanvas/navigation.html.twig' with { navigation: page.header.navigation } %}
  47.                     {% endblock %}
  48.                 </div>
  49.             {% endif %}
  50.         {% endblock %}
  51.         {% block base_main %}
  52.             <main class="content-main">
  53.                 {% block base_flashbags %}
  54.                     <div class="flashbags container">
  55.                         {% for type, messages in app.flashes %}
  56.                             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: type, list: messages } %}
  57.                         {% endfor %}
  58.                     </div>
  59.                 {% endblock %}
  60.                 {% block base_main_inner %}
  61.                     <div class="container">
  62.                         {% block base_main_container %}
  63.                             <div class="container-main">
  64.                                 {% block base_breadcrumb %}
  65.                                     {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  66.                                         context: context,
  67.                                         category: page.product.seoCategory
  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.     {% endblock %}
  96.     </body>
  97. {% endblock %}
  98. </html>