function theme_rotor_tabs in Rotor Banner 5.7
Same name and namespace in other branches
- 5 rotor.module \theme_rotor_tabs()
- 6.2 rotor.module \theme_rotor_tabs()
- 6 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 334 - 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', TRUE);
$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 .= '<div class="rotor_tab">' . $item->title . '</div>';
}
$output .= '</div>';
}
return $output;
}