}
$this->_isContactActivityProfile = CRM_Core_BAO_UFField::checkContactActivityProfileType($this->_gid);
- //get values for captch and dupe update.
+ //get values for ufGroupName, captch and dupe update.
+ $this->assign('ufGroupName', 'unknown'); // override later (if possible)
if ($this->_gid) {
$dao = new CRM_Core_DAO_UFGroup();
$dao->id = $this->_gid;
if ($dao->find(TRUE)) {
$this->_isUpdateDupe = $dao->is_update_dupe;
$this->_isAddCaptcha = $dao->add_captcha;
+ if (!empty($dao->name)) {
+ $this->assign('ufGroupName', $dao->name);
+ }
}
$dao->free();
}
}
$name = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $this->_gid, 'name');
+ $this->assign('ufGroupName', $name);
if (strtolower($name) == 'summary_overlay') {
$template->assign('overlayProfile', TRUE);
$this->preProcess();
$this->assign('recentlyViewed', FALSE);
+ $this->assign('ufGroupName', 'unknown'); // override later (if possible)
if ($this->_gid) {
$ufgroupDAO = new CRM_Core_DAO_UFGroup();
if ($ufgroupDAO->title) {
CRM_Utils_System::setTitle($ufgroupDAO->title);
}
+ if ($ufgroupDAO->name) {
+ $this->assign('ufGroupName', $ufgroupDAO->name);
+ }
}
$this->assign('isReset', TRUE);
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
+<div class="crm-profile-name-{$ufGroupName}">
+{crmRegion name=profile-form-`$ufGroupName`}
+
{* Profile forms when embedded in CMS account create (mode=1) or
cms account edit (mode=8) or civicrm/profile (mode=4) pages *}
{if ($context eq 'multiProfileDialog')}
</script>
{/literal}
+{/crmRegion}
+</div> {* end crm-profile-NAME *}
{include file="CRM/Profile/Page/Overlay.tpl"}
{else}
<div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
+ <div class="crm-profile-name-{$ufGroupName}">
+ {crmRegion name=profile-view-`$ufGroupName`}
{foreach from=$profileFields item=field key=rowName}
<div id="row-{$rowName}" class="crm-section {$rowName}-section">
<div class="label">
<div class="clear"></div>
</div>
{/foreach}
+ {/crmRegion}
+ </div>
</div>
{/if}
{/if}
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
+
+<div class="crm-profile-name-{$ufGroupName}">
+{crmRegion name=profile-search-`$ufGroupName`}
+
{* make sure there are some fields in the selector *}
{if ! empty( $columnHeaders ) || $isReset }
{ts}No fields in this Profile have been configured to display as a result column in the search results table. Ask the site administrator to check the Profile setup.{/ts}
</div>
{/if}
-</div>
\ No newline at end of file
+</div>
+
+{/crmRegion}
+</div>{* crm-profile-name-NAME *}