function theme_rotor_item in Rotor Banner 6
Same name and namespace in other branches
- 5.7 rotor.module \theme_rotor_item()
- 5 rotor.module \theme_rotor_item()
- 6.2 rotor.module \theme_rotor_item()
- 7 rotor.module \theme_rotor_item()
Theme for each Rotor item.
Parameters
node $item The rotor_item node to theme.:
1 theme call to theme_rotor_item()
- theme_rotor_items in ./
rotor.module - Theme for the Rotor items list.
File
- ./
rotor.module, line 606 - A rotor banner consists in a set of images that will be changing. This module is made using jquery.
Code
function theme_rotor_item($item) {
$show_tabs = variable_get('rotor_show_tabs', 1);
$group_tabs = variable_get('rotor_group_tabs', ROTOR_GROUP_TABS);
$tab_position = variable_get('rotor_tab_position', ROTOR_TAB_POSITION_TOP);
$output = '<div class="rotor-content">';
if ($show_tabs && $group_tabs == ROTOR_DONT_GROUP_TABS && $tab_position == ROTOR_TAB_POSITION_TOP) {
$output .= theme_rotor_tab($item);
}
$output .= ' <div class="rotor-content-detail">';
if ($item->rotor_image) {
$output .= $item->url ? l(theme('rotor_image', $item), $item->url, array(
'html' => TRUE,
'attributes' => array(
'target' => $item->link_target,
),
)) : theme('rotor_image', $item);
}
else {
$output .= check_markup($item->body, $item->format, FALSE);
}
$output .= '</div>';
if ($show_tabs && $group_tabs == ROTOR_DONT_GROUP_TABS && $tab_position == ROTOR_TAB_POSITION_BOTTOM) {
$output .= theme_rotor_tab($item);
}
$output .= '</div>';
return $output;
}