: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\SmartSlider3\Slider\Feature;
use Nextend\Framework\Platform\Platform;
use Nextend\Framework\View\Html;
public function __construct($slider) {
$this->margin = explode('|*|', $slider->params->get('margin', '0|*|0|*|0|*|0'));
public function renderSlider($sliderHTML) {
if (!Platform::isAdmin() && count($this->margin) >= 4) {
array_splice($this->margin, 4);
if ($this->margin[0] != 0 || $this->margin[1] != 0 || $this->margin[2] != 0 || $this->margin[3] != 0) {
$sliderHTML = Html::tag("div", array(
"class" => "n2-ss-margin",
"style" => "margin: " . implode('px ', $this->margin) . "px;"