slider = $slider; $this->mousewheel = intval($slider->params->get('controlsScroll', 0)); $this->keyboard = intval($slider->params->get('controlsKeyboard', 1)); $this->blockCarouselInteraction = intval($slider->params->get('controlsBlockCarouselInteraction', 1)); $this->touch = $slider->params->get('controlsTouch', 'horizontal'); if ($slider->getSlidesCount() < 2) { $this->touch = 0; } } public function makeJavaScriptProperties(&$properties) { $properties['controls'] = array( 'mousewheel' => $this->mousewheel, 'touch' => $this->touch, 'keyboard' => $this->keyboard, 'blockCarouselInteraction' => $this->blockCarouselInteraction ); } }