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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_doctype %}
  3.   {{ parent() }}
  4. {% endblock %}
  5. {% block base_html %}
  6. <html
  7.   lang="{{ app.request.locale }}"
  8.   itemscope="itemscope"
  9.   itemtype="https://schema.org/WebPage"
  10. >
  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-{{ controllerName|lower }} is-act-{{ controllerAction|lower }}{% endblock %}">
  17.     {% block base_body_inner %}
  18.       {% block base_noscript %}
  19.         {{ parent() }}
  20.       {% endblock %}
  21.       {% block base_header %}
  22.         <div class="sentinel"></div>
  23.         <header class="header-main header-element">
  24.           {% block base_header_inner %}
  25.             {% sw_include '@Storefront/storefront/layout/header/header.html.twig' %}
  26.           {% endblock %}
  27.         </header>
  28.         {% block layout_main_navigation_menu_popup_code %}
  29.           {% for treeItem in page.header.navigation.tree %}
  30.             {% set category = treeItem.category %}
  31.             {% set name = category.translated.name %}
  32.             {% if treeItem.children|length > 0 %}
  33.               {% block layout_main_navigation_menu_popup %}
  34.                 <wyn-popup
  35.                   id="navigation-popup-{{ treeItem.category.id }}"
  36.                   anchor="#navigation-{{ treeItem.category.id }}"
  37.                   placement="bottom-start"
  38.                   strategy="hover-popup"
  39.                   distance="0"
  40.                   clickable
  41.                   class="navigation-popup"
  42.                   aria-labelledby="navigation-{{ treeItem.category.id }}"
  43.                 >
  44.                   {% sw_include '@Storefront/storefront/layout/navigation/flyout.html.twig' with {navigationTree: treeItem, level: level+1, page: page} only %}
  45.                 </wyn-popup>
  46.               {% endblock %}
  47.             {% endif %}
  48.           {% endfor %}
  49.         {% endblock %}
  50.       {% endblock %}
  51.       {% block base_offcanvas_navigation %}
  52.         {{ parent() }}
  53.       {% endblock %}
  54.       {% block base_main %}
  55.         {{ parent() }}
  56.       {% endblock %}
  57.       {% block base_footer %}
  58.         {{ parent() }}
  59.       {% endblock %}
  60.     {% endblock %}
  61.     {% block base_scroll_up %}
  62.       {{ parent() }}
  63.     {% endblock %}
  64.     {% block base_cookie_permission %}
  65.       {{ parent() }}
  66.     {% endblock %}
  67.     {% block base_pseudo_modal %}
  68.       {{ parent() }}
  69. {#      {% sw_incl ude '@Storefront/storefront/component/wyn-pseudo-modal.html.twig' %}#}
  70.     {% endblock %}
  71.     {% block base_body_script %}
  72.       {{ parent() }}
  73.     {% endblock %}
  74.   </body>
  75. {% endblock %}