First commit

This commit is contained in:
Theodotos Andreou 2018-01-14 13:10:16 +00:00
commit c6e2478c40
13918 changed files with 2303184 additions and 0 deletions

View file

@ -0,0 +1,68 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* this template is used for the dropdown menu of the "Actions" button on contacts. *}
<div id="crm-contact-actions-wrapper" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Page_Inline_Actions"{rdelim}'>
{crmButton id="crm-contact-actions-link" href="#" icon="bars"}
{ts}Actions{/ts}
{/crmButton}
<div class="ac_results" id="crm-contact-actions-list">
<div class="crm-contact-actions-list-inner">
<div class="crm-contact_activities-list">
{include file="CRM/Activity/Form/ActivityLinks.tpl" as_select=false}
</div>
<div class="crm-contact_print-list">
<ul class="contact-print">
{foreach from=$actionsMenuList.otherActions item='row'}
{if !empty($row.href) or !empty($row.tab)}
<li class="crm-contact-{$row.ref}">
<a href="{if !empty($row.href)}{$row.href}{if strstr($row.href, '?')}&cid={$contactId}{/if}{else}#{/if}" title="{$row.title|escape}" data-tab="{$row.tab}" {if !empty($row.class)}class="{$row.class}"{/if}>
<span><i {if !empty($row.icon)}class="{$row.icon}"{/if}></i> {$row.title}</span>
</a>
</li>
{/if}
{/foreach}
</ul>
</div>
<div class="crm-contact_actions-list">
<ul class="contact-actions">
{foreach from=$actionsMenuList.moreActions item='row'}
{if !empty($row.href) or !empty($row.tab)}
<li class="crm-action-{$row.ref}">
<a href="{if !empty($row.href)}{$row.href}{if strstr($row.href, '?')}&cid={$contactId}{/if}{else}#{/if}" title="{$row.title|escape}" data-tab="{$row.tab}" {if !empty($row.class)}class="{$row.class}"{/if}>{$row.title}</a>
</li>
{/if}
{/foreach}
</ul>
</div>
<div class="clear"></div>
</div>
</div>
</div>
{literal}
{/literal}

View file

@ -0,0 +1,84 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* template for a single address block*}
<div id="address-block-{$locationIndex}" class="address {if $add}crm-address_type_{$add.location_type}{else}add-new{/if}{if $permission EQ 'edit'} crm-inline-edit" data-dependent-fields='["#crm-contactinfo-content", ".crm-inline-edit.address:not(.add-new)"]' data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_Address", "locno": "{$locationIndex}", "aid": "{if $add}{$add.id}{else}0{/if}"{rdelim}' data-location-type-id="{if $add}{$add.location_type_id}{else}0{/if}{/if}">
<div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{if $add}{ts}Edit address{/ts}{else}{ts}Add address{/ts}{/if}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {if $add}{ts}Edit address{/ts}{else}{ts}Add address{/ts}{/if}
</div>
{/if}
{if $add }
<div class="crm-summary-row {if $add.is_primary eq 1} primary{/if}">
<div class="crm-label">
{ts 1=$add.location_type}%1 Address{/ts}
{if $privacy.do_not_mail}<span class="icon privacy-flag do-not-mail" title="{ts}Privacy flag: Do Not Mail{/ts}"></span>{/if}
{if $config->mapProvider AND
!empty($add.geo_code_1) AND
is_numeric($add.geo_code_1) AND
!empty($add.geo_code_2) AND
is_numeric($add.geo_code_2)
}
<br /><a href="{crmURL p='civicrm/contact/map' q="reset=1&cid=`$contactId`&lid=`$add.location_type_id`"}" title="{ts 1=`$add.location_type`}Map %1 Address{/ts}"><span class="geotag">{ts}Map{/ts}</span></a>
{/if}
</div>
<div class="crm-content">
{if !empty($sharedAddresses.$locationIndex.shared_address_display.name)}
<strong>{ts 1=$sharedAddresses.$locationIndex.shared_address_display.name}Address belongs to %1{/ts}</strong><br />
{/if}
{$add.display|nl2br}
</div>
</div>
<!-- add custom data -->
{foreach from=$add.custom item=customGroup key=cgId} {* start of outer foreach *}
{assign var="isAddressCustomPresent" value=1}
{foreach from=$customGroup item=customValue key=cvId}
<div id="address_custom_{$cgId}_{$locationIndex}"
class="crm-collapsible crm-address-custom-{$cgId}-{$locationIndex}-accordion
{if $customValue.collapse_display}collapsed{/if}">
<div class="collapsible-title">
{$customValue.title}
</div>
<div class="crm-summary-block">
{foreach from=$customValue.fields item=customField key=cfId}
<div class="crm-summary-row">
<div class="crm-label">
{$customField.field_title}
</div>
<div class="crm-content">
{$customField.field_value}
</div>
</div>
{/foreach}
</div>
</div>
{/foreach}
{/foreach} {* end of outer custom group foreach *}
<!-- end custom data -->
{/if}
</div>
</div>

