You are here

function template_preprocess_views_slideshow_controls_text in Views Slideshow 8.3

Same name and namespace in other branches
  1. 8.4 views_slideshow.theme.inc \template_preprocess_views_slideshow_controls_text()
  2. 6.3 views_slideshow.module \template_preprocess_views_slideshow_controls_text()
  3. 7.3 theme/views_slideshow.theme.inc \template_preprocess_views_slideshow_controls_text()

The slideshow controls.

File

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

Code

function template_preprocess_views_slideshow_controls_text(&$vars) {
  $vars['#attached']['library'][] = 'views_slideshow/controls_text';
  $vars['attributes']['class'][] = 'views_slideshow_controls_text';
  $vars['rendered_control_previous'] = array(
    '#theme' => $vars['view']
      ->buildThemeFunctions('views_slideshow_controls_text_previous'),
    '#vss_id' => $vars['vss_id'],
    '#view' => $vars['view'],
    '#settings' => $vars['settings'],
  );
  $vars['rendered_control_pause'] = array(
    '#theme' => $vars['view']
      ->buildThemeFunctions('views_slideshow_controls_text_pause'),
    '#vss_id' => $vars['vss_id'],
    '#view' => $vars['view'],
    '#settings' => $vars['settings'],
  );
  $vars['rendered_control_next'] = array(
    '#theme' => $vars['view']
      ->buildThemeFunctions('views_slideshow_controls_text_next'),
    '#vss_id' => $vars['vss_id'],
    '#view' => $vars['view'],
    '#settings' => $vars['settings'],
  );
}