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/SmartSli.../SlideBui...
File: BuilderComponentSlide.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Nextend\SmartSlider3\SlideBuilder;
[2] Fix | Delete
[3] Fix | Delete
class BuilderComponentSlide extends AbstractBuilderComponent {
[4] Fix | Delete
[5] Fix | Delete
protected $data = array(
[6] Fix | Delete
'title' => '',
[7] Fix | Delete
'published' => 1,
[8] Fix | Delete
'first' => 0,
[9] Fix | Delete
'description' => '',
[10] Fix | Delete
'thumbnail' => '',
[11] Fix | Delete
'ordering' => 0,
[12] Fix | Delete
'generator_id' => 0,
[13] Fix | Delete
"static-slide" => 0,
[14] Fix | Delete
"backgroundColor" => "ffffff00",
[15] Fix | Delete
"backgroundImage" => "",
[16] Fix | Delete
"backgroundImageOpacity" => 100,
[17] Fix | Delete
"backgroundAlt" => "",
[18] Fix | Delete
"backgroundTitle" => "",
[19] Fix | Delete
"backgroundMode" => "default",
[20] Fix | Delete
"backgroundVideoMp4" => "",
[21] Fix | Delete
"backgroundVideoOpacity" => 100,
[22] Fix | Delete
"backgroundVideoLoop" => 1,
[23] Fix | Delete
"backgroundVideoReset" => 1,
[24] Fix | Delete
"backgroundVideoMode" => "fill",
[25] Fix | Delete
"href" => "",
[26] Fix | Delete
"href-target" => "",
[27] Fix | Delete
"slide-duration" => 0,
[28] Fix | Delete
"desktopportraitpadding" => '10|*|10|*|10|*|10'
[29] Fix | Delete
);
[30] Fix | Delete
[31] Fix | Delete
/** @var AbstractBuilderComponent[] */
[32] Fix | Delete
private $layers = array();
[33] Fix | Delete
[34] Fix | Delete
/** @var BuilderComponentContent */
[35] Fix | Delete
public $content;
[36] Fix | Delete
[37] Fix | Delete
public function __construct($properties = array()) {
[38] Fix | Delete
foreach ($properties as $k => $v) {
[39] Fix | Delete
$this->data[$k] = $v;
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
$this->content = new BuilderComponentContent($this);
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* @param $layer AbstractBuilderComponent
[47] Fix | Delete
*/
[48] Fix | Delete
public function add($layer) {
[49] Fix | Delete
array_unshift($this->layers, $layer);
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
public function getData() {
[53] Fix | Delete
$this->data['layers'] = array();
[54] Fix | Delete
foreach ($this->layers as $layer) {
[55] Fix | Delete
$this->data['layers'][] = $layer->getData();
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
return parent::getData();
[59] Fix | Delete
}
[60] Fix | Delete
[61] Fix | Delete
public function getLayersData() {
[62] Fix | Delete
$data = $this->getData();
[63] Fix | Delete
[64] Fix | Delete
return $data['layers'];
[65] Fix | Delete
}
[66] Fix | Delete
}
[67] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function