You are here

function theme_views_slideshow_breakout_teasers in Views Slideshow 5

Same name and namespace in other branches
  1. 6 views_slideshow.theme.inc \theme_views_slideshow_breakout_teasers()

these are teasers that may be pointed at with a mouse to change the element directly

1 theme call to theme_views_slideshow_breakout_teasers()
theme_views_slideshow_slideshow in ./views_slideshow.module
Display the slideshow items in a div w/ jquery

File

./views_slideshow.module, line 417

Code

function theme_views_slideshow_breakout_teasers($view, $nodes, $type, $items, $div) {
  $output .= '<div id="views_slideshow_breakout_teasers_' . $div . '" class="views_slideshow_breakout_teasers">' . "\n";
  $js = "\$(document).ready(function() {\n";
  foreach ($items as $count => $item) {
    $output .= theme('views_slideshow_breakout_teaser', $item, $div, $count);
    $js .= theme('views_slideshow_breakout_teaser_js', $div, $count);
  }
  $js .= "})\n";
  drupal_add_js($js, 'inline');
  $output .= "</div><!--close views_slideshow_breakout_teasers-->\n\n";
  return $output;
}