/** * Get relevant path to template * * @return string */ public function getTemplate() { if (!$this->getData('enabled')) { return ''; } $template = parent::getTemplate(); if (!$template) { $template = $this->_getData('template'); } return $template; }