{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *}
{if $permission EQ 'edit'}
{ts}Edit demographics{/ts}
{/if}
{ts}Gender{/ts}
{$gender_display}
{ts}Date of birth{/ts}
{if $birthDateViewFormat} {$birth_date_display|crmDate:$birthDateViewFormat} {else} {$birth_date_display|crmDate} {/if}  
{if $is_deceased eq 1} {if $deceased_date}
{ts}Date Deceased{/ts}
{if $birthDateViewFormat} {$deceased_date_display|crmDate:$birthDateViewFormat} {else} {$deceased_date_display|crmDate} {/if}
{else}
{ts}Contact is Deceased{/ts}
{/if} {else}
{ts}Age{/ts}
{if $age.y}{ts count=$age.y plural='%count years'}%count year{/ts}{elseif $age.m}{ts count=$age.m plural='%count months'}%count month{/ts}{/if}
{/if} {* The block below is the only modification added by civicrm_engage *} {if isset($demographics_viewCustomData)} {foreach from=$demographics_viewCustomData item=customValues key=customGroupId} {foreach from=$customValues item=cd_edit key=cvID} {include file="CRM/Contact/Page/View/CustomDataFieldView.tpl"} {/foreach} {/foreach} {/if} {* We have to hide the edit link or we will get two of them for this block *} {* End of civicrm_engage modification *}