function theme_rotor_tabs in Rotor Banner 6
Same name and namespace in other branches
- 5.7 rotor.module \theme_rotor_tabs()
- 5 rotor.module \theme_rotor_tabs()
- 6.2 rotor.module \theme_rotor_tabs()
- 7 rotor.module \theme_rotor_tabs()
Theme for the rotor tabs.
Parameters
array $items The array of items from where to get the tabs.:
1 theme call to theme_rotor_tabs()
- theme_rotor_block in ./
rotor.module - Theme function for the block
File
- ./
rotor.module, line 561 - A rotor banner consists in a set of images that will be changing. This module is made using jquery.
Code
function theme_rotor_tabs($items = array()) {
$show_tabs = variable_get('rotor_show_tabs', 1);
$group_tabs = variable_get('rotor_group_tabs', ROTOR_GROUP_TABS);
$output = '';
if ($show_tabs && $group_tabs == ROTOR_GROUP_TABS) {
$output = '<div class="rotor-tabs">';
foreach ($items as $item) {
$output .= theme_rotor_tab($item);
}
$output .= '</div>';
}
return $output;
}