system/modules/47_CustomModule/library/CustomModule/Frontend/Modules/Footer.php line 30

Open in your IDE?
  1. <?php
  2. /**
  3.  * Studienkreis Tourismus | Custom Module for Contao Open Source CMS
  4.  *
  5.  * Copyright (C) 2017 47GradNord - Agentur für Internetlösungen
  6.  *
  7.  * @license    commercial
  8.  * @author     Holger Neuner
  9.  */
  10. namespace CustomModule\Frontend\Modules;
  11. use Contao\Module;
  12. class Footer extends Module
  13. {
  14.     /**
  15.      * Template
  16.      * @var string
  17.      */
  18.     protected $strTemplate 'mod_Footer';
  19.     /**
  20.      * Display a wildcard in the back end
  21.      *
  22.      * @return string
  23.      */
  24.     public function generate()
  25.     {
  26.         if (TL_MODE == 'BE')
  27.         {
  28.             /** @var \BackendTemplate|object $objTemplate */
  29.             $objTemplate = new \BackendTemplate('be_wildcard');
  30.             $objTemplate->wildcard '### ' utf8_strtoupper($GLOBALS['TL_LANG']['FMD']['47_ModFooter'][0]) . ' ###';
  31.             $objTemplate->title $this->headline;
  32.             $objTemplate->id $this->id;
  33.             $objTemplate->link $this->name;
  34.             $objTemplate->href 'contao/main.php?do=themes&amp;table=tl_module&amp;act=edit&amp;id=' $this->id;
  35.             return $objTemplate->parse();
  36.         }
  37.         return parent::generate();
  38.     }
  39.     /**
  40.      * Generate the module
  41.      */
  42.     protected function compile()
  43.     {
  44.         $this->modFooterTextLeft = \StringUtil::toHtml5($this->modFooterTextLeft);
  45.     }
  46. }