Last modified: 2013-09-04 17:00:16 UTC
for example, "getNoticeField", getDailyDonationAmount, etc... These functions were added to support specific banner messages, and do not belong here. However, we probably do want a general facility that allows banner messages to include specific PHP files which generate text from info available only on the backend.
https://gerrit.wikimedia.org/r/#/c/45257/ is related to this as it would remove the need for some of the globals currently implemented in CentralNotice.
I'm thinking with the concept of banner mixins (code that we download parallel to the banner and then execute before banner DOM injection) we'll be able to remove this cruft. But we're stuck with it for now until we implement them. getDailyDonationAmount will also require us to 'fix' contribution tracking in whatever form that takes.
These magic words have been reimplemented using banner mixins. Please see http://www.mediawiki.org/wiki/Extension:CentralNotice/Banner_mixins