mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-27 23:50:30 +00:00
Drop MinervaEnableSiteNotice
This will make site notices display across the site as intended. The config flag doesn't seem warranted - site notices should display across all skins as they may contain important information. This is preventing wikidata page banners from displaying in Minerva. If this is controversial I can do a config-only change for Wikivoyages Bug: T254391 Change-Id: I34c5e762b967ea94e33025e87f3446e8e029bc91
This commit is contained in:
parent
d69911854e
commit
33e5c1eb79
|
@ -28,14 +28,6 @@ The following configuration options will apply only to the default mobile skin -
|
|||
Whether to show the language switcher button even if no languages are available
|
||||
for the page.
|
||||
|
||||
#### $wgMinervaEnableSiteNotice
|
||||
|
||||
* Type: `Boolean`
|
||||
* Default: `false`
|
||||
|
||||
Controls whether site notices should be shown.
|
||||
See <https://www.mediawiki.org/wiki/Manual:$wgSiteNotice>.
|
||||
|
||||
#### $wgMinervaCountErrors
|
||||
* Type: `Boolean`
|
||||
* Default: `false`
|
||||
|
|
|
@ -589,11 +589,9 @@ class SkinMinerva extends SkinTemplate {
|
|||
protected function prepareBanners( BaseTemplate $tpl ) {
|
||||
// Make sure Zero banner are always on top
|
||||
$banners = [ '<div id="siteNotice"></div>' ];
|
||||
if ( $this->getConfig()->get( 'MinervaEnableSiteNotice' ) ) {
|
||||
$siteNotice = $this->getSiteNotice();
|
||||
if ( $siteNotice ) {
|
||||
$banners[] = $siteNotice;
|
||||
}
|
||||
$siteNotice = $this->getSiteNotice();
|
||||
if ( $siteNotice ) {
|
||||
$banners[] = $siteNotice;
|
||||
}
|
||||
$tpl->set( 'banners', $banners );
|
||||
// These banners unlike 'banners' show inside the main content chrome underneath the
|
||||
|
|
Loading…
Reference in a new issue