/**
  * Display a wildcard in the back end
  * @return string
  */
 public function generate()
 {
     if (TL_MODE == 'BE') {
         $this->Template = new \BackendTemplate('be_wildcard');
         $this->Template->wildcard = '### ONE-PAGE-WEBSITE :: NAVIGATION ###' . "<br>" . $GLOBALS['TL_LANG']['FMD'][$this->type][0];
         $this->Template->title = $this->headline;
         return $this->Template->parse();
     }
     // if no id is given, generate one
     $arrCssID = deserialize($this->cssID);
     if (strlen($arrCssID[0]) < 1) {
         $arrCssID[0] = 'onepagewebsitenavigation_' . $this->id;
         $this->cssID = $arrCssID;
     }
     return parent::generate();
 }
Пример #2
0
 /**
  * Display a wildcard in the back end
  *
  * @param boolean
  * @return string
  */
 public function generate()
 {
     if (TL_MODE == 'BE') {
         // --- create BE template for mmenu module
         $objTemplate = new \BackendTemplate('be_wildcard');
         $objTemplate->wildcard = '### ' . utf8_strtoupper($GLOBALS['TL_LANG']['FMD']['mmenu'][0]) . ' ###';
         $objTemplate->title = $this->headline;
         $objTemplate->id = $this->id;
         $objTemplate->link = $this->name;
         $objTemplate->href = 'contao/main.php?do=themes&amp;table=tl_module&amp;act=edit&amp;id=' . $this->id;
         return $objTemplate->parse();
     }
     // replace default (HTML) template with chosen one
     if ($this->dk_mmenuHtmlTpl) {
         $this->strTemplate = $this->dk_mmenuHtmlTpl;
     }
     // replace default (JS) template with chosen one
     if ($this->dk_mmenuJsTpl) {
         $this->strTemplateJs = $this->dk_mmenuJsTpl;
     }
     return parent::generate();
 }