Same name and namespace in other branches
- 5.0.x modules/views_slideshow_cycle/views_slideshow_cycle.theme.inc \template_preprocess_views_slideshow_cycle_main_frame_row()
- 8.x-3.x modules/views_slideshow_cycle/views_slideshow_cycle.theme.inc \template_preprocess_views_slideshow_cycle_main_frame_row()
- 8.x-4.x modules/views_slideshow_cycle/views_slideshow_cycle.theme.inc \template_preprocess_views_slideshow_cycle_main_frame_row()
Views Slideshow slideshow rows.
Paramètres
array $vars: Theme variables.
Sujets associés
1 call to template_preprocess_views_slideshow_cycle_main_frame_row()
- _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame_row dans contrib/
views_slideshow_cycle/ theme/ views_slideshow_cycle.theme.inc - Backwards compatibility wrapper.
Fichier
-
contrib/
views_slideshow_cycle/ theme/ views_slideshow_cycle.theme.inc, line 193
Code
function template_preprocess_views_slideshow_cycle_main_frame_row(&$vars) {
$current = $vars['count'] + 1;
$vars['classes_array'][] = 'views_slideshow_cycle_slide';
$vars['classes_array'][] = 'views_slideshow_slide views-row-' . $current;
if ($vars['count']) {
$vars['classes_array'][] = 'views_slideshow_cycle_hidden';
if ($current == $vars['last_slide']) {
$vars['classes_array'][] = 'views-row-last';
}
}
else {
$vars['classes_array'][] = 'views-row-first';
}
$vars['classes_array'][] = $vars['count'] % 2 ? 'views-row-even' : 'views-row-odd';
$vars['rendered_items'] = '';
foreach ($vars['items'] as $item_count => $item) {
$vars['rendered_items'] .= theme(views_theme_functions('views_slideshow_cycle_main_frame_row_item', $vars['view'], $vars['view']->display[$vars['view']->current_display]), array(
'item' => $item,
'item_count' => $item_count,
'count' => $vars['count'],
'view' => $vars['view'],
'length' => count($vars['items']),
));
}
}