You are here

function elevatezoomplus_preprocess_slick in ElevateZoom Plus 7

Same name and namespace in other branches
  1. 8 elevatezoomplus.module \elevatezoomplus_preprocess_slick()

Overrides variables for theme_slick().

File

./elevatezoomplus.module, line 132
Provides ElevateZoomPlus integration.

Code

function elevatezoomplus_preprocess_slick(&$variables) {
  $settings = $variables['settings'];
  if (elevatezoomplus()
    ->isApplicable($settings) && isset($settings['display']) && $settings['display'] == 'main') {
    $variables['attributes_array']['data-initial-zoom'] = isset($variables['js']['initialSlide']) ? $variables['js']['initialSlide'] : 0;
  }
}