Update some email templates

This commit is contained in:
Alex Cabal 2022-07-14 11:30:02 -05:00
parent 4baea8536d
commit e290758a9a
4 changed files with 9 additions and 6 deletions

View file

@ -8,7 +8,7 @@
<tbody>
<tr>
<td>Name:</td>
<td><?= Formatter::ToPlainText($patron->Name) ?></td>
<td><? if($patron->User->Name === null){ ?>Anonymous <? }else{ ?><?= Formatter::ToPlainText($patron->User->Name) ?><? } ?></td>
</tr>
<tr>
<td>Donation type:</td>
@ -16,11 +16,11 @@
</tr>
<tr>
<td>Donation amount:</td>
<td><?= Formatter::ToPlainText(number_format($payment->Amount)) ?></td>
<td><?= Formatter::ToPlainText(number_format($payment->Amount, 2)) ?></td>
</tr>
<tr>
<td>Donation fee:</td>
<td><?= Formatter::ToPlainText(number_format($payment->Fee)) ?></td>
<td><?= Formatter::ToPlainText(number_format($payment->Fee, 2)) ?></td>
</tr>
<tr>
<td>Transaction ID:</td>

View file

@ -1,9 +1,9 @@
Name: <?= Formatter::ToPlainText($patron->Name) ?>
Name: <? if($patron->User->Name === null){ ?>Anonymous <? }else{ ?><?= Formatter::ToPlainText($patron->User->Name) ?><? } ?>
Donation type: <? if($payment->IsRecurring){ ?>Recurring<? }else{ ?>One-time<? } ?>
Donation amount: <?= Formatter::ToPlainText(number_format($payment->Amount)) ?>
Donation amount: <?= Formatter::ToPlainText(number_format($payment->Amount, 2)) ?>
Donation fee: <?= Formatter::ToPlainText(number_format($payment->Fee)) ?>
Donation fee: <?= Formatter::ToPlainText(number_format($payment->Fee, 2)) ?>
Transaction ID: <?= Formatter::ToPlainText($payment->TransactionId) ?>

View file

@ -12,6 +12,7 @@
<p>Im pleased to be able to <? if($isReturning){ ?>welcome you back to<? }else{ ?>include you in<? } ?> our Patrons Circle, with your name listed on our masthead for the duration of your donation. If youd like to use a different name than the one you entered on our donation form, just let me know.</p>
<? } ?>
<p>As a Patron, once per quarter you may suggest a book for inclusion in our Wanted Ebooks list. Before submitting a suggestion, please review our <a href="https://standardebooks.org/contribute/collections-policy">collections policy</a>; then you can contact me directly at <a href="mailto:<?= EDITOR_IN_CHIEF_EMAIL_ADDRESS ?>"><?= EDITOR_IN_CHIEF_EMAIL_ADDRESS ?></a> with your selection.</p>
<p>You also get access to our <a href="https://standardebooks.org/feeds">ebook feeds</a> for use in your ereading app or RSS reader, and <a href="https://standardebooks.org/bulk-downloads">bulk downloads</a> to download collections of ebooks easily. To use the feeds, enter your email address when prompted, and leave the password field empty.</p>
<? if(!$isReturning){ ?><p>If I may ask, how did you hear about Standard Ebooks? Having an idea of where our readers and supporters find out about us is extremely helpful.</p><? } ?>
<p><? if($isReturning){ ?>As always, please<? }else{ ?>Please<? } ?> dont hesitate to contact me if you have questions or suggestions. Thanks again for your donation, and for supporting the literate arts!</p>
<footer style="margin-top: 2em;">

View file

@ -9,6 +9,8 @@ Im pleased to be able to <? if($isReturning){ ?>welcome you back to<? }else{
<? } ?>
As a Patron, once per quarter you may suggest a book for inclusion in our Wanted Ebooks list. Before submitting a suggestion, please review our collections policy, at <https://standardebooks.org/contribute/collections-policy>; then you can contact me directly at <?= EDITOR_IN_CHIEF_EMAIL_ADDRESS ?> with your selection.
You also get access to our ebook feeds, at <https://standardebooks.org/feeds>, for use in your ereading app or RSS reader, and bulk downloads, at <https://standardebooks.org/bulk-downloads>, to download collections of ebooks easily. To use the feeds, enter your email address when prompted, and leave the password field empty.
<? if(!$isReturning){ ?>
If I may ask, how did you hear about Standard Ebooks? Having an idea of where our readers and supporters find out about us is extremely helpful.<? } ?>