custom/plugins/tad-theme/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_header %}
  3.     <header class="header-main{% if theme_config('tad-header-layout') == 2 %} header-main-advanced{% endif %}{% if theme_config('tad-header-fullwidth') %} is-fullwidth{% endif %}" {% if theme_config('tad-header-layout') == 2 or theme_config('tad-header-layout') == 3 %} data-flyout-menu="true" {% endif %}>
  4.         {% block base_header_inner %}
  5.             {{ parent() }}
  6.             {% if theme_config('tad-header-layout') == 2 %}
  7.                 {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
  8.             {% endif %}
  9.         {% endblock %}
  10.         {% block base_header_flyout %}
  11.             {% if theme_config('tad-header-layout') == 2 or theme_config('tad-header-layout') == 3 %}
  12.                 {% set navigationChildrenCount = 0 %}
  13.                 {% for treeItem in page.header.navigation.tree %}
  14.                     {% if treeItem.category.childCount > 0 %}
  15.                         {% set navigationChildrenCount = navigationChildrenCount + 1 %}
  16.                     {% endif %}
  17.                 {% endfor %}
  18.                 {% if navigationChildrenCount > 0 %}
  19.                     <div class="navigation-flyouts">
  20.                         {% for treeItem in page.header.navigation.tree %}
  21.                             {% if treeItem.children|length > 0 %}
  22.                                 <div class="navigation-flyout" data-flyout-menu-id="{{ treeItem.category.id }}">
  23.                                     <div class="container">
  24.                                         {% sw_include '@Storefront/storefront/layout/navigation/flyout.html.twig' with {navigationTree: treeItem, level: level+1} only %}
  25.                                     </div>
  26.                                 </div>
  27.                             {% endif %}
  28.                         {% endfor %}
  29.                     </div>
  30.                 {% endif %}
  31.             {% endif %}
  32.         {% endblock %}
  33.     </header>
  34. {% endblock %}
  35. {% block base_navigation %}
  36.     {% if theme_config('tad-header-layout') == 1 or theme_config('tad-header-layout') == 3 %}
  37.         <div class="nav-main{% if theme_config('tad-header-fullwidth') %} is-fullwidth{% endif %}">
  38.             {% block base_navigation_inner %}
  39.                 {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  40.             {% endblock %}
  41.         </div>
  42.     {% endif %}
  43. {% endblock %}
  44. {% block base_breadcrumb %}
  45.     {% if theme_config('tad-breadcrumb-set-active') %}
  46.         <div class="breadcrumb cms-breadcrumb container ">
  47.             {{ parent() }}
  48.         </div>
  49.     {% endif %}
  50. {% endblock %}
  51. {% block base_footer %}
  52.    
  53.     {{ parent() }}
  54.     
  55. {% endblock %}