function theme_rotor_items in Rotor Banner 5
Same name and namespace in other branches
- 5.7 rotor.module \theme_rotor_items()
- 6 rotor.module \theme_rotor_items()
Theme for the Rotor items list.
Parameters
array $items The array of rotor_item nodes.:
1 theme call to theme_rotor_items()
- theme_rotor_block in ./
rotor.module - Theme function for the block
File
- ./
rotor.module, line 585 - A rotor banner consists in a set of images that will be changing. This module is made using jquery.
Code
function theme_rotor_items($items = array()) {
// Setting the image height and width
$css_width = variable_get('rotor_width', 200) . 'px';
$css_height = variable_get('rotor_height', 200) . 'px';
$output = "<div class='rotor-items' style=\"height:{$css_height}; width:{$css_width};\">";
foreach ($items as $node) {
$output .= theme('rotor_item', $node);
}
$output .= '</div>';
return $output;
}