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: Margin.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
use Nextend\Framework\Platform\Platform;
[6] Fix | Delete
use Nextend\Framework\View\Html;
[7] Fix | Delete
[8] Fix | Delete
class Margin {
[9] Fix | Delete
[10] Fix | Delete
private $slider;
[11] Fix | Delete
[12] Fix | Delete
private $margin;
[13] Fix | Delete
[14] Fix | Delete
public function __construct($slider) {
[15] Fix | Delete
[16] Fix | Delete
$this->slider = $slider;
[17] Fix | Delete
[18] Fix | Delete
$this->margin = explode('|*|', $slider->params->get('margin', '0|*|0|*|0|*|0'));
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
public function renderSlider($sliderHTML) {
[22] Fix | Delete
if (!Platform::isAdmin() && count($this->margin) >= 4) {
[23] Fix | Delete
array_splice($this->margin, 4);
[24] Fix | Delete
if ($this->margin[0] != 0 || $this->margin[1] != 0 || $this->margin[2] != 0 || $this->margin[3] != 0) {
[25] Fix | Delete
$sliderHTML = Html::tag("div", array(
[26] Fix | Delete
"class" => "n2-ss-margin",
[27] Fix | Delete
"encode" => false,
[28] Fix | Delete
"style" => "margin: " . implode('px ', $this->margin) . "px;"
[29] Fix | Delete
), $sliderHTML);
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
return $sliderHTML;
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function