HomePhabricator

Banner diet mixin

Authored by awight.

Description

Banner diet mixin

Provides the same functionality as [1], but in a mixin. This allows CentralNotice
to avoid loading the banner if it's not going to be displayed, and makes the
configuration knobs available in campaign settings.

[1] https://meta.wikimedia.org/wiki/MediaWiki:CentralNotice/Resources/BannerShowHideCountDate.js

TODO:

  • In a followup patch, add code which migrates away from cookie to localstorage when available.

Bug: T112017
Change-Id: Ia27bd9e164160eab70f6d42bfee50e50640cbaae

Details

Committed
awightOct 1 2015, 12:19 AM
Parents
rECNO56d83108b234: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
Ia27bd9e164160eab70f6d42bfee50e50640cbaae