You are here

function theme_views_slideshow_controls_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_controls_widget_render()

Views Slideshow: Controls.

@inggroup themeable

File

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

Code

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

  // Add javascript settings for the controls type.
  $js_vars = array(
    'viewsSlideshowControls' => 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');
  $output = '';
  if (empty($settings['hide_on_single_slide']) || count($rows) > $view->style_options['views_slideshow_cycle']['items_per_slide']) {
    $output = theme(views_theme_functions($settings['type'], $view, $view->display[$view->current_display]), $vss_id, $view, $settings, $location, $rows);
  }
  return $output;
}