You are here

views_slideshow_slider.theme.inc in Views Slideshow Slider 6.3

Same filename and directory in other branches
  1. 7.3 theme/views_slideshow_slider.theme.inc

Theme & preprocess functions for the Views Slideshow: slider module.

File

theme/views_slideshow_slider.theme.inc
View source
<?php

/**
 * @file
 * Theme & preprocess functions for the Views Slideshow: slider module.
 */

/**
 * Create the divs that will be turned into the slider.
 *
 * @ingroup themeable
 */
function template_preprocess_views_slideshow_slider_widget_render(&$vars) {
  jquery_ui_add('ui.slider');
  drupal_add_css(drupal_get_path('module', 'jquery_ui') . '/jquery.ui/themes/base/ui.all.css', 'module', 'all', FALSE);
  drupal_add_js(array(
    'viewsSlideshowSlider' => array(
      '#views_slideshow_slider_main_' . $vars['vss_id'] => $settings,
    ),
  ), 'setting');
  $vars['attributes_array']['id'] = 'views_slideshow_slider_slider_' . $vars['vss_id'];
}

Functions

Namesort descending Description
template_preprocess_views_slideshow_slider_widget_render Create the divs that will be turned into the slider.