Skip to content

Commit

Permalink
Additional_Email_Greetings_in_workflow_message_templates
Browse files Browse the repository at this point in the history
  • Loading branch information
magnolia61 committed Oct 13, 2019
1 parent 491e51a commit 9565e25
Show file tree
Hide file tree
Showing 25 changed files with 64 additions and 30 deletions.
31 changes: 31 additions & 0 deletions CRM/Upgrade/Incremental/MessageTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,37 @@ protected function getTemplateUpdates() {
['name' => 'pledge_acknowledge', 'type' => 'html'],
],
],
[
'version' => '5.20.alpha1',
'upgrade_descriptor' => ts('Aditional email greetings and translation fixes'),
'templates' => [
['name' => 'contribution_recurring_billing', 'type' => 'html'],
['name' => 'contribution_recurring_billing', 'type' => 'text'],
['name' => 'contribution_recurring_cancelled', 'type' => 'html'],
['name' => 'contribution_recurring_cancelled', 'type' => 'text'],
['name' => 'contribution_recurring_edit', 'type' => 'html'],
['name' => 'contribution_recurring_edit', 'type' => 'text'],
['name' => 'contribution_recurring_notify', 'type' => 'html'],
['name' => 'contribution_recurring_notify', 'type' => 'text']',
['name' => 'event_registration_receipt', 'type' => 'html'],
['name' => 'event_registration_receipt', 'type' => 'text'],
['name' => 'membership_autorenew_billing', 'type' => 'html'],
['name' => 'membership_autorenew_billing', 'type' => 'text'],
['name' => 'participant_cancelled', 'type' => 'html'],
['name' => 'participant_cancelled', 'type' => 'text'],
['name' => 'participant_confirm', 'type' => 'html'],
['name' => 'participant_confirm', 'type' => 'text'],
['name' => 'participant_expired', 'type' => 'html'],
['name' => 'participant_expired', 'type' => 'text'],
['name' => 'participant_transferred', 'type' => 'html'],
['name' => 'participant_transferred', 'type' => 'text'],
['name' => 'pcp_supporter_notify', 'type' => 'html'],
['name' => 'pcp_supporter_notify', 'type' => 'text'],
['name' => 'pledge_reminder', 'type' => 'html'],
['name' => 'pledge_reminder', 'type' => 'text'],
],
],

];
}

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

<tr>
<td>
<p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
<p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}</p>
</td>
</tr>
Expand Down Expand Up @@ -62,4 +62,4 @@
</center>

</body>
</html>
</html>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ts 1=$contact.display_name}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}

Expand All @@ -20,4 +20,4 @@
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}


{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<tr>
<td>
<p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
<p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}</p>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{ts 1=$contact.display_name}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<tr>
<td>
<p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
<p>{ts}Your recurring contribution has been updated as requested:{/ts}
<p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}{if $installments}{ts 1=$installments} for %1 installments{/ts}{/if}.</p>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ts 1=$contact.display_name}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{ts}Your recurring contribution has been updated as requested:{/ts}

{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}
{if $installments}{ts 1=$installments} for %1 installments.{/ts}{/if}

{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}
{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ts 1=$displayName}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{if $recur_txnType eq 'START'}
{if $auto_renew_membership}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{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}

<p>Dear {contact.display_name},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
{if $is_pay_later}
<p>
This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Dear {contact.display_name},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{if $is_pay_later}
This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.
{else}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<tr>
<td>
<p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
<p>{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}</p>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ts 1=$contact.display_name}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}

Expand All @@ -20,4 +20,4 @@
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}


{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<tr>
<td>
<p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
<p>{ts}Your Event Registration has been cancelled.{/ts}</p>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ts 1=$contact.display_name}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{ts}Your Event Registration has been cancelled.{/ts}

Expand Down
6 changes: 3 additions & 3 deletions xml/templates/message_templates/participant_confirm_html.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<tr>
<td>
<p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
</td>
</tr>
{if !$isAdditional and $participant.id}
Expand All @@ -33,13 +33,13 @@
<tr>
<td colspan="2" {$valueStyle}>
{capture assign=confirmUrl}{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$participant.id`&cs=`$checksumValue`" a=true h=0 fe=1}{/capture}
<a href="{$confirmUrl}">Go to a web page where you can confirm your registration online</a>
<a href="{$confirmUrl}">{ts}Go to a web page where you can confirm your registration online{/ts}</a>
</td>
</tr>
{/if}
{if $event.allow_selfcancelxfer }
This event allows for self-cancel or transfer
{capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participantID`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participantID`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
<a href="{$selfService}">{ts}Self service cancel transfer{/ts}</a>
{/if}

Expand Down
3 changes: 2 additions & 1 deletion xml/templates/message_templates/participant_confirm_text.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ts 1=$contact.display_name}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{if !$isAdditional and $participant.id}

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

<tr>
<td>
<p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
<p>{ts 1=$event.event_title}Your pending event registration for %1 has expired
because you did not confirm your registration.{/ts}</p>
<p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ts 1=$contact.display_name}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{ts 1=$event.event_title}Your pending event registration for %1 has expired
because you did not confirm your registration.{/ts}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<tr>
<td>
<p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
<p>{ts 1=$to_participant}Your Event Registration has been Transferred to %1.{/ts}</p>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ts 1=$contact.display_name}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{ts 1=$to_participant}Your Event Registration has been transferred to %1.{/ts}

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

<tr>
<td>
<p>{ts}Dear supporter{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
<p>{ts 1="$contribPageTitle"}Thanks for creating a personal campaign page in support of %1.{/ts}</p>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ts}Dear supporter{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{ts 1="$contribPageTitle"}Thanks for creating a personal campaign page in support of %1.{/ts}

{if $pcpStatus eq 'Approved'}
Expand Down
2 changes: 1 addition & 1 deletion xml/templates/message_templates/pledge_reminder_html.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<tr>
<td>
<p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
<p>{ts 1=$next_payment|truncate:10:''|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}</p>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion xml/templates/message_templates/pledge_reminder_text.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ts 1=$contact.display_name}Dear %1{/ts},
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}

{ts 1=$next_payment|truncate:10:''|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}

Expand Down

0 comments on commit 9565e25

Please sign in to comment.