Skip to content

Commit

Permalink
Merge pull request #12296 from eileenmcnaughton/greeting
Browse files Browse the repository at this point in the history
Use email_greeting where possible in receipts
  • Loading branch information
seamuslee001 authored Jul 4, 2018
2 parents 15c2a99 + e74e138 commit 1374ecf
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CRM/Upgrade/Incremental/MessageTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ protected function getTemplateUpdates() {
'templates' => [
['name' => 'membership_online_receipt', 'type' => 'text'],
['name' => 'membership_online_receipt', 'type' => 'html'],
['name' => 'contribution_online_receipt', 'type' => 'text'],
['name' => 'contribution_online_receipt', 'type' => 'html'],
['name' => 'event_online_receipt', 'type' => 'text'],
['name' => 'event_online_receipt', 'type' => 'html'],
]
],
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<tr>
<td>

{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
{if $receipt_text}
<p>{$receipt_text|htmlize}</p>
{/if}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $receipt_text}
{$receipt_text}
{/if}
Expand Down Expand Up @@ -206,4 +207,4 @@
{$customName}: {$customValue}
{/if}
{/foreach}
{/if}
{/if}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<tr>
<td>
<p>{contact.email_greeting},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}

{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
<p>{$event.confirm_email_text|htmlize}</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{contact.email_greeting},

{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
{$event.confirm_email_text}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<tr>
<td>

{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
{if $receipt_text}
<p>{$receipt_text|htmlize}</p>
{/if}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{if $contact.email_greeting}{$contact.email_greeting},{/if}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $receipt_text}
{$receipt_text}
{/if}
Expand Down

0 comments on commit 1374ecf

Please sign in to comment.