templates/pages/faq.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.     {{ "Često postavljana pitanja"|trans }} - {{ parent() }}
  4. {% endblock %}
  5. {% block stylesheets %}
  6.     <style>
  7.         @media screen and (min-width: 800px) {
  8.             .navbar-nav .nav-link {
  9.                 color: whitesmoke;
  10.             }
  11.         }
  12.         header.fix_style .navbar-expand-lg .navbar-nav .nav-link {
  13.             color: #40656b;
  14.         }
  15.     </style>
  16. {% endblock %}
  17. {% block header %}
  18.     {{ include('components/header-2.html.twig') }}
  19. {% endblock %}
  20. {% block body %}
  21.     <!-- BredCrumb-Section -->
  22.     <div class="bred_crumb bg-default" style="background-image: url('{{ tString("media_features_faq") }}');!important;">
  23.         <div class="container" style="margin-top: 120px">
  24.             <div class="bred_text">
  25.                 <h1 style="color: white;!important;">{{ tString("frequently_asked_questions")|capitalize }}</h1>
  26.                 <p style="color: white;!important;">{{ tString("faq_page_p") }}</p>
  27.                 <ul>
  28.                     <li><a  style="color: white;!important;" href="{{ path('web_homepage') }}">{{ tString("menu_naslovna") }}</a></li>
  29.                     <li><span style="color: white;!important;" >»</span></li>
  30.                     <li><a style="color: white;!important;" href="{{ path('web_faq') }}">{{ tString("frequently_asked_questions")|capitalize }}</a></li>
  31.                 </ul>
  32.             </div>
  33.         </div>
  34.     </div>
  35.     <!-- FAQ-Section start -->
  36.     <section class="row_am faq_section">
  37.         <!-- container start -->
  38.         <div class="container">
  39.             <!-- faq data -->
  40.             <div class="faq_panel">
  41.                 <div class="accordion" id="accordionExample">
  42.                     {% for item in items %}
  43.                     <div class="card" data-aos="fade-up" >
  44.                         <div class="card-header" id="heading{{ loop.index }}">
  45.                             <h2 class="mb-0">
  46.                                 <button type="button" class="btn btn-link active" data-toggle="collapse" data-target="#collapse{{ loop.index }}">
  47.                                     <i class="icon_faq icofont-plus"></i></i>
  48.                                     {% for translation in item.faqTranslations() %}
  49.                                         {% if translation.getLocale() == app.request.locale %}
  50.                                             {{ translation.question }}
  51.                                         {% endif %}
  52.                                     {% endfor %}
  53.                                 </button>
  54.                             </h2>
  55.                         </div>
  56.                         <div id="collapse{{ loop.index }}" class="collapse {% if loop.first %}{% endif %}" aria-labelledby="heading{{ loop.index }}" data-parent="#accordionExample">
  57.                             <div class="card-body">
  58.                                 <p>
  59.                                     {% for translation in item.faqTranslations() %}
  60.                                         {% if translation.getLocale() == app.request.locale %}
  61.                                             {{ translation.answer|raw() }}
  62.                                         {% endif %}
  63.                                     {% endfor %}
  64.                                 </p>
  65.                             </div>
  66.                         </div>
  67.                     </div>
  68.                     {% endfor %}
  69.                 </div>
  70.             </div>
  71.         </div>
  72.         <!-- container end -->
  73.     </section>
  74.     <!-- FAQ-Section end -->
  75. {% endblock %}