: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Parser\Link;
use Nextend\Framework\Asset\Js\Js;
use Nextend\SmartSlider3\Settings;
class ScrollTo implements ParserInterface {
public function __construct() {
Js::addInline('window.n2ScrollSpeed=' . json_encode(intval(Settings::get('smooth-scroll-speed', 400))) . ';');
public function parse($argument, &$attributes) {
$onclick = 'n2ss.scroll(event, "top");';
$onclick = 'n2ss.scroll(event, "bottom");';
$onclick = 'n2ss.scroll(event, "before", this.closest(".n2-ss-slider"));';
$onclick = 'n2ss.scroll(event, "after", this.closest(".n2-ss-slider"));';
$onclick = 'n2ss.scroll(event, "next", this, ".n2-section-smartslider");';
$onclick = 'n2ss.scroll(event, "previous", this, ".n2-section-smartslider");';
if (is_numeric($argument)) {
$onclick = 'n2ss.scroll(event, "element", "#n2-ss-' . $argument . '");';
$onclick = 'n2ss.scroll(event, "element", "' . $argument . '");';
$attributes['onclick'] = $onclick;