templates/components/contact-persons-accordion.html.twig line 1

Open in your IDE?
  1. <div class="accordion" id="{{ accordionId }}">
  2.     {% if(items is defined) %}
  3.         {% set itemId = accordionId|lower %}
  4.         <div class="accordion-item yellow my-2 border-0 rounded-0">
  5.             <div class="accordion-header" id="{{ itemId }}">
  6.                 <button class="d-flex align-items-center accordion-button icon collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-{{ itemId }}" aria-expanded="false" aria-controls="collapse-{{ itemId }}">
  7.                     <span class="fw-bolder">{{ title|raw }}</span>
  8.                 </button>
  9.             </div>
  10.             <div id="collapse-{{ itemId }}" class="accordion-collapse collapse" aria-labelledby="{{ itemId }}" data-bs-parent="#{{ accordionId }}">
  11.                 <div class="accordion-body">
  12.                     <div class="container">
  13.                         <div class="row">
  14.                             {% for person in items %}
  15.                                 <div class="col-12 col-md-6 col-lg-4 col-xl-3 mb-5">
  16.                                     <div class="mb-4 mb-lg-0 d-inline">
  17.                                         <img class="w-100 mb-2" src="{{ person.image.formats['sulu-400x400'] }}" alt="{{ person.name }}">
  18.                                         <p>{{ person.name|raw }}</p>
  19.                                     </div>
  20.                                 </div>
  21.                             {% endfor %}
  22.                         </div>
  23.                     </div>
  24.                 </div>
  25.             </div>
  26.         </div>
  27.     {% endif %}
  28. </div>