Replace math in template with variable, smarty3 support
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 14 Nov 2023 22:59:59 +0000 (11:59 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 14 Nov 2023 22:59:59 +0000 (11:59 +1300)
commit678aad797bfa0d0672c7ef5964cbc4bd8ff1b3a9
treeb470fa710cd786c7cdfd596ae42ac24206071954
parent6d96a2434aceaba05548c33c14778902165d76e7
Replace math in template with variable, smarty3 support

The handling for math in smarty2 & 3 differs wrt precedence, when used
with a modifier. It's a bit tricky supporting both but in this
case we can simply rely on another key in the array that already exists
and is equivalent

Note that the membership online template is excluded deliberately for now
as it does not currently access the same lineItems variable
as all the other templates
xml/templates/message_templates/contribution_offline_receipt_html.tpl
xml/templates/message_templates/contribution_offline_receipt_text.tpl
xml/templates/message_templates/contribution_online_receipt_html.tpl
xml/templates/message_templates/contribution_online_receipt_text.tpl
xml/templates/message_templates/event_online_receipt_text.tpl
xml/templates/message_templates/membership_offline_receipt_html.tpl
xml/templates/message_templates/membership_offline_receipt_text.tpl