Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {* template for building website block *} | |
27 | <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}> | |
28 | <div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Add or edit website{/ts}"{/if}> | |
29 | {if $permission EQ 'edit'} | |
30 | <div class="crm-edit-help"> | |
31 | <span class="batch-edit"></span>{if empty($website)}{ts}Add website{/ts}{else}{ts}Add or edit website{/ts}{/if} | |
32 | </div> | |
33 | {/if} | |
34 | {if empty($website)} | |
35 | <div class="crm-summary-row"> | |
36 | <div class="crm-label">{ts}Website{/ts}</div> | |
37 | <div class="crm-content"></div> | |
38 | </div> | |
39 | {/if} | |
40 | {foreach from=$website item=item} | |
41 | {if !empty($item.url)} | |
42 | <div class="crm-summary-row"> | |
43 | <div class="crm-label">{$item.website_type} {ts}Website{/ts}</div> | |
44 | <div class="crm-content crm-contact_website"><a href="{$item.url}" target="_blank">{$item.url}</a></div> | |
45 | </div> | |
46 | {/if} | |
47 | {/foreach} | |
48 | </div> | |
49 | </div> |