protected function getEntryPointTemplate() { if($this->isFull) { return $this->templateRootDirectory() . '/evrika-calendar/event.tpl'; } return parent::getEntryPointTemplate(); }
/** * @return string */ protected function getEntryPointTemplate() { switch (true) { case $this->isFull : return $this->_params['ModuleName'].'/'.$this->_params['Block'].'/full/block_view.tpl'; case $this->isSeo : return $this->_params['ModuleName'].'/'.$this->_params['Block'].'/seo/block_view.tpl'; case $this->isHomepage : return $this->_params['ModuleName'].'/'.$this->_params['Block'].'/list-home/block_view.tpl'; default : return parent::getEntryPointTemplate(); } }