function template_preprocess_views_slideshow_pager_field_item in Views Slideshow 8.4
Same name and namespace in other branches
- 8.3 views_slideshow.theme.inc \template_preprocess_views_slideshow_pager_field_item()
- 6.3 views_slideshow.module \template_preprocess_views_slideshow_pager_field_item()
- 7.3 theme/views_slideshow.theme.inc \template_preprocess_views_slideshow_pager_field_item()
Views Slideshow: pager item.
Related topics
File
- ./
views_slideshow.theme.inc, line 274 - 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';
}
}