示例#1
0
 /**
  * @return string
  */
 public function getTemplateFileName()
 {
     $fileName = $this->checkTemplateFileExists();
     return $fileName ? $fileName : parent::getTemplateFileName();
 }
示例#2
0
 function getTemplateFileName()
 {
     if ($this->_id) {
         $templateFile = "CRM/Event/Page/{$this->_id}/EventInfo.tpl";
         $template =& CRM_Core_Page::getTemplate();
         if ($template->template_exists($templateFile)) {
             return $templateFile;
         }
     }
     return parent::getTemplateFileName();
 }
示例#3
0
 function getTemplateFileName()
 {
     if ($this->_gid) {
         $templateFile = "CRM/Profile/Page/{$this->_gid}/Listings.tpl";
         $template =& CRM_Core_Page::getTemplate();
         if ($template->template_exists($templateFile)) {
             return $templateFile;
         }
     }
     return parent::getTemplateFileName();
 }
示例#4
0
 function getTemplateFileName()
 {
     if ($this->_gid) {
         $templateFile = "CRM/Profile/Page/{$this->_gid}/Listings.tpl";
         $template =& CRM_Core_Page::getTemplate();
         if ($template->template_exists($templateFile)) {
             return $templateFile;
         }
         // lets see if we have customized by name
         $ufGroupName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $this->_gid, 'name');
         if ($ufGroupName) {
             $templateFile = "CRM/Profile/Page/{$ufGroupName}/Listings.tpl";
             if ($template->template_exists($templateFile)) {
                 return $templateFile;
             }
         }
     }
     return parent::getTemplateFileName();
 }