wp_back/wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Slider/Feature/BlockRightClick.php
2024-05-20 15:37:46 +03:00

24 lines
424 B
PHP

<?php
namespace Nextend\SmartSlider3\Slider\Feature;
class BlockRightClick {
private $slider;
public $isEnabled = 0;
public function __construct($slider) {
$this->slider = $slider;
$this->isEnabled = intval($slider->params->get('blockrightclick', 0));
}
public function makeJavaScriptProperties(&$properties) {
$properties['blockrightclick'] = $this->isEnabled;
}
}