vendor/heimrichhannot/contao-newselement/modules/ModuleNewsElement.php line 17

Open in your IDE?
  1. <?php
  2. namespace HeimrichHannot\Newselement;
  3. class ModuleNewsElement extends \ModuleNews
  4. {
  5.     protected $objArticle;
  6.     protected $blnAddArchive;
  7.     protected $news_template;
  8.     protected $imgSize;
  9.     protected $strTemplate 'mod_newselement';
  10.     public function __construct($objArticle$objThis$blnAddArchive=false)
  11.     {
  12.         parent::__construct($objArticle);
  13.         $this->objArticle $objArticle;
  14.         $this->blnAddArchive $blnAddArchive;
  15.         $this->news_template $objThis->news_template;
  16.         $this->objArticle->cssClass = (strlen($this->objNews->cssClass) ? $this->objNews->cssClass ' ' .$objThis->cssID[1] : $objThis->cssID[1]);
  17.         $this->objArticle->cssID =  $objThis->cssID[0];
  18.         $this->objArticle->size $objThis->size;
  19.         $this->imgSize $objThis->size;
  20.         $this->news_metaFields $objThis->news_metaFields;
  21.         // required by Module::generate()
  22.         $this->type 'newselement';
  23.         $this->headline $objThis->headline;
  24.         $this->hl $objThis->hl;
  25.     }
  26.     public function generate()
  27.     {
  28. //        $this->Template = new \FrontendTemplate($this->strTemplate);
  29. //
  30. //        $this->compile();
  31.         return parent::generate();
  32.     }
  33.     protected function compile()
  34.     {
  35.         $this->Template->article parent::parseArticle($this->objArticle);
  36.     }
  37. }