If catergory has children, then make a link

term_id, $term->taxonomy );

if (sizeof($term_children)==0){
// if category has no children, we won't make a link
?>
   

name; ?>

} else { // if catergory has childre, we ask a link $term_link =get_term_link($term); ?>

name ?>