You are here

faq-ask-unanswered-block.html.twig in FAQ_Ask 8

Template file for the FAQ page if set to show/hide categorized answers when the question is clicked.

File

templates/faq-ask-unanswered-block.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template file for the FAQ page if set to show/hide categorized answers when
  5. * the question is clicked.
  6. */
  7. /**
  8. * Available variables:
  9. *
  10. * $header_title
  11. * The category title.
  12. * $description
  13. * The current page's description.
  14. * $term_image
  15. * The HTML for the category image. This is empty if the taxonomy image module
  16. * is not enabled or there is no image associated with the term.
  17. * $display_faq_count
  18. * Boolean value controlling whether or not the number of faqs in a category
  19. * should be displayed.
  20. * $nodes
  21. * An array of nodes to be displayed.
  22. * Each node stored in the $nodes array has the following information:
  23. * $node['question'] is the question text.
  24. *
  25. * $links
  26. *
  27. * $message
  28. *
  29. */
  30. #}
  31. <!-- list questions (in title link) and answers (in body) -->
  32. {% if items > 0 %}
  33. <ul class="faq-ask-unanswered-questions">
  34. {% for item in items %}
  35. <li class="faq-ask-question">
  36. <a href="{{ item['href'] }}"> {{ item['title'] }}</a>
  37. </li> <!-- Close div: faq-question-answer -->
  38. {% endfor %}
  39. </ul> <!-- Close div: faq-question-answer -->
  40. {% if more_link %}
  41. <a href="{{ links['href'] }}"> {{ links['title'] }}</a>
  42. {% endif %}
  43. {% endif %}