You are here

function template_preprocess_views_slideshow_pager_field_item in Views Slideshow 7.3

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

Views Slideshow: pager item.

Parameters

array $vars: Theme variables.

Related topics

1 call to template_preprocess_views_slideshow_pager_field_item()
_views_slideshow_preprocess_views_slideshow_pager_field_item in theme/views_slideshow.theme.inc
Backwards compatibility wrapper.

File

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

Code

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