Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/smart-sl.../Nextend/SmartSli.../Slider/Feature
File: LayerMode.php
<?php
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
namespace Nextend\SmartSlider3\Slider\Feature;
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
class LayerMode {
[6] Fix | Delete
[7] Fix | Delete
private $slider;
[8] Fix | Delete
[9] Fix | Delete
public $playOnce = 0;
[10] Fix | Delete
[11] Fix | Delete
public $playFirstLayer = 1;
[12] Fix | Delete
[13] Fix | Delete
public $mode = 'skippable';
[14] Fix | Delete
[15] Fix | Delete
public $inAnimation = 'mainInEnd';
[16] Fix | Delete
[17] Fix | Delete
public function __construct($slider) {
[18] Fix | Delete
[19] Fix | Delete
$this->slider = $slider;
[20] Fix | Delete
[21] Fix | Delete
$this->playOnce = intval($slider->params->get('playonce', 0));
[22] Fix | Delete
[23] Fix | Delete
$this->playFirstLayer = intval($slider->params->get('playfirstlayer', 1));
[24] Fix | Delete
[25] Fix | Delete
switch ($slider->params->get('layer-animation-play-mode', 'skippable')) {
[26] Fix | Delete
case 'forced':
[27] Fix | Delete
$this->mode = 'forced';
[28] Fix | Delete
break;
[29] Fix | Delete
default:
[30] Fix | Delete
$this->mode = 'skippable';
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
switch ($slider->params->get('layer-animation-play-in', 'end')) {
[34] Fix | Delete
case 'end':
[35] Fix | Delete
$this->inAnimation = 'mainInEnd';
[36] Fix | Delete
break;
[37] Fix | Delete
default:
[38] Fix | Delete
$this->inAnimation = 'mainInStart';
[39] Fix | Delete
}
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
public function makeJavaScriptProperties(&$properties) {
[43] Fix | Delete
$params = $this->slider->params;
[44] Fix | Delete
$properties['perspective'] = max(0, intval($params->get('perspective', 1500)));
[45] Fix | Delete
[46] Fix | Delete
$properties['layerMode'] = array(
[47] Fix | Delete
'playOnce' => $this->playOnce,
[48] Fix | Delete
'playFirstLayer' => $this->playFirstLayer,
[49] Fix | Delete
'mode' => $this->mode,
[50] Fix | Delete
'inAnimation' => $this->inAnimation
[51] Fix | Delete
);
[52] Fix | Delete
}
[53] Fix | Delete
}
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function