templates/themes/theme/faq/faqs.html.twig line 1

Open in your IDE?
  1. <script type="application/ld+json">
  2. {
  3. "@context": "https://schema.org",
  4. "@type": "FAQPage",
  5. "mainEntity": [
  6. {% for faq in faqsEmployer %}
  7. {
  8. "@type": "Question",
  9. "name": "{{ faq.title }}",
  10. "acceptedAnswer": {
  11. "@type": "Answer",
  12. "text": "{{ faq.content|striptags|replace({'&nbsp;':' '}) }}"
  13. }
  14. },
  15. {% endfor %}
  16. {% for faq in faqsEmployee %}
  17. {
  18. "@type": "Question",
  19. "name": "{{ faq.title }}",
  20. "acceptedAnswer": {
  21. "@type": "Answer",
  22. "text": "{{ faq.content|striptags|replace({'&nbsp;':' '}) }}"
  23. }
  24. }{% if loop.last == false %},{% endif %}
  25. {% endfor %}
  26. ]
  27. }
  28. </script>
  29. <section class="faqs-list-block">
  30. <div class="container">
  31. <div>
  32. {% if faqsEmployer|length > 0 %}
  33. <h2 class="mb-4">Employer FAQs</h2>
  34. <twig:FAQsList :faqs="faqsEmployer" />
  35. {% endif %}
  36. </div>
  37. <div class="mt-12 lg:mt-0">
  38. {% if faqsEmployee|length > 0 %}
  39. <h2 class="mb-4">Employee FAQs</h2>
  40. <twig:FAQsList :faqs="faqsEmployee" />
  41. {% endif %}
  42. </div>
  43. </div>
  44. </section>