Rename some Formatter functions for clarity

This commit is contained in:
Alex Cabal 2024-01-17 16:04:30 -06:00
parent 5ef6d3aef8
commit f7ff76bf7d
39 changed files with 194 additions and 194 deletions

View file

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