templates/themesWebsite/cvs/website/faq.html.twig line 1

Open in your IDE?
  1. {% extends 'themesWebsite/blog_cvs/base.html.twig' %}
  2. {% block title %}{{ page.shortTitle }}{% endblock title %}
  3. {% block description %}{{ page.shortDescription }}{% endblock description %}
  4. {% block robots %}{{ page.robots }}{% endblock robots %}
  5. {% block meta_social %}{{ parent() }}{% include "/themesWebsite/blog_cpn/components/socialmedia.html.twig" with { 'page':page,'social_type':'website' } %}{% endblock meta_social %}
  6. {% block meta %}{{ parent() }}{% include "/themesWebsite/blog_cpn/components/author.html.twig" with {'page':page } %}{% endblock meta %}
  7. {% block body %}
  8.     <section class="bg-cover primary-bg-dark" style="margin-top:75px;">
  9.         <div class="container">
  10.             <div class="row">
  11.                 <div class="col-lg-12 col-md-12">
  12.                     <h2 class="ipt-title text-light">{{ page.title }}</h2>
  13.                     <span class="ipn-subtitle text-light opacity-75">{{ page.description|raw }}</span>
  14.                 </div>
  15.             </div>
  16.         </div>
  17.     </section>
  18.     <section class="bg-light">
  19.         <div class="container">
  20.             <div class="row">
  21.                 <div class="col-lg-10 col-md-12 col-sm-12">
  22.                     {% if categories is not empty %}
  23.                         {% for cat in categories %}
  24.                     <div class="single-faqs mb-5">
  25.                         <div class="faqs-title"><h5>{{ cat.title }}</h5></div>
  26.                         <div class="accordion" id="accountActivation{{ cat.id }}">
  27.                             {% set faqs = getCvsFaq(cat.id) %}
  28.                             {% if faqs is not null %}
  29.                             {% for faq in faqs %}
  30.                             <div class="accordion-item">
  31.                                 <h2 class="accordion-header" id="faq{{ cat.id }}{{ faq.id }}">
  32.                                     <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#account{{ faq.id }}" aria-expanded="true" aria-controls="faq{{ cat.id }}{{ faq.id }}">
  33.                                         {{ faq.title }}
  34.                                     </button>
  35.                                 </h2>
  36.                                 <div id="account{{ faq.id }}" class="accordion-collapse collapse {% if loop.first == 1 %}show{% endif %}" aria-labelledby="faq{{ cat.id }}{{ faq.id }}" data-bs-parent="#accountActivation{{ cat.id }}">
  37.                                     <div class="accordion-body">
  38.                                         {{ faq.description|raw }}
  39.                                     </div>
  40.                                 </div>
  41.                             </div>
  42.                             {% endfor %}
  43.                             {% endif %}
  44.                         </div>
  45.                     </div>
  46.                         {% endfor %}
  47.                     {% endif %}
  48.                 </div>
  49.             </div>
  50.         </div>
  51.     </section>
  52. {% endblock body %}