custom/plugins/LogBchange/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('log-header-layout') == 2 %} header-main-advanced{% endif %}{% if theme_config('log-header-fullwidth') %} is-fullwidth{% endif %}" {% if theme_config('log-header-layout') == 2 or theme_config('log-header-layout') == 3 %} data-flyout-menu="true" {% endif %}>
  4.         {% block base_header_inner %}
  5.             {{ parent() }}
  6.             {% if theme_config('log-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('log-header-layout') == 2 or theme_config('log-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('log-header-layout') == 1 or theme_config('log-header-layout') == 3 %}
  37.         <div class="nav-main{% if theme_config('log-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 %} #}{% endblock %}
  43. {% block base_breadcrumb %}
  44.     <div class="breadcrumb cms-breadcrumb container">
  45.         {{ parent() }}
  46.     </div>
  47. {% endblock %}
  48. {% block base_main %}
  49.     <main class="content-main ">
  50.         {{ parent() }}
  51.     </main>
  52. {% endblock %}
  53. {% block base_footer %}
  54.     {% block base_newsletter %}
  55.         {% if theme_config('log-newsletter-enable') %}
  56.             <div class="main-newsletter">
  57.                 {% block base_newsletter_inner %}
  58.                     <div class="container">
  59.                         {% sw_include '@Storefront/storefront/layout/newsletter/newsletter.html.twig' %}
  60.                     </div>
  61.                 {% endblock %}
  62.             </div>
  63.         {% endif %}
  64.     {% endblock %}
  65.     {{ parent() }}
  66.     <script type="text/javascript" src="/bundles/logbchange/static/js/swiper/swiper-bundle.min.js"></script>
  67. {% endblock %}