View file

@ -0,0 +1,93 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* template for building communication preference block*}
<div id="crm-communication-pref-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_CommunicationPreferences"{rdelim}' data-dependent-fields='["#crm-phone-content", "#crm-email-content", ".address.crm-inline-edit:not(.add-new)", "#crm-contact-actions-wrapper"]'{/if}>
<div class="crm-clear crm-inline-block-content"{if $permission EQ 'edit'} title="{ts}Edit communication preferences{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {ts}Edit communication preferences{/ts}
</div>
{/if}
<div class="crm-summary-row">
<div class="crm-label">{ts}Privacy{/ts}</div>
<div class="crm-content crm-contact-privacy_values font-red upper">
{foreach from=$privacy item=priv key=index}
{if $priv}{$privacy_values.$index}<br/>{/if}
{/foreach}
{if $is_opt_out}{ts}No Bulk Emails (User Opt Out){/ts}{/if}
</div>
</div>
<div class="crm-summary-row">
<div class="crm-label">{ts}Preferred Method(s){/ts}</div>
<div class="crm-content crm-contact-preferred_communication_method_display">
{$preferred_communication_method_display}
</div>
</div>
{if $preferred_language}
<div class="crm-summary-row">
<div class="crm-label">{ts}Preferred Language{/ts}</div>
<div class="crm-content crm-contact-preferred_language">
{$preferred_language}
</div>
</div>
{/if}
<div class="crm-summary-row">
<div class="crm-label">{ts}Email Format{/ts}</div>
<div class="crm-content crm-contact-preferred_mail_format">
{$preferred_mail_format}
</div>
</div>
{if isset($communication_style_display)}
<div class="crm-summary-row">
<div class="crm-label">{ts}Communication Style{/ts}</div>
<div class="crm-content crm-contact-communication_style_display">
{$communication_style_display}
</div>
</div>
{/if}
<div class="crm-summary-row">
<div class="crm-label">{ts}Email Greeting{/ts}</div>
<div class="crm-content crm-contact-email_greeting_display">
{$email_greeting_display}
{if !empty($email_greeting_custom)}<span class="crm-custom-greeting">({ts}Customized{/ts})</span>{/if}
</div>
</div>
<div class="crm-summary-row">
<div class="crm-label">{ts}Postal Greeting{/ts}</div>
<div class="crm-content crm-contact-postal_greeting_display">
{$postal_greeting_display}
{if !empty($postal_greeting_custom)}<span class="crm-custom-greeting" >({ts}Customized{/ts})</span>{/if}
</div>
</div>
<div class="crm-summary-row">
<div class="crm-label">{ts}Addressee{/ts}</div>
<div class="crm-content crm-contact-addressee_display">
{$addressee_display}
{if !empty($addressee_custom)}<span class="crm-custom-greeting">({ts}Customized{/ts})</span>{/if}
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,70 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* data-edit-params to reload this info whenever relationship gets updated *}
<div id="crm-contactinfo-content" {if $permission EQ 'edit'} class="crm-inline-edit" {/if} data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_ContactInfo"{rdelim}'>
<div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Edit info{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {ts}Edit info{/ts}
</div>
{/if}
{if $contact_type eq 'Individual'}
<div class="crm-summary-row">
<div class="crm-label">{ts}Employer{/ts}</div>
<div class="crm-content crm-contact-current_employer">
{if !empty($current_employer_id)}
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$current_employer_id`"}" title="{ts}view current employer{/ts}">{$current_employer}</a>
{/if}
</div>
</div>
<div class="crm-summary-row">
<div class="crm-label">{ts}Job Title{/ts}</div>
<div class="crm-content crm-contact-job_title">{$job_title}</div>
</div>
{/if}
<div class="crm-summary-row">
<div class="crm-label">{ts}Nickname{/ts}</div>
<div class="crm-content crm-contact-nick_name">{$nick_name}</div>
</div>
{if $contact_type eq 'Organization'}
<div class="crm-summary-row">
<div class="crm-label">{ts}Legal Name{/ts}</div>
<div class="crm-content crm-contact-legal_name">{$legal_name}</div>
</div>
<div class="crm-summary-row">
<div class="crm-label">{ts}SIC Code{/ts}</div>
<div class="crm-content crm-contact-sic_code">{$sic_code}</div>
</div>
{/if}
<div class="crm-summary-row">
<div class="crm-label">{ts}Source{/ts}</div>
<div class="crm-content crm-contact_source">{$source}</div>
</div>
</div>
</div>

View file

@ -0,0 +1,38 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div id="crm-contactname-content" {if $permission EQ 'edit'}class="crm-inline-edit" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_ContactName"{rdelim}' data-dependent-fields='["#crm-communication-pref-content"]'{/if}>
<div class="crm-inline-block-content"{if $permission EQ 'edit'} title="{ts}Edit Contact Name{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {ts}Edit name{/ts}
</div>
{/if}
<div class="crm-summary-display_name">
{$title}{if $domainContact} ({ts}default organization{/ts}){/if}
</div>
</div>
</div>

View file

@ -0,0 +1,27 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{include file="CRM/Contact/Page/View/CustomDataFieldView.tpl"}

View file

@ -0,0 +1,68 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div id="crm-demographic-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-dependent-fields='["#crm-contactname-content"]' data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_Demographics"{rdelim}'{/if}>
<div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Edit demographics{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {ts}Edit demographics{/ts}
</div>
{/if}
<div class="crm-summary-row">
<div class="crm-label">{ts}Gender{/ts}</div>
<div class="crm-content crm-contact-gender_display">{$gender_display}</div>
</div>
<div class="crm-summary-row">
<div class="crm-label">{ts}Date of Birth{/ts}</div>
<div class="crm-content crm-contact-birth_date_display">
{assign var="date_format" value = $fields.birth_date.smarty_view_format}
{$birth_date|crmDate:$date_format}
&nbsp;
</div>
</div>
{if $is_deceased eq 1}
{if $deceased_date}
<div class="crm-summary-row">
<div class="crm-label">{ts}Date Deceased{/ts}</div>
<div class="crm-content crm-contact-deceased_date_display">
{assign var="date_format" value = $fields.birth_date.smarty_view_format}
{$deceased_date|crmDate:$date_format}
</div>
</div>
{else}
<div class="crm-summary-row">
<div class="crm-label"></div>
<div class="crm-content crm-contact-deceased_message"><span class="font-red upper">{ts}Contact is Deceased{/ts}</span></div>
</div>
{/if}
{else}
<div class="crm-summary-row">
<div class="crm-label">{ts}Age{/ts}</div>
<div class="crm-content crm-contact-age_display">{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}</div>
</div>
{/if}
</div>
</div>

View file

@ -0,0 +1,102 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* template for building email block*}
<div id="crm-email-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_Email"{rdelim}' data-dependent-fields='["#crm-contact-actions-wrapper"]'{/if}>
<div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Add or edit email{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {if empty($email)}{ts}Add email{/ts}{else}{ts}Add or edit email{/ts}{/if}
</div>
{/if}
{if empty($email)}
<div class="crm-summary-row">
<div class="crm-label">
{ts}Email{/ts}
{if $privacy.do_not_email}<span class="icon privacy-flag do-not-email" title="{ts}Privacy flag: Do Not Email{/ts}"></span>{/if}
</div>
<div class="crm-content"></div>
</div>
{/if}
{foreach from=$email key="blockId" item=item}
{if $item.email}
<div class="crm-summary-row {if $item.is_primary eq 1}primary{/if}">
<div class="crm-label">
{$item.location_type} {ts}Email{/ts}
{if $privacy.do_not_email}<span class="icon privacy-flag do-not-email" title="{ts}Privacy flag: Do Not Email{/ts}"></span>{elseif $item.on_hold}<span class="icon privacy-flag email-hold" title="{ts}Email on hold - generally due to bouncing.{/ts}"></span>{/if}
</div>
<div class="crm-content crm-contact_email">
{if !$item.on_hold and !$privacy.do_not_email}
{if $mailingOutboundOption == 2} {* Outbound email is disabled, use a mailto link *}
<a href="mailto:{$item.email}" title="{ts 1=$item.email}Send email to %1{/ts}">
{$item.email}
</a>
{else}
<a href="{crmURL p="civicrm/activity/email/add" q="action=add&reset=1&email_id=`$item.id`"}" class="crm-popup" title="{ts 1=$item.email}Send email to %1{/ts}">
{$item.email}
</a>
{/if}
{else}
{$item.email}
{/if}
{if $item.on_hold == 2}&nbsp;({ts}On Hold - Opt Out{/ts})&nbsp;{ts}{$item.hold_date|truncate:10:''|crmDate}{/ts}{elseif $item.on_hold}&nbsp;({ts}On Hold{/ts})&nbsp;{ts}{$item.hold_date|truncate:10:''|crmDate}{/ts}{/if}{if $item.is_bulkmail}&nbsp;({ts}Bulk{/ts}){/if}
{if $item.signature_text OR $item.signature_html}
<span class="signature-link description">
<a href="#" title="{ts}Signature{/ts}" onClick="showHideSignature( '{$blockId}' ); return false;">{ts}(signature){/ts}</a>
</span>
{/if}
<div id="Email_Block_{$blockId}_signature" class="hiddenElement">
<strong>{ts}Signature HTML{/ts}</strong><br />{$item.signature_html}<br /><br />
<strong>{ts}Signature Text{/ts}</strong><br />{$item.signature_text|nl2br}</div>
</div>
</div>
{/if}
{/foreach}
</div>
</div>
{literal}
<script type="text/javascript">
function showHideSignature( blockId ) {
cj("#Email_Block_" + blockId + "_signature").show( );
cj("#Email_Block_" + blockId + "_signature").dialog({
title: "Signature",
modal: true,
width: 900,
height: 500,
beforeclose: function(event, ui) {
cj(this).dialog("destroy");
},
buttons: {
"Done": function() {
cj(this).dialog("destroy");
}
}
});
}
</script>
{/literal}

View file

@ -0,0 +1,51 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* template for building IM block*}
<div id="crm-im-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_IM"{rdelim}'{/if}>
<div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Add or edit IM{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {if empty($im)}{ts}Add IM{/ts}{else}{ts}Add or edit IM{/ts}{/if}
</div>
{/if}
{if empty($im)}
<div class="crm-summary-row">
<div class="crm-label">{ts}IM{/ts}</div>
<div class="crm-content"></div>
</div>
{/if}
{foreach from=$im item=item}
{if $item.name or $item.provider}
{if $item.name}
<div class="crm-summary-row {if $item.is_primary eq 1} primary{/if}">
<div class="crm-label">{$item.provider}&nbsp;({$item.location_type})</div>
<div class="crm-content crm-contact_im">{$item.name}</div>
</div>
{/if}
{/if}
{/foreach}
</div>
</div>

View file

@ -0,0 +1,51 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* template for building OpenID block*}
<div id="crm-openid-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_OpenID"{rdelim}'{/if}>
<div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Add or edit OpenID{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {if empty($openid)}{ts}Add OpenID{/ts}{else}{ts}Add or edit OpenID{/ts}{/if}
</div>
{/if}
{if empty($openid)}
<div class="crm-summary-row">
<div class="crm-label">{ts}OpenID{/ts}</div>
<div class="crm-content"></div>
</div>
{/if}
{foreach from=$openid item=item}
{if $item.openid}
<div class="crm-summary-row {if $item.is_primary eq 1} primary{/if}">
<div class="crm-label">{$item.location_type}&nbsp;{ts}OpenID{/ts}</div>
<div class="crm-content crm-contact_openid">
<a href="{$item.openid}">{$item.openid|mb_truncate:40}</a>
</div>
</div>
{/if}
{/foreach}
</div>
</div>

View file

@ -0,0 +1,57 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* template for building phone block*}
<div id="crm-phone-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_Phone"{rdelim}' data-dependent-fields='["#crm-contact-actions-wrapper"]'{/if}>
<div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Add or edit phone{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {if empty($phone)}{ts}Add phone{/ts}{else}{ts}Add or edit phone{/ts}{/if}
</div>
{/if}
{if empty($phone)}
<div class="crm-summary-row">
<div class="crm-label">
{ts}Phone{/ts}
{if $privacy.do_not_phone}<span class="icon privacy-flag do-not-phone" title="{ts}Privacy flag: Do Not Phone{/ts}"></span>{/if}
</div>
<div class="crm-content"></div>
</div>
{/if}
{foreach from=$phone item=item}
{if $item.phone || $item.phone_ext}
<div class="crm-summary-row {if $item.is_primary eq 1}primary{/if}">
<div class="crm-label">
{if $privacy.do_not_phone}<span class="icon privacy-flag do-not-phone" title="{ts}Privacy flag: Do Not Phone{/ts}"></span>{/if}
{$item.location_type} {$item.phone_type}
</div>
<div class="crm-content crm-contact_phone">
{$item.phone}{if $item.phone_ext}&nbsp;&nbsp;{ts}ext.{/ts} {$item.phone_ext}{/if}
</div>
</div>
{/if}
{/foreach}
</div>
</div>

View file

@ -0,0 +1,49 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* template for building website block *}
<div id="crm-website-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_Website"{rdelim}'{/if}>
<div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Add or edit website{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">
<span class="crm-i fa-pencil"></span> {if empty($website)}{ts}Add website{/ts}{else}{ts}Add or edit website{/ts}{/if}
</div>
{/if}
{if empty($website)}
<div class="crm-summary-row">
<div class="crm-label">{ts}Website{/ts}</div>
<div class="crm-content"></div>
</div>
{/if}
{foreach from=$website item=item}
{if !empty($item.url)}
<div class="crm-summary-row">
<div class="crm-label">{$item.website_type} {ts}Website{/ts}</div>
<div class="crm-content crm-contact_website"><a href="{$item.url}" target="_blank">{$item.url}</a></div>
</div>
{/if}
{/foreach}
</div>
</div>