You are here

function theme_views_slideshow_no_display_section in Views Slideshow 6

Same name and namespace in other branches
  1. 5 views_slideshow.module \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.

4 theme calls to theme_views_slideshow_no_display_section()
views-slideshow-single-frame.tpl.php in ./views-slideshow-single-frame.tpl.php
views-slideshow-singleframe.tpl.php in contrib/views_slideshow_singleframe/views-slideshow-singleframe.tpl.php
Views Slideshow: Single Frame
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 55

Code

function theme_views_slideshow_no_display_section($view, $rows, $id, $mode, $teaser = TRUE) {
  $output = '<div id="views_slideshow_teaser_section_' . $id . '" class="views_slideshow_teaser_section">' . "\n";
  if ($mode == VIEWS_SLIDESHOW_MODE_THUMBNAIL_HOVER) {
    foreach ($view->result as $count => $node) {
      $output .= theme('views_slideshow_no_display_teaser', node_view(node_load($node->nid), $teaser, FALSE, FALSE), $id, $count);
    }
  }
  else {

    // Add support for the jQuery Cycle plugin.
    // If we have the jQ module installed, use that to add the Cycle plugin if possible.
    // That allows for version control.
    if (module_exists('jq')) {
      $js = jq_add('cycle');
    }

    // Otherwise, we'll add the version included with this module.
    if (!$js) {
      drupal_add_js(drupal_get_path('module', 'views_slideshow') . '/js/jquery.cycle.all.min.js', 'module');
    }
    foreach ($rows as $count => $item) {
      $output .= theme('views_slideshow_no_display_teaser', $item, $id, $count);
    }
  }
  $output .= "</div><!--close views_slideshow_no_display-->\n\n";
  return $output;
}