Declare skin styles and scripts in the skin manifest as options

For you consideration. We will be aiming to do this in all Wikimedia
deployed skins so it would be great to have Timeless consistent with
those.

Change-Id: I11a8e0c8ca01b2c7eb2acc0b84ea4ad9301d3d8f
isekai
jdlrobson 4 years ago committed by Isarra
parent 5e2291df6d
commit 84202757e2

@ -17,10 +17,6 @@ class SkinTimeless extends SkinTemplate {
public function initPage( OutputPage $out ) { public function initPage( OutputPage $out ) {
parent::initPage( $out ); parent::initPage( $out );
$out->addModules( [
'skins.timeless.js'
] );
// Basic IE support without flexbox // Basic IE support without flexbox
$out->addStyle( $this->stylename . '/resources/IE9fixes.css', 'screen', 'IE' ); $out->addStyle( $this->stylename . '/resources/IE9fixes.css', 'screen', 'IE' );
} }

@ -21,6 +21,9 @@
"styles": [ "styles": [
"mediawiki.skinning.content.externallinks", "mediawiki.skinning.content.externallinks",
"skins.timeless" "skins.timeless"
],
"scripts": [
"skins.timeless.js"
] ]
} }
] ]

Loading…
Cancel
Save