/**
  * Extend the parent method
  * @return string
  */
 public function generate()
 {
     if ($this->foundation_flexvideo == '') {
         return '';
     }
     return parent::generate();
 }
Exemplo n.º 2
0
 /**
  * Extend the parent method
  * @return string
  */
 public function generate()
 {
     if ($this->foundation_tabs_content == '') {
         $this->Template->headline = '';
         $this->headline = '';
         $this->hl = '';
         return '';
     }
     return parent::generate();
 }
Exemplo n.º 3
0
 /**
  * Display a wildcard in the back end
  * @return string
  */
 public function generate()
 {
     if (TL_MODE == 'BE') {
         $this->strTemplate = 'be_wildcard';
         $this->Template = new \BackendTemplate($this->strTemplate);
         $class = deserialize($this->cssID);
         $this->Template->wildcard = '### FOUNDATION ROW START ###';
         return $this->Template->parse();
     }
     return parent::generate();
 }
 /**
  * Display a wildcard in the back end
  * @return string
  */
 public function generate()
 {
     if (TL_MODE == 'BE') {
         $this->strTemplate = 'be_wildcard';
         $this->Template = new \BackendTemplate($this->strTemplate);
         $this->Template->wildcard = '### ORBIT SLIDER END ###';
         $this->Template->title = $this->headline;
         return $this->Template->parse();
     }
     return parent::generate();
 }
 /**
  * Return if the image does not exist
  * @return string
  */
 public function generate()
 {
     if ($this->singleSRC == '') {
         return '';
     }
     $objFile = \FilesModel::findByUuid($this->singleSRC);
     if ($objFile === null) {
         if (!\Validator::isUuid($this->singleSRC)) {
             return '<p class="error">' . $GLOBALS['TL_LANG']['ERR']['version2format'] . '</p>';
         }
         return '';
     }
     if (!is_file(TL_ROOT . '/' . $objFile->path)) {
         return '';
     }
     $this->singleSRC = $objFile->path;
     if (TL_MODE == 'BE') {
         $this->strTemplate = 'ce_image';
     }
     return parent::generate();
 }