You are here

function theme_views_slideshow_no_display_section in Views Slideshow 5

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

these are the slideshow elements themselves; not actually displayed, but used to give the html to the main element

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

File

./views_slideshow.module, line 387

Code

function theme_views_slideshow_no_display_section($view, $nodes, $type, $items, $div, $mode, $teaser = TRUE) {
  $output .= '<div id="views_slideshow_teaser_section_' . $div . '" class="views_slideshow_teaser_section">' . "\n";
  if ($mode == VIEWS_SLIDESHOW_MODE_THUMBNAIL_HOVER) {
    foreach ($nodes as $count => $node) {
      $output .= theme('views_slideshow_no_display_teaser', node_view(node_load($node->nid), $teaser, FALSE, FALSE), $div, $count);
    }
  }
  else {
    foreach ($items as $count => $item) {
      $output .= theme('views_slideshow_no_display_teaser', $item, $div, $count);
    }
  }
  $output .= "</div><!--close views_slideshow_no_display-->\n\n";
  return $output;
}