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/Framewor.../Parser/Link
File: ScrollTo.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Nextend\Framework\Parser\Link;
[2] Fix | Delete
[3] Fix | Delete
use Nextend\Framework\Asset\Js\Js;
[4] Fix | Delete
use Nextend\SmartSlider3\Settings;
[5] Fix | Delete
[6] Fix | Delete
class ScrollTo implements ParserInterface {
[7] Fix | Delete
[8] Fix | Delete
public function __construct() {
[9] Fix | Delete
[10] Fix | Delete
Js::addInline('window.n2ScrollSpeed=' . json_encode(intval(Settings::get('smooth-scroll-speed', 400))) . ';');
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
public function parse($argument, &$attributes) {
[14] Fix | Delete
[15] Fix | Delete
switch ($argument) {
[16] Fix | Delete
case 'top':
[17] Fix | Delete
$onclick = 'n2ss.scroll(event, "top");';
[18] Fix | Delete
break;
[19] Fix | Delete
case 'bottom':
[20] Fix | Delete
$onclick = 'n2ss.scroll(event, "bottom");';
[21] Fix | Delete
break;
[22] Fix | Delete
case 'beforeSlider':
[23] Fix | Delete
$onclick = 'n2ss.scroll(event, "before", this.closest(".n2-ss-slider"));';
[24] Fix | Delete
break;
[25] Fix | Delete
case 'afterSlider':
[26] Fix | Delete
$onclick = 'n2ss.scroll(event, "after", this.closest(".n2-ss-slider"));';
[27] Fix | Delete
break;
[28] Fix | Delete
case 'nextSlider':
[29] Fix | Delete
$onclick = 'n2ss.scroll(event, "next", this, ".n2-section-smartslider");';
[30] Fix | Delete
break;
[31] Fix | Delete
case 'previousSlider':
[32] Fix | Delete
$onclick = 'n2ss.scroll(event, "previous", this, ".n2-section-smartslider");';
[33] Fix | Delete
break;
[34] Fix | Delete
default:
[35] Fix | Delete
if (is_numeric($argument)) {
[36] Fix | Delete
$onclick = 'n2ss.scroll(event, "element", "#n2-ss-' . $argument . '");';
[37] Fix | Delete
} else {
[38] Fix | Delete
$onclick = 'n2ss.scroll(event, "element", "' . $argument . '");';
[39] Fix | Delete
}
[40] Fix | Delete
break;
[41] Fix | Delete
}
[42] Fix | Delete
$attributes['onclick'] = $onclick;
[43] Fix | Delete
[44] Fix | Delete
return '#';
[45] Fix | Delete
}
[46] Fix | Delete
}
[47] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function