Ejemplo n.º 1
0
 /**
  * @return string
  */
 public function getTemplateFileName()
 {
     $fileName = $this->checkTemplateFileExists();
     return $fileName ? $fileName : parent::getTemplateFileName();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }