You are here

function template_preprocess_views_view_jssor_row in Jssor Slider 8

Prepares variables for views Jssor item templates.

Default template: views-view-jssor-row.html.twig.

Parameters

array $variables: An associative array containing:

  • row: The raw results rows.

File

./jssor.theme.inc, line 196
Preprocessors and helper functions to make theming easier.

Code

function template_preprocess_views_view_jssor_row(&$variables) {
  $item = $variables['row'];
  $options = $variables['options'];
  $variables['caption'] = $item->caption;
  $variables['image'] = $item->image;
  $variables['play_in_transition'] = $options['play_in_transition'];
  $variables['play_out_transition'] = $options['play_out_transition'];
}