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,16 @@
{php}
$dir = SMARTY_DIR . '/../../CRM/Upgrade/4.3.beta1.msg_template/message_templates';
$templates = array();
foreach (preg_grep('/\.tpl$/', scandir($dir)) as $filename) {
$parts = explode('_', basename($filename, '.tpl'));
$templates[] = array('type' => array_pop($parts), 'name' => implode('_', $parts), 'filename' => "$dir/$filename");
}
$this->assign('templates', $templates);
{/php}
{foreach from=$templates item=tpl}
{fetch assign=content file=$tpl.filename}
SELECT @workflow_id := MAX(id) FROM civicrm_option_value WHERE name = '{$tpl.name}';
SELECT @content := msg_{$tpl.type} FROM civicrm_msg_template WHERE workflow_id = @workflow_id AND is_reserved = 1 LIMIT 1;
UPDATE civicrm_msg_template SET msg_{$tpl.type} = '{$content|escape:"quotes"}' WHERE workflow_id = @workflow_id AND (is_reserved = 1 OR (is_default = 1 AND msg_{$tpl.type} = @content));
{/foreach}

View file

@ -0,0 +1,394 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
<body>
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
<center>
<table width="500" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
<!-- BEGIN HEADER -->
<!-- You can add table row(s) here with logo or other header elements -->
<!-- END HEADER -->
<!-- BEGIN CONTENT -->
<tr>
<td>
{if $receipt_text}
<p>{$receipt_text|htmlize}</p>
{/if}
{if $is_pay_later}
<p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
{else}
<p>{ts}Please print this confirmation for your records.{/ts}</p>
{/if}
</td>
</tr>
</table>
<table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
{if $amount}
<tr>
<th {$headerStyle}>
{ts}Contribution Information{/ts}
</th>
</tr>
{if $lineItem and $priceSetID and !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
<tr>
<td colspan="2" {$valueStyle}>
<table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
<tr>
<th>{ts}Item{/ts}</th>
<th>{ts}Qty{/ts}</th>
<th>{ts}Each{/ts}</th>
<th>{ts}Total{/ts}</th>
</tr>
{foreach from=$value item=line}
<tr>
<td>
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if}
</td>
<td>
{$line.qty}
</td>
<td>
{$line.unit_price|crmMoney:$currency}
</td>
<td>
{$line.line_total|crmMoney:$currency}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
<tr>
<td {$labelStyle}>
{ts}Total Amount{/ts}
</td>
<td {$valueStyle}>
{$amount|crmMoney:$currency}
</td>
</tr>
{else}
<tr>
<td {$labelStyle}>
{ts}Amount{/ts}
</td>
<td {$valueStyle}>
{$amount|crmMoney:$currency} {if $amount_level} - {$amount_level}{/if}
</td>
</tr>
{/if}
{/if}
{if $receive_date}
<tr>
<td {$labelStyle}>
{ts}Date{/ts}
</td>
<td {$valueStyle}>
{$receive_date|crmDate}
</td>
</tr>
{/if}
{if $is_monetary and $trxn_id}
<tr>
<td {$labelStyle}>
{ts}Transaction #{/ts}
</td>
<td {$valueStyle}>
{$trxn_id}
</td>
</tr>
{/if}
{if $is_recur}
{if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'}
<tr>
<td colspan="2" {$labelStyle}>
{ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can cancel future contributions by <a href="%1">visiting this web page</a>.{/ts}
</td>
<tr>
</tr>
<td colspan="2" {$labelStyle}>
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
</td>
<tr>
</tr>
<td colspan="2" {$labelStyle}>
{ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
</td>
</tr>
{/if}
{/if}
{if $honor_block_is_active}
<tr>
<th {$headerStyle}>
{$honor_type}
</th>
</tr>
<tr>
<td colspan="2" {$labelStyle}>
{$honor_prefix} {$honor_first_name} {$honor_last_name}
</td>
</tr>
{if $honor_email}
<tr>
<td {$labelStyle}>
{ts}Honoree Email{/ts}
</td>
<td {$valueStyle}>
{$honor_email}
</td>
</tr>
{/if}
{/if}
{if $pcpBlock}
<tr>
<th {$headerStyle}>
{ts}Personal Campaign Page{/ts}
</th>
</tr>
<tr>
<td {$labelStyle}>
{ts}Display In Honor Roll{/ts}
</td>
<td {$valueStyle}>
{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
</td>
</tr>
{if $pcp_roll_nickname}
<tr>
<td {$labelStyle}>
{ts}Nickname{/ts}
</td>
<td {$valueStyle}>
{$pcp_roll_nickname}
</td>
</tr>
{/if}
{if $pcp_personal_note}
<tr>
<td {$labelStyle}>
{ts}Personal Note{/ts}
</td>
<td {$valueStyle}>
{$pcp_personal_note}
</td>
</tr>
{/if}
{/if}
{if $onBehalfProfile}
<tr>
<th {$headerStyle}>
{$onBehalfProfile_grouptitle}
</th>
</tr>
{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
<tr>
<td {$labelStyle}>
{$onBehalfName}
</td>
<td {$valueStyle}>
{$onBehalfValue}
</td>
</tr>
{/foreach}
{/if}
{if $isShare}
<tr>
<td colspan="2" {$valueStyle}>
{capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture}
{include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl}
</td>
</tr>
{/if}
{if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
{if $is_pay_later}
<tr>
<th {$headerStyle}>
{ts}Registered Email{/ts}
</th>
</tr>
<tr>
<td colspan="2" {$valueStyle}>
{$email}
</td>
</tr>
{elseif $amount GT 0}
<tr>
<th {$headerStyle}>
{ts}Billing Name and Address{/ts}
</th>
</tr>
<tr>
<td colspan="2" {$valueStyle}>
{$billingName}<br />
{$address|nl2br}<br />
{$email}
</td>
</tr>
{/if}
{/if}
{if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
<tr>
<th {$headerStyle}>
{ts}Credit Card Information{/ts}
</th>
</tr>
<tr>
<td colspan="2" {$valueStyle}>
{$credit_card_type}<br />
{$credit_card_number}<br />
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
</td>
</tr>
{/if}
{if $selectPremium}
<tr>
<th {$headerStyle}>
{ts}Premium Information{/ts}
</th>
</tr>
<tr>
<td colspan="2" {$labelStyle}>
{$product_name}
</td>
</tr>
{if $option}
<tr>
<td {$labelStyle}>
{ts}Option{/ts}
</td>
<td {$valueStyle}>
{$option}
</td>
</tr>
{/if}
{if $sku}
<tr>
<td {$labelStyle}>
{ts}SKU{/ts}
</td>
<td {$valueStyle}>
{$sku}
</td>
</tr>
{/if}
{if $start_date}
<tr>
<td {$labelStyle}>
{ts}Start Date{/ts}
</td>
<td {$valueStyle}>
{$start_date|crmDate}
</td>
</tr>
{/if}
{if $end_date}
<tr>
<td {$labelStyle}>
{ts}End Date{/ts}
</td>
<td {$valueStyle}>
{$end_date|crmDate}
</td>
</tr>
{/if}
{if $contact_email OR $contact_phone}
<tr>
<td colspan="2" {$valueStyle}>
<p>{ts}For information about this premium, contact:{/ts}</p>
{if $contact_email}
<p>{$contact_email}</p>
{/if}
{if $contact_phone}
<p>{$contact_phone}</p>
{/if}
</td>
</tr>
{/if}
{if $is_deductible AND $price}
<tr>
<td colspan="2" {$valueStyle}>
<p>{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>
</td>
</tr>
{/if}
{/if}
{if $customPre}
<tr>
<th {$headerStyle}>
{$customPre_grouptitle}
</th>
</tr>
{foreach from=$customPre item=customValue key=customName}
{if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
<tr>
<td {$labelStyle}>
{$customName}
</td>
<td {$valueStyle}>
{$customValue}
</td>
</tr>
{/if}
{/foreach}
{/if}
{if $customPost}
<tr>
<th {$headerStyle}>
{$customPost_grouptitle}
</th>
</tr>
{foreach from=$customPost item=customValue key=customName}
{if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
<tr>
<td {$labelStyle}>
{$customName}
</td>
<td {$valueStyle}>
{$customValue}
</td>
</tr>
{/if}
{/foreach}
{/if}
</table>
</center>
</body>
</html>

View file

@ -0,0 +1,179 @@
{if $receipt_text}
{$receipt_text}
{/if}
{if $is_pay_later}
===========================================================
{$pay_later_receipt}
===========================================================
{else}
{ts}Please print this receipt for your records.{/ts}
{/if}
{if $amount}
===========================================================
{ts}Contribution Information{/ts}
===========================================================
{if $lineItem and $priceSetID and !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
---------------------------------------------------------
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
{capture assign=ts_each}{ts}Each{/ts}{/capture}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {$ts_total|string_format:"%10s"}
----------------------------------------------------------
{foreach from=$value item=line}
{capture assign=ts_item}{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {$line.line_total|crmMoney:$currency|string_format:"%10s"}
{/foreach}
{/foreach}
{ts}Total Amount{/ts}: {$amount|crmMoney:$currency}
{else}
{ts}Amount{/ts}: {$amount|crmMoney:$currency} {if $amount_level } - {$amount_level} {/if}
{/if}
{/if}
{if $receive_date}
{ts}Date{/ts}: {$receive_date|crmDate}
{/if}
{if $is_monetary and $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $is_recur and ($contributeMode eq 'notify' or $contributeMode eq 'directIPN')}
{ts}This is a recurring contribution. You can cancel future contributions at:{/ts}
{$cancelSubscriptionUrl}
{ts}You can update billing details for this recurring contribution at:{/ts}
{$updateSubscriptionBillingUrl}
{ts}You can update recurring contribution amount or change the number of installments for this recurring contribution at:{/ts}
{$updateSubscriptionUrl}
{/if}
{if $honor_block_is_active }
===========================================================
{$honor_type}
===========================================================
{$honor_prefix} {$honor_first_name} {$honor_last_name}
{if $honor_email}
{ts}Honoree Email{/ts}: {$honor_email}
{/if}
{/if}
{if $pcpBlock}
===========================================================
{ts}Personal Campaign Page{/ts}
===========================================================
{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}
{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}
{/if}
{if $onBehalfProfile}
===========================================================
{ts}On Behalf Of{/ts}
===========================================================
{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
{$onBehalfName}: {$onBehalfValue}
{/foreach}
{/if}
{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
{if $is_pay_later}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$email}
{elseif $amount GT 0}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{$email}
{/if} {* End ! is_pay_later condition. *}
{/if}
{if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
{/if}
{if $selectPremium }
===========================================================
{ts}Premium Information{/ts}
===========================================================
{$product_name}
{if $option}
{ts}Option{/ts}: {$option}
{/if}
{if $sku}
{ts}SKU{/ts}: {$sku}
{/if}
{if $start_date}
{ts}Start Date{/ts}: {$start_date|crmDate}
{/if}
{if $end_date}
{ts}End Date{/ts}: {$end_date|crmDate}
{/if}
{if $contact_email OR $contact_phone}
{ts}For information about this premium, contact:{/ts}
{if $contact_email}
{$contact_email}
{/if}
{if $contact_phone}
{$contact_phone}
{/if}
{/if}
{if $is_deductible AND $price}
{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}
{/if}
{if $customPre}
===========================================================
{$customPre_grouptitle}
===========================================================
{foreach from=$customPre item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/if}
{if $customPost}
===========================================================
{$customPost_grouptitle}
===========================================================
{foreach from=$customPost item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/if}

View file

@ -0,0 +1,514 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
<body>
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
<center>
<table width="500" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
<!-- BEGIN HEADER -->
<!-- You can add table row(s) here with logo or other header elements -->
<!-- END HEADER -->
<!-- BEGIN CONTENT -->
<tr>
<td>
{if $receipt_text}
<p>{$receipt_text|htmlize}</p>
{/if}
{if $is_pay_later}
<p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
{else}
<p>{ts}Please print this confirmation for your records.{/ts}</p>
{/if}
</td>
</tr>
</table>
<table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
{if $membership_assign && !$useForMember}
<tr>
<th {$headerStyle}>
{ts}Membership Information{/ts}
</th>
</tr>
<tr>
<td {$labelStyle}>
{ts}Membership Type{/ts}
</td>
<td {$valueStyle}>
{$membership_name}
</td>
</tr>
{if $mem_start_date}
<tr>
<td {$labelStyle}>
{ts}Membership Start Date{/ts}
</td>
<td {$valueStyle}>
{$mem_start_date|crmDate}
</td>
</tr>
{/if}
{if $mem_end_date}
<tr>
<td {$labelStyle}>
{ts}Membership End Date{/ts}
</td>
<td {$valueStyle}>
{$mem_end_date|crmDate}
</td>
</tr>
{/if}
{/if}
{if $amount}
<tr>
<th {$headerStyle}>
{ts}Membership Fee{/ts}
</th>
</tr>
{if !$useForMember and $membership_amount and $is_quick_config}
<tr>
<td {$labelStyle}>
{ts 1=$membership_name}%1 Membership{/ts}
</td>
<td {$valueStyle}>
{$membership_amount|crmMoney}
</td>
</tr>
{if $amount}
{if ! $is_separate_payment }
<tr>
<td {$labelStyle}>
{ts}Contribution Amount{/ts}
</td>
<td {$valueStyle}>
{$amount|crmMoney}
</td>
</tr>
{else}
<tr>
<td {$labelStyle}>
{ts}Additional Contribution{/ts}
</td>
<td {$valueStyle}>
{$amount|crmMoney}
</td>
</tr>
{/if}
{/if}
<tr>
<td {$labelStyle}>
{ts}Total{/ts}
</td>
<td {$valueStyle}>
{$amount+$membership_amount|crmMoney}
</td>
</tr>
{elseif !$useForMember && $lineItem and $priceSetID and !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
<tr>
<td colspan="2" {$valueStyle}>
<table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
<tr>
<th>{ts}Item{/ts}</th>
<th>{ts}Qty{/ts}</th>
<th>{ts}Each{/ts}</th>
<th>{ts}Total{/ts}</th>
</tr>
{foreach from=$value item=line}
<tr>
<td>
{$line.description|truncate:30:"..."}
</td>
<td>
{$line.qty}
</td>
<td>
{$line.unit_price|crmMoney}
</td>
<td>
{$line.line_total|crmMoney}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
<tr>
<td {$labelStyle}>
{ts}Total Amount{/ts}
</td>
<td {$valueStyle}>
{$amount|crmMoney}
</td>
</tr>
{else}
{if $useForMember && $lineItem and !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
<tr>
<td colspan="2" {$valueStyle}>
<table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
<tr>
<th>{ts}Item{/ts}</th>
<th>{ts}Fee{/ts}</th>
<th>{ts}Membership Start Date{/ts}</th>
<th>{ts}Membership End Date{/ts}</th>
</tr>
{foreach from=$value item=line}
<tr>
<td>
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if}
</td>
<td>
{$line.line_total|crmMoney}
</td>
<td>
{$line.start_date}
</td>
<td>
{$line.end_date}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
{/if}
<tr>
<td {$labelStyle}>
{ts}Amount{/ts}
</td>
<td {$valueStyle}>
{$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
</td>
</tr>
{/if}
{elseif $membership_amount}
<tr>
<th {$headerStyle}>
{ts}Membership Fee{/ts}
</th>
</tr>
<tr>
<td {$labelStyle}>
{ts 1=$membership_name}%1 Membership{/ts}
</td>
<td {$valueStyle}>
{$membership_amount|crmMoney}
</td>
</tr>
{/if}
{if $receive_date}
<tr>
<td {$labelStyle}>
{ts}Date{/ts}
</td>
<td {$valueStyle}>
{$receive_date|crmDate}
</td>
</tr>
{/if}
{if $is_monetary and $trxn_id}
<tr>
<td {$labelStyle}>
{ts}Transaction #{/ts}
</td>
<td {$valueStyle}>
{$trxn_id}
</td>
</tr>
{/if}
{if $membership_trx_id}
<tr>
<td {$labelStyle}>
{ts}Membership Transaction #{/ts}
</td>
<td {$valueStyle}>
{$membership_trx_id}
</td>
</tr>
{/if}
{if $is_recur}
{if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'}
<tr>
<td colspan="2" {$labelStyle}>
{ts 1=$cancelSubscriptionUrl}This membership will be renewed automatically. You can cancel the auto-renewal option by <a href="%1">visiting this web page</a>.{/ts}
</td>
</tr>
<tr>
<td colspan="2" {$labelStyle}>
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts}
</td>
</tr>
{/if}
{/if}
{if $honor_block_is_active}
<tr>
<th {$headerStyle}>
{$honor_type}
</th>
</tr>
<tr>
<td colspan="2" {$labelStyle}>
{$honor_prefix} {$honor_first_name} {$honor_last_name}
</td>
</tr>
{if $honor_email}
<tr>
<td {$labelStyle}>
{ts}Honoree Email{/ts}
</td>
<td {$valueStyle}>
{$honor_email}
</td>
</tr>
{/if}
{/if}
{if $pcpBlock}
<tr>
<th {$headerStyle}>
{ts}Personal Campaign Page{/ts}
</th>
</tr>
<tr>
<td {$labelStyle}>
{ts}Display In Honor Roll{/ts}
</td>
<td {$valueStyle}>
{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
</td>
</tr>
{if $pcp_roll_nickname}
<tr>
<td {$labelStyle}>
{ts}Nickname{/ts}
</td>
<td {$valueStyle}>
{$pcp_roll_nickname}
</td>
</tr>
{/if}
{if $pcp_personal_note}
<tr>
<td {$labelStyle}>
{ts}Personal Note{/ts}
</td>
<td {$valueStyle}>
{$pcp_personal_note}
</td>
</tr>
{/if}
{/if}
{if $onBehalfProfile}
<tr>
<th {$headerStyle}>
{$onBehalfProfile_grouptitle}
</th>
</tr>
{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
<tr>
<td {$labelStyle}>
{$onBehalfName}
</td>
<td {$valueStyle}>
{$onBehalfValue}
</td>
</tr>
{/foreach}
{/if}
{if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
{if $is_pay_later}
<tr>
<th {$headerStyle}>
{ts}Registered Email{/ts}
</th>
</tr>
<tr>
<td colspan="2" {$valueStyle}>
{$email}
</td>
</tr>
{elseif $amount GT 0 OR $membership_amount GT 0}
<tr>
<th {$headerStyle}>
{ts}Billing Name and Address{/ts}
</th>
</tr>
<tr>
<td colspan="2" {$valueStyle}>
{$billingName}<br />
{$address|nl2br}<br />
{$email}
</td>
</tr>
{/if}
{/if}
{if $contributeMode eq 'direct' AND !$is_pay_later AND ($amount GT 0 OR $membership_amount GT 0)}
<tr>
<th {$headerStyle}>
{ts}Credit Card Information{/ts}
</th>
</tr>
<tr>
<td colspan="2" {$valueStyle}>
{$credit_card_type}<br />
{$credit_card_number}<br />
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
</td>
</tr>
{/if}
{if $selectPremium}
<tr>
<th {$headerStyle}>
{ts}Premium Information{/ts}
</th>
</tr>
<tr>
<td colspan="2" {$labelStyle}>
{$product_name}
</td>
</tr>
{if $option}
<tr>
<td {$labelStyle}>
{ts}Option{/ts}
</td>
<td {$valueStyle}>
{$option}
</td>
</tr>
{/if}
{if $sku}
<tr>
<td {$labelStyle}>
{ts}SKU{/ts}
</td>
<td {$valueStyle}>
{$sku}
</td>
</tr>
{/if}
{if $start_date}
<tr>
<td {$labelStyle}>
{ts}Start Date{/ts}
</td>
<td {$valueStyle}>
{$start_date|crmDate}
</td>
</tr>
{/if}
{if $end_date}
<tr>
<td {$labelStyle}>
{ts}End Date{/ts}
</td>
<td {$valueStyle}>
{$end_date|crmDate}
</td>
</tr>
{/if}
{if $contact_email OR $contact_phone}
<tr>
<td colspan="2" {$valueStyle}>
<p>{ts}For information about this premium, contact:{/ts}</p>
{if $contact_email}
<p>{$contact_email}</p>
{/if}
{if $contact_phone}
<p>{$contact_phone}</p>
{/if}
</td>
</tr>
{/if}
{if $is_deductible AND $price}
<tr>
<td colspan="2" {$valueStyle}>
<p>{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>
</td>
</tr>
{/if}
{/if}
{if $customPre}
<tr>
<th {$headerStyle}>
{$customPre_grouptitle}
</th>
</tr>
{foreach from=$customPre item=customValue key=customName}
{if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
<tr>
<td {$labelStyle}>
{$customName}
</td>
<td {$valueStyle}>
{$customValue}
</td>
</tr>
{/if}
{/foreach}
{/if}
{if $customPost}
<tr>
<th {$headerStyle}>
{$customPost_grouptitle}
</th>
</tr>
{foreach from=$customPost item=customValue key=customName}
{if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
<tr>
<td {$labelStyle}>
{$customName}
</td>
<td {$valueStyle}>
{$customValue}
</td>
</tr>
{/if}
{/foreach}
{/if}
</table>
</center>
</body>
</html>

View file

@ -0,0 +1,221 @@
{if $receipt_text}
{$receipt_text}
{/if}
{if $is_pay_later}
===========================================================
{$pay_later_receipt}
===========================================================
{else}
{ts}Please print this receipt for your records.{/ts}
{/if}
{if $membership_assign && !$useForMember}
===========================================================
{ts}Membership Information{/ts}
===========================================================
{ts}Membership Type{/ts}: {$membership_name}
{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}
{/if}
{if $mem_end_date}{ts}Membership End Date{/ts}: {$mem_end_date|crmDate}
{/if}
{/if}
{if $amount}
===========================================================
{ts}Membership Fee{/ts}
===========================================================
{if !$useForMember && $membership_amount && $is_quick_config}
{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
{if $amount}
{if ! $is_separate_payment }
{ts}Contribution Amount{/ts}: {$amount|crmMoney}
{else}
{ts}Additional Contribution{/ts}: {$amount|crmMoney}
{/if}
{/if}
-------------------------------------------
{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
{elseif !$useForMember && $lineItem and $priceSetID & !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
---------------------------------------------------------
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
{capture assign=ts_each}{ts}Each{/ts}{/capture}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {$ts_total|string_format:"%10s"}
----------------------------------------------------------
{foreach from=$value item=line}
{$line.description|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {$line.line_total|crmMoney|string_format:"%10s"}
{/foreach}
{/foreach}
{ts}Total Amount{/ts}: {$amount|crmMoney}
{else}
{if $useForMember && $lineItem && !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_total}{ts}Fee{/ts}{/capture}
{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}
{capture assign=ts_end_date}{ts}Membership End Date{/ts}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_total|string_format:"%10s"} {$ts_start_date|string_format:"%20s"} {$ts_end_date|string_format:"%20s"}
--------------------------------------------------------------------------------------------------
{foreach from=$value item=line}
{capture assign=ts_item}{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.line_total|crmMoney|string_format:"%10s"} {$line.start_date|string_format:"%20s"} {$line.end_date|string_format:"%20s"}
{/foreach}
{/foreach}
--------------------------------------------------------------------------------------------------
{/if}
{ts}Amount{/ts}: {$amount|crmMoney} {if $amount_level } - {$amount_level} {/if}
{/if}
{elseif $membership_amount}
===========================================================
{ts}Membership Fee{/ts}
===========================================================
{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
{/if}
{if $receive_date}
{ts}Date{/ts}: {$receive_date|crmDate}
{/if}
{if $is_monetary and $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $membership_trx_id}
{ts}Membership Transaction #{/ts}: {$membership_trx_id}
{/if}
{if $is_recur}
{if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'}
{ts 1=$cancelSubscriptionUrl}This membership will be renewed automatically. You can cancel the auto-renewal option by visiting this web page: %1.{/ts}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts}
{/if}
{/if}
{if $honor_block_is_active }
===========================================================
{$honor_type}
===========================================================
{$honor_prefix} {$honor_first_name} {$honor_last_name}
{if $honor_email}
{ts}Honoree Email{/ts}: {$honor_email}
{/if}
{/if}
{if $pcpBlock}
===========================================================
{ts}Personal Campaign Page{/ts}
===========================================================
{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}
{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}
{/if}
{if $onBehalfProfile}
===========================================================
{ts}On Behalf Of{/ts}
===========================================================
{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
{$onBehalfName}: {$onBehalfValue}
{/foreach}
{/if}
{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
{if $is_pay_later}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$email}
{elseif $amount GT 0 OR $membership_amount GT 0 }
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{$email}
{/if} {* End ! is_pay_later condition. *}
{/if}
{if $contributeMode eq 'direct' AND !$is_pay_later AND ( $amount GT 0 OR $membership_amount GT 0 ) }
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
{/if}
{if $selectPremium }
===========================================================
{ts}Premium Information{/ts}
===========================================================
{$product_name}
{if $option}
{ts}Option{/ts}: {$option}
{/if}
{if $sku}
{ts}SKU{/ts}: {$sku}
{/if}
{if $start_date}
{ts}Start Date{/ts}: {$start_date|crmDate}
{/if}
{if $end_date}
{ts}End Date{/ts}: {$end_date|crmDate}
{/if}
{if $contact_email OR $contact_phone}
{ts}For information about this premium, contact:{/ts}
{if $contact_email}
{$contact_email}
{/if}
{if $contact_phone}
{$contact_phone}
{/if}
{/if}
{if $is_deductible AND $price}
{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}
{/if}
{if $customPre}
===========================================================
{$customPre_grouptitle}
===========================================================
{foreach from=$customPre item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/if}
{if $customPost}
===========================================================
{$customPost_grouptitle}
===========================================================
{foreach from=$customPost item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/if}