templates/website/includes/search-overlay.html.twig line 1

Open in your IDE?
  1. <div class="search-overlay">
  2.     <div id="search-container" class="container">
  3.         {# SEARCH FORM #}
  4.         {% include 'website/includes/search-form-section.html.twig' %}
  5.         {# CATEGORIES #}
  6.         <div class="categories">
  7.             {% for category in categories %}
  8.                 {% if category.hasProduct() %}
  9.                     <a href="{{ path('productListCategory', { type: 'produtos', slug: category.slug }) }}" class="tag">
  10.                         {{ category.category }}
  11.                     </a>
  12.                 {% endif %}
  13.             {% endfor %}
  14.         </div>
  15.         {# PRODUCTS #}
  16.         <div class="boxes">
  17.             {% if false %}{# @!!! #}
  18.             {% for homeLayoutSection, value in homeLayoutSections %}
  19.                 {% if  homeLayoutSection == 'productPlanSection' %}
  20.                     {% set section = productPlan %}
  21.                 {% elseif  homeLayoutSection == 'productComboSection' %}
  22.                     {% set section = productCombo %}
  23.                 {% endif %}
  24.                 {% if value.active == enum('ClientEnum::YES') %}
  25.                     {% include getSection(homeLayoutSection) with { layout: 'home', theme: (isDarkTheme? 'dark':'light') }%}
  26.                 {% endif %}
  27.             {% endfor %}
  28.             {% endif %}
  29.         </div>
  30.     </div>
  31. </div>