Пример #1
0
 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;
 }
Пример #2
0
 function getHeaderText()
 {
     $param = $this->getConfig("HEADER_TEXT");
     if ($param == 'AS_PARENT' || !$param || empty($param)) {
         $oParentCat = new PDirCategory($this->getParentPath());
         return $oParentCat->getTemplateName();
     }
     return $param;
 }