You are here

function theme_views_slideshow_pager_widget_render in Views Slideshow 6.3

Same name and namespace in other branches
  1. 7.3 theme/views_slideshow.theme.inc \theme_views_slideshow_pager_widget_render()

Views Slideshow: pager.

File

theme/views_slideshow.theme.inc, line 198
The theme system, which controls the output of views slideshow.

Code

function theme_views_slideshow_pager_widget_render($vss_id, $view, $settings, $location, $rows) {

  // Add javascript settings for the pager type.
  $js_vars = array(
    'viewsSlideshowPager' => array(
      $vss_id => array(
        $location => array(
          'type' => preg_replace_callback('/_(.?)/', function ($m) {
            return strtoupper($m[1]);
          }, $vars['settings']['type']),
        ),
      ),
    ),
  );
  drupal_add_js($js_vars, 'setting');

  // Create some attributes
  $attributes['class'] = 'widget_pager widget_pager_' . $location;
  $attributes['id'] = 'widget_pager_' . $location . '_' . $vss_id;
  return theme(views_theme_functions($settings['type'], $view, $view->display[$view->current_display]), $vss_id, $view, $settings, $location, $attributes);
}