| הוגש ע"י admin ביום שלישי, נובמבר 10, 2009 - 10:48. | |
vid;
$terms = taxonomy_get_children(0, $vid);
if (count($terms)) {
echo '
';
foreach ($terms as $term){
echo "- " . l($term->name, 'tags/' . str_replace (' ', '-', $term->name) ) ;
$children = taxonomy_get_children($term->tid, $vid);
$cnt = count($children);
if ($cnt) echo " ($cnt)";
echo "
";
}
echo '
';
}
?>