From f9efcc27594d055093858a2da8c4400ffe8dbf08 Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 14 Apr 2011 18:29:12 -0300 Subject: Add a span element to nodes without children or links --- taxonomy_node_tree.module | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/taxonomy_node_tree.module b/taxonomy_node_tree.module index ebb9e3c..c34c8ea 100644 --- a/taxonomy_node_tree.module +++ b/taxonomy_node_tree.module @@ -223,9 +223,10 @@ function taxonomy_node_tree_list($term, $id, $class, $baselink = NULL, &$level = $level++; if (isset($term->tid)) { - $output .= '
  • '; - $output .= $term->name; + $output = '
  • '; + if (isset($term->below)) { + $output .= $term->name; $output .= ''; } elseif (isset($term->nodes)) { + $output .= $term->name; $output .= ''; } + else { + $output .= ''. $term->name .''; + } + $output .= '
  • '; } -- cgit v1.2.3