function theme_tagadelic_list_box in Tagadelic 7
Same name and namespace in other branches
- 5 tagadelic.module \theme_tagadelic_list_box()
- 6 tagadelic.module \theme_tagadelic_list_box()
Theme function that renders an entry in tagadelic/list/ views.
Parameters
$vocabulary: A full vocabulary object.
$tags: An array with weighted tag objects.
1 theme call to theme_tagadelic_list_box()
- tagadelic_page_list in ./
tagadelic.module - Menu callback renders a tagadelic page with listed items: each vocabulary.
File
- ./
tagadelic.module, line 349
Code
function theme_tagadelic_list_box(array $vars) {
$vocabulary = $vars['vocabulary'];
$tags = $vars['tags'];
$content = theme('tagadelic_weighted', array(
'terms' => $tags,
));
$output = '';
if ($vocabulary->description) {
$content = '<h2></h2><div>' . $vocabulary->description . '</div>' . $content;
}
$output .= '<h2>' . $vocabulary->name . '</h2><div>' . $content . '</div>';
return $output;
}