Index: C:/Repository/labs.bloggingsystems.com/implementations/cms.bloggingsystems.com/sites/all/modules/taxonomy_html/taxonomy_html.module =================================================================== --- C:/Repository/labs.bloggingsystems.com/implementations/cms.bloggingsystems.com/sites/all/modules/taxonomy_html/taxonomy_html.module (revision 605) +++ C:/Repository/labs.bloggingsystems.com/implementations/cms.bloggingsystems.com/sites/all/modules/taxonomy_html/taxonomy_html.module (working copy) @@ -37,7 +37,7 @@ } elseif (($op == 'view') && ($vocab = taxonomy_get_vocabulary($delta))) { $data['subject'] = check_plain($vocab->name); - $data['content'] = taxonomy_html_vocab_horiz($vocab); + $data['content'] = taxonomy_html_vocab_horiz($vocab); return $data; } } @@ -48,7 +48,7 @@ $vocabularies = taxonomy_html_get_vocabularies(); $output = ''; $cellwidth = round(100 / $columns). '%'; - foreach ($vocabularies as $n => $vocab) { + foreach ($vocabularies as $n => $vocab) { if ($n % $columns == 0) { $output .= ''; } @@ -79,7 +79,8 @@ function taxonomy_html_vocab_horiz($vocabulary, $type = '') { $lastdepth = 0; $output = ''; - $tree = taxonomy_get_tree($vocabulary->vid); + $tree = taxonomy_get_tree($vocabulary->vid); + $last = count($tree); foreach ($tree as $index => $term) { $showcounts = variable_get('taxonomy_html_show_node_count', 0); @@ -101,7 +102,7 @@ } else { if (variable_get('taxonomy_html_show_empty_terms', 0) == 0) { - $output .= '
  • '. $term->name; + $output .= '
  • '. $term->name . ($index==$last-1? '
  • ' : ''); } }