function getTemplateName() { if ($this->path == PAGES_PATH) { global $configFile; return $configFile->getDirectParam('DEFAULT_TEMPLATE'); } $param = $this->getConfig('TEMPLATE'); if ($param == 'AS_PARENT' || !$param || empty($param)) { $oParentCat = new PDirCategory($this->getParentPath()); return $oParentCat->getTemplateName(); } return $param; }
function getHeaderText() { $param = $this->getConfig("HEADER_TEXT"); if ($param == 'AS_PARENT' || !$param || empty($param)) { $oParentCat = new PDirCategory($this->getParentPath()); return $oParentCat->getTemplateName(); } return $param; }