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