You are here

function template_preprocess_views_slideshow_slide_counter in Views Slideshow 8.4

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

Views Slideshow: slide counter.

Related topics

File

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

Code

function template_preprocess_views_slideshow_slide_counter(&$vars) {
  $vars['attributes']['class'][] = 'views_slideshow_slide_counter';
  $vars['slide_count'] = count($vars['rows']);
}