faq-ask-unanswered.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.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.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.
- * $node['body'] is the answer text.
- * $node['links'] represents the node links, e.g. "Read more".
- * $use_teaser
- * Whether $node['body'] contains the full body or just the teaser text.
- * $container_class
- * The class attribute of the element containing the sub-categories, either
- * 'faq-qa' or 'faq-qa-hide'. This is used by javascript to open/hide
- * a category's faqs.
- */
-
- #}
- <div class="faq-category-group">
- <!-- category header with title, link, image, description, and count of
- questions inside -->
- <div class="faq-qa-header">
- <h2 class="faq-header">
- {{ term_image }}
- {{ header_title }}
- ( {{ question_count }} )
- </h2>
-
- {% if description is not empty %}
- <div class="faq-qa-description">{{ description }}</div>
- {% endif %}
-
- {% if term_image is not empty %}
- <div class="clear-block"></div>
- {% endif %}
- </div> <!-- Close div: faq-qa-header -->
-
- <!-- list questions (in title link) and answers (in body) -->
- <div class="faq-dl-hide-answer">
- {% if nodes > 0 %}
- {% for node in nodes %}
- <div class="faq-question-answer">
- <div class="faq-question faq-dt-hide-answer">
- {{ node['question'] }}
- {% for links in node['links'] %}
- <a href="{{ links['href'] }}"> {{ links['title'] }}</a>
- {% endfor %}
- </div> <!-- Close div: faq-question faq-dt-hide-answer -->
- </div> <!-- Close div: faq-question-answer -->
- {% endfor %}
- {% endif %}
- </div> <!-- Close div: faq-dl-hide-answer -->
-
- </div> <!-- Close div: faq-category-group -->