templates/front/theme1/modele/bloc_faqs_random.html.twig line 1

Open in your IDE?
  1. {% if resultat is defined and resultat is not empty %}
  2.     <div class="container-fluid wrapper mb-5">
  3.         <div class="col-sm-12 text-center">
  4.              <h2 class="title">{{widget.title|raw}}</h2>
  5.              {% if widget.subTitle is not empty %}
  6.                  <h2 class="sub-title">{{widget.subTitle|raw}}</h2>
  7.              {% endif %}
  8.              
  9.              {% if widget.description is not empty %}
  10.                 <div>
  11.                     <p>{{widget.description|raw}}</p>
  12.                 </div>
  13.              {% endif %}
  14.         </div>
  15.         <div id="accordion" class="faq-accordion ">    
  16.             {% for key,item in resultat|filter((u) => u.slug != app.request.attributes.get('_route_params')['slug']|default('')) %}
  17.                 <div class="card mb-2 text-left">
  18.                     <div class="card-header">
  19.                         <a class="card-link collapsed icon" href="{{path('page',{slug:item.slug})}}">
  20.                             <span class="icone_left">
  21.                                 <i class="fa fa-comments" aria-hidden="true"></i>
  22.                             </span>
  23.                             {{item.titre}} <span class="icone_right"><i class="fa fa-chevron-right"></i></span>
  24.                         </a>
  25.                     </div>
  26.                 </div>  
  27.             {% endfor %}                
  28.         </div>
  29.     </div>
  30. {% endif %}