: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\SmartSlider3\Slider\Feature;
use Nextend\Framework\View\Html;
public $align = 'normal';
public function __construct($slider) {
$this->align = $slider->params->get('align', 'normal');
public function renderSlider($sliderHTML, $maxWidth) {
"id" => $this->slider->elementId . '-align',
"class" => "n2-ss-align",
$htmlOptionsPadding = array(
if (!$this->slider->features->responsive->scaleUp && $this->align != 'normal') {
$width = $this->slider->assets->sizes['width'];
$htmlOptions["style"] = "float: {$this->align}; width: {$width}px; max-width:100%;";
$htmlOptions["style"] = "margin: 0 auto; max-width: {$maxWidth}px;";
$sliderHTML = Html::tag("div", $htmlOptions, Html::tag("div", $htmlOptionsPadding, $sliderHTML));
if ($this->slider->params->get('clear-both-after', 1)) {
$sliderHTML .= Html::tag("div", array("class" => "n2_clear"), "");
public function makeJavaScriptProperties(&$properties) {
$properties['align'] = $this->align;
$properties['isDelayed'] = intval($this->slider->params->get('is-delayed', 0));