You are here

function theme_rotor_tabs in Rotor Banner 5

Same name and namespace in other branches
  1. 5.7 rotor.module \theme_rotor_tabs()
  2. 6.2 rotor.module \theme_rotor_tabs()
  3. 6 rotor.module \theme_rotor_tabs()
  4. 7 rotor.module \theme_rotor_tabs()

Theme for the rotor tabs.

Parameters

array $items The array of rotor_item nodes 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 566
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 $node) {
      $output .= '<div class="rotor-tab">' . $node->title . '</div>';
    }
    $output .= '</div>';
  }
  return $output;
}