'."\n";
}
// Determine if faqs for sub-categories should be displayed or not.
if (($get_child_terms && $category_display == 'categories_inline') || ((($show_term_page_children && $this_page != 'faq') || $hide_child_terms) && $category_display == 'hide_qa')) {
$output .= faq_get_child_categories_faqs($term, 'faq_category_questions_inline', $default_weight, $default_sorting, $category_display, $class);
}
// Configure question and answer labels.
$question_label = '';
$answer_label = '';
if (variable_get('faq_qa_mark', FALSE)) {
$question_label .= variable_get('faq_question_label', "Q:") .' ';
$answer_label = '
'. variable_get('faq_answer_label', "A:") .' ';
}
// Retrieve questions and answers for this term.
$output .= "
\n";
if (count($nodes)) {
foreach ($nodes as $node) {
$output .= theme('faq_format_question', $node, NULL, NULL, $question_label);
$output .= faq_view_answer($node, $back_to_top, $teaser, $links, $answer_label);
}
}
$output .= "
\n";
$output .= "