You are here

function theme_views_slideshow_breakout_teasers in Views Slideshow 6

Same name and namespace in other branches
  1. 5 views_slideshow.module \theme_views_slideshow_breakout_teasers()

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

2 theme calls to theme_views_slideshow_breakout_teasers()
views-slideshow-thumbnail-hover.tpl.php in ./views-slideshow-thumbnail-hover.tpl.php
views-slideshow-thumbnailhover.tpl.php in contrib/views_slideshow_thumbnailhover/views-slideshow-thumbnailhover.tpl.php

File

./views_slideshow.theme.inc, line 97

Code

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