: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\SmartSlider3\Widget;
use Nextend\Framework\View\Html;
class WidgetPlacementSimple extends WidgetPlacement {
public function add($renderCallback, $stack, $offset = 0) {
'renderCallback' => $renderCallback,
public function render() {
usort($this->items, function ($a, $b) {
if ($a['stack'] == $b['stack']) {
return ($a['stack'] < $b['stack']) ? -1 : 1;
foreach ($this->items as $item) {
if ($item['offset'] != 0) {
$attributes['style'] = '--widget-offset:' . $item['offset'] . 'px;';
$out .= call_user_func($item['renderCallback'], $attributes);
return Html::tag('div', array(
'class' => 'n2-ss-slider-controls n2-ss-slider-controls-' . $this->name