templates/theme/default/modele-widget/faq_block.html.twig line 1

Open in your IDE?
  1. {% if faqs is defined and faqs is not empty %}
  2. <div id="faq-section" class="py-5" {% if widget.bgimage is defined and widget.bgimage != null %} style="background: url({{asset_image(widget.bgimage)}}) " {% elseif widget.bgcolor != null %} style="background-color:{{widget.bgcolor}}" {% endif %}>
  3. <div class="container-fluid content-wrapper">
  4. <div class="row">
  5. <div class="col-xl-5 text-start">
  6. {% if widget.title is not empty %}
  7. <h2 class="title">{{widget.title|raw}}</h2>
  8. {% endif %}
  9. {% if widget.subTitle is not empty %}
  10. <h3 class="sub-title">{{widget.subTitle|raw}}</h3>
  11. {% endif %}
  12. {% if widget.description is not empty %}
  13. <div>
  14. <p>{{widget.description|raw}}</p>
  15. </div>
  16. {% endif %}
  17. </div>
  18. <div class="col-xl-7 p-0">
  19. {% for item in faqs %}
  20. <div class="faq-item">
  21. <div class="faq-question">
  22. <span>{{item.question}}</span>
  23. <span class="icon-plus"></span>
  24. </div>
  25. <div class="faq-answer">
  26. <div class="content-answer">
  27. {{item.reponse|replace({'\r\n':'<br />'})|raw}}
  28. </div>
  29. </div>
  30. </div>
  31. {% endfor %}
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. {% endif %}