singleSRC == '') { return ''; } $objFile = \FilesModel::findByUuid($this->singleSRC); if ($objFile === null) { if (!\Validator::isUuid($this->singleSRC)) { return '

'.$GLOBALS['TL_LANG']['ERR']['version2format'].'

'; } return ''; } if (!is_file(TL_ROOT . '/' . $objFile->path)) { return ''; } $this->singleSRC = $objFile->path; return parent::generate(); } /** * Generate the content element */ protected function compile() { if (TL_MODE == 'BE') { $this->strTemplate = 'ce_image'; /** @var \BackendTemplate|object $objTemplate */ $objTemplate = new \BackendTemplate($this->strTemplate); $this->Template = $objTemplate; } $GLOBALS['TL_CSS'][] = '/system/modules/eSM_slick/assets/css/slick-wallpaper.css'; $this->addImageToTemplate($this->Template, $this->arrData); $this->Template->text = nl2br($this->eSM_slick_text); } }