| Server IP : 104.21.84.107 / Your IP : 104.23.243.197 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/reap/libraries/smartslider3/src/SmartSlider3/SlideBuilder/ |
Upload File : |
<?php
namespace Nextend\SmartSlider3\SlideBuilder;
class BuilderComponentSlide extends AbstractBuilderComponent {
protected $data = array(
'title' => '',
'published' => 1,
'first' => 0,
'description' => '',
'thumbnail' => '',
'ordering' => 0,
'generator_id' => 0,
"static-slide" => 0,
"backgroundColor" => "ffffff00",
"backgroundImage" => "",
"backgroundImageOpacity" => 100,
"backgroundAlt" => "",
"backgroundTitle" => "",
"backgroundMode" => "default",
"backgroundVideoMp4" => "",
"backgroundVideoOpacity" => 100,
"backgroundVideoLoop" => 1,
"backgroundVideoReset" => 1,
"backgroundVideoMode" => "fill",
"href" => "",
"href-target" => "",
"slide-duration" => 0,
"desktopportraitpadding" => '10|*|10|*|10|*|10'
);
/** @var AbstractBuilderComponent[] */
private $layers = array();
/** @var BuilderComponentContent */
public $content;
public function __construct($properties = array()) {
foreach ($properties as $k => $v) {
$this->data[$k] = $v;
}
$this->content = new BuilderComponentContent($this);
}
/**
* @param $layer AbstractBuilderComponent
*/
public function add($layer) {
array_unshift($this->layers, $layer);
}
public function getData() {
$this->data['layers'] = array();
foreach ($this->layers as $layer) {
$this->data['layers'][] = $layer->getData();
}
return parent::getData();
}
public function getLayersData() {
$data = $this->getData();
return $data['layers'];
}
}