You are here

function theme_rotor_item in Rotor Banner 5.7

Same name and namespace in other branches
  1. 5 rotor.module \theme_rotor_item()
  2. 6.2 rotor.module \theme_rotor_item()
  3. 6 rotor.module \theme_rotor_item()
  4. 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 366
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', TRUE);
  $group_tabs = variable_get('rotor_group_tabs', ROTOR_GROUP_TABS);
  $output = '<div class="rotor_content">';
  if ($show_tabs && $group_tabs == ROTOR_DONT_GROUP_TABS) {
    $output .= '<div class="rotor_tab">' . $item->title . '</div>';
  }
  $output .= '<div class="rotor_content_detail">' . ($item->rotor_image ? theme('image', file_create_url($item->rotor_image), '', '', NULL, FALSE) : $item->body) . '</div>';
  $output .= '</div>';
  return $output;
}