You are here

function template_preprocess_views_slideshow_pager_field_item in Views Slideshow 8.3

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

Views Slideshow: pager item.

File

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

Code

function template_preprocess_views_slideshow_pager_field_item(&$vars) {
  $vars['attributes']['class'][] = 'views_slideshow_pager_field_item';
  $vars['attributes']['class'][] = $vars['count'] % 2 ? 'views-row-even' : 'views-row-odd';
  if ($vars['count'] == 0) {
    $vars['attributes']['class'][] = 'views-row-first';
  }
  elseif ($vars['count'] == $vars['length'] - 1) {
    $vars['attributes']['class'][] = 'views-row-last';
  }
}