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.
1 theme call to faq-ask-unanswered-block.html.twig
- Utility::faqAskListUnanswered in src/
Utility.php - This is the code to select the Unanswered Questions for the block.
File
templates/faq-ask-unanswered-block.html.twigView source
- {#
-
- /**
- * @file
- * Template file for the FAQ page if set to show/hide categorized answers when
- * the question is clicked.
- */
-
- /**
- * Available variables:
- *
- * $header_title
- * The category title.
- * $description
- * The current page's description.
- * $term_image
- * The HTML for the category image. This is empty if the taxonomy image module
- * is not enabled or there is no image associated with the term.
- * $display_faq_count
- * Boolean value controlling whether or not the number of faqs in a category
- * should be displayed.
- * $nodes
- * An array of nodes to be displayed.
- * Each node stored in the $nodes array has the following information:
- * $node['question'] is the question text.
- *
- * $links
- *
- * $message
- *
- */
-
- #}
- <!-- list questions (in title link) and answers (in body) -->
- {% if items > 0 %}
- <ul class="faq-ask-unanswered-questions">
- {% for item in items %}
- <li class="faq-ask-question">
- <a href="{{ item['href'] }}"> {{ item['title'] }}</a>
- </li> <!-- Close div: faq-question-answer -->
- {% endfor %}
- </ul> <!-- Close div: faq-question-answer -->
- {% if more_link %}
- <a href="{{ links['href'] }}"> {{ links['title'] }}</a>
- {% endif %}
- {% endif %}