PATH:
home
/
lab2454c
/
incforce.com
/
wp-content
/
plugins
/
smart-slider-3
/
Nextend
/
SmartSlider3
/
Slider
/
Feature
<?php namespace Nextend\SmartSlider3\Slider\Feature; class LayerMode { private $slider; public $playOnce = 0; public $playFirstLayer = 1; public $mode = 'skippable'; public $inAnimation = 'mainInEnd'; public function __construct($slider) { $this->slider = $slider; $this->playOnce = intval($slider->params->get('playonce', 0)); $this->playFirstLayer = intval($slider->params->get('playfirstlayer', 1)); switch ($slider->params->get('layer-animation-play-mode', 'skippable')) { case 'forced': $this->mode = 'forced'; break; default: $this->mode = 'skippable'; } switch ($slider->params->get('layer-animation-play-in', 'end')) { case 'end': $this->inAnimation = 'mainInEnd'; break; default: $this->inAnimation = 'mainInStart'; } } public function makeJavaScriptProperties(&$properties) { $params = $this->slider->params; $properties['perspective'] = max(0, intval($params->get('perspective', 1500))); $properties['layerMode'] = array( 'playOnce' => $this->playOnce, 'playFirstLayer' => $this->playFirstLayer, 'mode' => $this->mode, 'inAnimation' => $this->inAnimation ); } }
[-] Align.php
[edit]
[-] Focus.php
[edit]
[+]
..
[-] BlockRightClick.php
[edit]
[-] SlideBackground.php
[edit]
[-] Responsive.php
[edit]
[-] MaintainSession.php
[edit]
[-] LazyLoad.php
[edit]
[-] Autoplay.php
[edit]
[-] PostBackgroundAnimation.php
[edit]
[-] Optimize.php
[edit]
[-] Controls.php
[edit]
[-] TranslateUrl.php
[edit]
[-] Margin.php
[edit]
[-] LayerMode.php
[edit]