version fixes
[civicrm-core.git] / templates / CRM / Contribute / Form / Contribution / ThankYou.tpl
CommitLineData
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{if $action & 1024}
0913629c 27 {include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"}
6a488035
TO
28{/if}
29
30{include file="CRM/common/TrackingFields.tpl"}
31
569df8ec 32<div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-thankyou-form-block">
0913629c
EM
33 {if $thankyou_text}
34 <div id="thankyou_text" class="crm-section thankyou_text-section">
35 {$thankyou_text}
36 </div>
37 {/if}
6a488035 38
0913629c
EM
39 {* Show link to Tell a Friend (CRM-2153) *}
40 {if $friendText}
41 <div id="tell-a-friend" class="crm-section friend_link-section">
42 <a href="{$friendURL}" title="{$friendText}" class="button"><span>&raquo; {$friendText}</span></a>
43 </div>{if !$linkText}<br /><br />{/if}
44 {/if}
45 {* Add button for donor to create their own Personal Campaign page *}
46 {if $linkText}
47 <div class="crm-section create_pcp_link-section">
48 <a href="{$linkTextUrl}" title="{$linkText}" class="button"><span>&raquo; {$linkText}</span></a>
6a488035 49 </div><br /><br />
0913629c 50 {/if}
6a488035 51
0913629c
EM
52 <div id="help">
53 {* PayPal_Standard sets contribution_mode to 'notify'. We don't know if transaction is successful until we receive the IPN (payment notification) *}
54 {if $is_pay_later}
6a488035
TO
55 <div class="bold">{$pay_later_receipt}</div>
56 {if $is_email_receipt}
0913629c
EM
57 <div>
58 {if $onBehalfEmail AND ($onBehalfEmail neq $email)}
d5be719d 59 {ts 1=$email 2=$onBehalfEmail}An email confirmation with these payment instructions has been sent to %1 and to %2.{/ts}
0913629c
EM
60 {else}
61 {ts 1=$email}An email confirmation with these payment instructions has been sent to %1.{/ts}
62 {/if}
63 </div>
64 {/if}
65 {elseif $contributeMode EQ 'notify' OR ($contributeMode EQ 'direct' && $is_recur) }
66 <div>{ts 1=$paymentProcessor.name}Your contribution has been submitted to %1 for processing. Please print this page for your records.{/ts}</div>
67 {if $is_email_receipt}
68 <div>
6a488035 69 {if $onBehalfEmail AND ($onBehalfEmail neq $email)}
d5be719d 70 {ts 1=$email 2=$onBehalfEmail}An email receipt will be sent to %1 and to %2 once the transaction is processed successfully.{/ts}
6a488035 71 {else}
0913629c 72 {ts 1=$email}An email receipt will be sent to %1 once the transaction is processed successfully.{/ts}
6a488035 73 {/if}
0913629c
EM
74 </div>
75 {/if}
76 {else}
77 <div>{ts}Your transaction has been processed successfully. Please print this page for your records.{/ts}</div>
78 {if $is_email_receipt}
79 <div>
80 {if $onBehalfEmail AND ($onBehalfEmail neq $email)}
81 {ts 1=$email 2=$onBehalfEmail}An email receipt has also been sent to %1 and to %2{/ts}
82 {else}
83 {ts 1=$email}An email receipt has also been sent to %1{/ts}
84 {/if}
85 </div>
86 {/if}
87 {/if}
88 </div>
89 <div class="spacer"></div>
6a488035 90
0913629c 91 {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="thankContribution"}
6a488035 92
f6de5cca 93 {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) }
6a488035 94 <div class="crm-group amount_display-group">
0913629c 95 {if !$useForMember}
6a488035 96 <div class="header-dark">
0913629c 97 {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem )}{ts}Contribution Information{/ts}{else}{ts}Membership Fee{/ts}{/if}
6a488035 98 </div>
0913629c
EM
99 {/if}
100 <div class="display-block">
101 {if !$useForMember}
102 {if $lineItem and $priceSetID}
103 {if !$amount}{assign var="amount" value=0}{/if}
6a488035
TO
104 {assign var="totalAmount" value=$amount}
105 {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
106 {elseif $membership_amount}
107 {$membership_name} {ts}Membership{/ts}: <strong>{$membership_amount|crmMoney}</strong><br />
108 {if $amount}
109 {if !$is_separate_payment}
110 {ts}Contribution Amount{/ts}: <strong>{$amount|crmMoney}</strong><br />
111 {else}
112 {ts}Additional Contribution{/ts}: <strong>{$amount|crmMoney}</strong><br />
113 {/if}
114 {/if}
115 <strong> -------------------------------------------</strong><br />
116 {ts}Total{/ts}: <strong>{$amount+$membership_amount|crmMoney}</strong><br />
117 {else}
a32709be
PB
118 {if $totalTaxAmount}
119 {ts}Tax Amount{/ts}: <strong>{$totalTaxAmount|crmMoney}</strong><br />
120 {/if}
577e5f19 121 {if $installments}{ts}Installment Amount{/ts}{else}{ts}Amount{/ts}{/if} : <strong>{$amount|crmMoney} {if $amount_level } - {$amount_level} {/if}</strong>
6a488035 122 {/if}
0913629c
EM
123 {/if}
124 {if $receive_date}
125 {ts}Date{/ts}: <strong>{$receive_date|crmDate}</strong><br />
126 {/if}
127 {if $contributeMode ne 'notify' and $is_monetary and ! $is_pay_later and $trxn_id}
128 {ts}Transaction #{/ts}: {$trxn_id}<br />
129 {/if}
130 {if $membership_trx_id}
131 {ts}Membership Transaction #{/ts}: {$membership_trx_id}
132 {/if}
6a488035 133
0913629c
EM
134 {* Recurring contribution / pledge information *}
135 {if $is_recur}
9cc96227 136 {if !empty($auto_renew)} {* Auto-renew membership confirmation *}
0913629c
EM
137 {crmRegion name="contribution-thankyou-recur-membership"}
138 <br />
139 {if $frequency_interval > 1}
140 <strong>{ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts}</strong>
141 {else}
142 <strong>{ts 1=$frequency_unit}This membership will be renewed automatically every %1.{/ts}</strong>
143 {/if}
144 <div class="description crm-auto-renew-cancel-info">({ts}You will receive an email receipt which includes information about how to cancel the auto-renewal option.{/ts})</div>
145 {/crmRegion}
146 {else}
147 {crmRegion name="contribution-thankyou-recur"}
148 {if $installments > 1}
b9bbb9d7 149 {if $frequency_interval > 1}
0913629c 150 <p><strong>{ts 1=$frequency_interval 2=$frequency_unit 3=$installments}This recurring contribution will be automatically processed every %1 %2s for a total %3 installments (including this initial contribution).{/ts}</strong></p>
b9bbb9d7 151 {else}
0913629c
EM
152 <p><strong>{ts 1=$frequency_unit 2=$installments}This recurring contribution will be automatically processed every %1 for a total %2 installments (including this initial contribution).{/ts}</strong></p>
153 {/if}
6a488035 154 {else}
0913629c
EM
155 {if $frequency_interval > 1}
156 <p><strong>{ts 1=$frequency_interval 2=$frequency_unit}This recurring contribution will be automatically processed every %1 %2s.{/ts}</strong></p>
0ecd7a95 157 {else}
0913629c 158 <p><strong>{ts 1=$frequency_unit}This recurring contribution will be automatically processed every %1.{/ts}</strong></p>
0ecd7a95 159 {/if}
6a488035 160 {/if}
0913629c
EM
161 <p>
162 {if $is_email_receipt}
163 {ts}You will receive an email receipt which includes information about how to update or cancel this recurring contribution.{/ts}
164 {/if}
6a488035 165 </p>
0913629c
EM
166 {/crmRegion}
167 {/if}
168 {/if}
169
170 {if $is_pledge}
171 {if $pledge_frequency_interval GT 1}
172 <p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %1 %2s for %3 installments.{/ts}</strong></p>
173 {else}
174 <p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %2 for %3 installments.{/ts}</strong></p>
175 {/if}
176 <p>
177 {if $is_pay_later}
178 {ts 1=$receiptFromEmail}We will record your initial pledge payment when we receive it from you. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}
179 {else}
180 {ts 1=$receiptFromEmail}Your initial pledge payment has been processed. You will be able to modify or cancel future pledge payments at any time by contacting us at %1.{/ts}
6a488035 181 {/if}
0913629c
EM
182 {if $max_reminders}
183 {ts 1=$initial_reminder_day}We will send you a payment reminder %1 days prior to each scheduled payment date. The reminder will include a link to a page where you can make your payment online.{/ts}
184 {/if}
185 </p>
186 {/if}
187 </div>
6a488035 188 </div>
0913629c 189 {/if}
6a488035 190
0913629c
EM
191 {if $honor_block_is_active}
192 <div class="crm-group honor_block-group">
193 <div class="header-dark">
194 {$soft_credit_type}
195 </div>
196 <div class="display-block">
197 <div class="label-left crm-section honoree_profile-section">
198 <strong>{$honorName}</strong></br>
199 {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields prefix='honor'}
200 </div>
201 </div>
202 </div>
203 {/if}
6a488035 204
0913629c
EM
205 {if $customPre}
206 <fieldset class="label-left crm-profile-view">
207 {include file="CRM/UF/Form/Block.tpl" fields=$customPre}
208 </fieldset>
209 {/if}
6a488035 210
0913629c 211 {if $pcpBlock}
6a488035 212 <div class="crm-group pcp_display-group">
0913629c
EM
213 <div class="header-dark">
214 {ts}Contribution Honor Roll{/ts}
215 </div>
216 <div class="display-block">
217 {if $pcp_display_in_roll}
218 {ts}List my contribution{/ts}
219 {if $pcp_is_anonymous}
220 <strong>{ts}anonymously{/ts}.</strong>
221 {else}
222 {ts}under the name{/ts}: <strong>{$pcp_roll_nickname}</strong><br/>
223 {if $pcp_personal_note}
224 {ts}With the personal note{/ts}: <strong>{$pcp_personal_note}</strong>
6a488035 225 {else}
0913629c 226 <strong>{ts}With no personal note{/ts}</strong>
6a488035 227 {/if}
0913629c
EM
228 {/if}
229 {else}
230 {ts}Don't list my contribution in the honor roll.{/ts}
231 {/if}
232 <br />
233 </div>
234 </div>
235 {/if}
236
237 {if $onbehalfProfile}
238 <div class="crm-group onBehalf_display-group label-left crm-profile-view">
239 {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
240 <div class="crm-section organization_email-section">
241 <div class="label">{ts}Organization Email{/ts}</div>
242 <div class="content">{$onBehalfEmail}</div>
243 <div class="clear"></div>
6a488035
TO
244 </div>
245 </div>
0913629c 246 {/if}
6a488035 247
0913629c
EM
248 {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
249 {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
250 {if $billingName or $address}
251 <div class="crm-group billing_name_address-group">
252 <div class="header-dark">
253 {ts}Billing Name and Address{/ts}
254 </div>
255 <div class="crm-section no-label billing_name-section">
256 <div class="content">{$billingName}</div>
6a488035 257 <div class="clear"></div>
0913629c
EM
258 </div>
259 <div class="crm-section no-label billing_address-section">
260 <div class="content">{$address|nl2br}</div>
261 <div class="clear"></div>
262 </div>
263 </div>
264 {/if}
6a488035 265 {/if}
0913629c
EM
266 {if $email}
267 <div class="crm-group contributor_email-group">
268 <div class="header-dark">
269 {ts}Your Email{/ts}
270 </div>
271 <div class="crm-section no-label contributor_email-section">
272 <div class="content">{$email}</div>
273 <div class="clear"></div>
274 </div>
275 </div>
6a488035 276 {/if}
0913629c 277 {/if}
6a488035 278
0913629c
EM
279 {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
280 {crmRegion name="contribution-thankyou-billing-block"}
281 <div class="crm-group credit_card-group">
6a488035 282 <div class="header-dark">
0913629c 283 {if $paymentProcessor.payment_type & 2}
6a488035 284 {ts}Direct Debit Information{/ts}
0913629c 285 {else}
6a488035 286 {ts}Credit Card Information{/ts}
0913629c 287 {/if}
6a488035 288 </div>
0913629c
EM
289 {if $paymentProcessor.payment_type & 2}
290 <div class="display-block">
291 {ts}Account Holder{/ts}: {$account_holder}<br />
292 {ts}Bank Identification Number{/ts}: {$bank_identification_number}<br />
293 {ts}Bank Name{/ts}: {$bank_name}<br />
294 {ts}Bank Account Number{/ts}: {$bank_account_number}<br />
295 </div>
296 {else}
297 <div class="crm-section no-label credit_card_details-section">
298 <div class="content">{$credit_card_type}</div>
299 <div class="content">{$credit_card_number}</div>
300 <div class="content">{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}</div>
301 <div class="clear"></div>
302 </div>
303 {/if}
304 </div>
305 {/crmRegion}
306 {/if}
6a488035 307
0913629c 308 {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="thankContribution"}
6a488035 309
0913629c
EM
310 {if $customPost}
311 <fieldset class="label-left crm-profile-view">
312 {include file="CRM/UF/Form/Block.tpl" fields=$customPost}
313 </fieldset>
314 {/if}
6a488035 315
0913629c
EM
316 <div id="thankyou_footer" class="contribution_thankyou_footer-section">
317 <p>
318 {$thankyou_footer}
319 </p>
320 </div>
321 {if $isShare}
7e8bc026 322 {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="$qParams" a=1 fe=1 h=1}{/capture}
6a488035 323 {include file="CRM/common/SocialNetwork.tpl" url=$contributionUrl title=$title pageURL=$contributionUrl}
0913629c 324 {/if}
6a488035 325</div>