templates/filter/experiences_filter.html.twig line 1

Open in your IDE?
  1. {% set id = app.request.get('theme') %}
  2. {% set checkedCond = false %}
  3. <div id="filters-container" class="filters-container experiences open cblack w100">
  4.     <span class="fs20 fw500 pb-1em diblock">Ou filtrez les expériences par thématiques</span>
  5.     <ul id="filters-custom" class="w100 dflex fwwrap experiences">
  6.         {% for category in sulu_categories(app.request.locale, 'thematiques') %}
  7.             {% set this_category = load_category_by_id(category.id, 'fr') %}
  8.             <li class="thematiques{% if not loop.last %} pb-1em{% endif %}">
  9.                 {% if this_category.id == id %}
  10.                     {% set checkedCond = true %}
  11.                 {% else %}
  12.                     {% set checkedCond = false %}
  13.                 {% endif %}
  14.                 <label for="{{ category.key }}-{{ category.id }}">
  15.                     <input id="{{ category.key }}-{{ category.id }}" type="checkbox" class="thematiques-check" value="{{ category.id }}" {% if checkedCond %} checked {% endif %}>
  16.                     <span class="label dflex aic thematiques-tag cwhite fw500" style="background: {{this_category.entity.color}}">{{ category.name }}</span>
  17.                     <span class="checkmark"></span>
  18.                 </label>
  19.             </li>
  20.         {% endfor %}
  21.     </ul>
  22. </div>