? faq.module.vmod ? faq.module.vtea ? po Index: faq-category-questions-inline.tpl.php =================================================================== RCS file: faq-category-questions-inline.tpl.php diff -N faq-category-questions-inline.tpl.php --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ faq-category-questions-inline.tpl.php 19 Jan 2008 11:02:04 -0000 @@ -0,0 +1,126 @@ + 0) { + $hdr = 'h6'; +} +else { + $hdr = 'h5'; +} + +?>
+ +
+ +
+ +
+ ++ +
+'; - $back_to_top .= l(t($display_vars['back_to_top']), $this_page, array('attributes' => array(), 'query' => NULL, 'fragment' => '')) .'
'; + $back_to_top = l(t($display_vars['back_to_top']), $this_page, array('attributes' => array(), 'query' => NULL, 'fragment' => '')); } + $variables['back_to_top'] = $back_to_top; // configure labels - $que_label = ''; - $ans_label = ''; + $question_label = ''; + $answer_label = ''; if ($display_vars['faq_qa_mark']) { - $que_label = t($display_vars["faq_question_label"]) .' '; - $ans_label = ''. t($display_vars["faq_answer_label"]) .' '; + $question_label = t($display_vars["faq_question_label"]) .' '; + $answer_label = t($display_vars["faq_answer_label"]) .' '; } + $variables['question_label'] = $question_label; + $variables['answer_label'] = $answer_label; // get number of questions, and account for hidden sub-cats + $count = 0; if ($display_vars['faq_count'] && $display_vars['hide_sub_categories']) { $count = taxonomy_term_count_nodes($term->tid, 'faq'); } + $variables['display_faq_count'] = $display_vars['faq_count']; // get taxonomy image - $term_img = ''; + $variables['term_img'] = ''; if (module_exists('taxonomy_image')) { - $term_img = taxonomy_image_display($term->tid, 'class="faq_tax_image"'); + $variables['term_img'] = taxonomy_image_display($term->tid, 'class="faq_tax_image"'); } // configure header - $hdr = "h5"; - if ($term->depth > 0) $hdr = "h6"; - $header = "<$hdr class=\"faq_header\">"; - $header .= $term_img; + $variables['display_header'] = $display_vars['display_header']; + $variables['category_depth'] = $term->depth; if ($display_vars['category_display'] == 'hide_qa') { - $header .= l($term->name, "faq/$term->tid"); + $variables['header_title'] = l($term->name, "faq/$term->tid"); } else { - $header .= check_plain($term->name); + $variables['header_title'] = check_plain($term->name); } - if ($display_vars['faq_count']) $header .= " (%%FAQ_COUNT%%)"; - $header .= "$hdr>\n"; // configure category description - $desc = ''; - if (!empty($term->description)) { - $desc = ''; - $desc .= $term->description ."
'; - $sub_cat_desc .= $sub_term->description ."
'; - $more_link .= l(t($display_vars['more_link']), "node/$node->nid") .'
'; - } - $output .= '