Beispiel #1
0
 /**
  * @return string
  */
 public function generate()
 {
     if (TL_MODE == 'BE') {
         $template = new \BackendTemplate('be_wildcard');
         $template->wildcard = '### ' . utf8_strtoupper($GLOBALS['TL_LANG']['FMD']['bootstrap_navbar'][0]) . ' ###';
         $template->title = $this->name;
         $template->id = $this->id;
         $template->link = $this->name;
         $template->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id;
         return $template->parse();
     }
     return parent::generate();
 }
Beispiel #2
0
 public function generate()
 {
     if (!$this->modalAjax || !$this->isAjax) {
         $GLOBALS['TL_BODY']['bootstrap-modal-' . $this->id] = parent::generate();
         return '';
     }
     return parent::generate();
 }