strTemplate = 'be_wildcard'; /** @var \BackendTemplate|object $objTemplate */ $objTemplate = new \BackendTemplate($this->strTemplate); $this->Template = $objTemplate; } if ($this->singleSRC) { $objFile = \FilesModel::findByUuid($this->singleSRC); if ($objFile !== null && is_file(TL_ROOT . '/' . $objFile->path)) { $this->singleSRC = $objFile->path; $this->addImageToTemplate($this->Template, array('singleSRC'=>$this->singleSRC, 'size'=>$this->size)); } } } }