$num_divs, 'id_prefix' => '#views_slideshow_menu_main_', 'div_prefix' => '#views_slideshow_menu_div_', 'id' => $vars['id'], ), $options['views_slideshow_menu'] ); drupal_add_js(array('viewsSlideshowMenu' => array('#views_slideshow_menu_main_'. $vars['id'] => $settings)), 'setting'); } /** * These are the slideshow elements themselves; not actually displayed, but used to give the html to the main element. */ function theme_views_slideshow_menu_no_display_section($view, $rows, $id, $mode, $teaser = TRUE) { // 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')) { $loaded_plugins = jq_plugins(); if (!empty($loaded_plugins['cycle'])) { $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'); } $output = '
\n\n"; return $output; } /** * The html that will be placed into the element in its turn during its frame. */ function theme_views_slideshow_menu_no_display_teaser($item, $id, $count) { $class = 'views_slideshow_menu_slide views_slideshow_slide'; if ($count) { $class .= ' views_slideshow_menu_hidden'; } if ($count % 2) { $class .= ' views-row-even'; } else { $class .= ' views-row-odd'; } $output = ' ' . "\n\n"; return $output; }