/** * * init by another slide */ public function initBySlide(RevSliderSlide $slide) { $this->id = "template"; $this->templateID = $slide->getID(); $this->sliderID = $slide->getSliderID(); $this->slideOrder = $slide->getOrder(); $this->imageUrl = $slide->getImageUrl(); $this->imageID = $slide->getImageID(); $this->imageThumb = $slide->getThumbUrl(); $this->imageFilepath = $slide->getImageFilepath(); $this->imageFilename = $slide->getImageFilename(); $this->params = $slide->getParams(); $this->arrLayers = $slide->getLayers(); $this->settings = $slide->getSettings(); $this->arrChildren = $slide->getArrChildrenPure(); }