mirror of
https://github.com/Hutchy68/pivot.git
synced 2024-11-21 18:09:03 +01:00
Adding back parent::initPage($out) because it is needed in MW 1.27
This commit is contained in:
parent
b4c88e79f3
commit
56a6ed08e7
@ -11,6 +11,15 @@
|
|||||||
class SkinPivot extends SkinTemplate {
|
class SkinPivot extends SkinTemplate {
|
||||||
public $skinname = 'pivot', $stylename = 'pivot', $template = 'pivotTemplate', $useHeadElement = true;
|
public $skinname = 'pivot', $stylename = 'pivot', $template = 'pivotTemplate', $useHeadElement = true;
|
||||||
|
|
||||||
|
public function initPage(OutputPage $out) {
|
||||||
|
parent::initPage($out);
|
||||||
|
global $wgLocalStylePath;
|
||||||
|
|
||||||
|
$viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0';
|
||||||
|
$out->addMeta('viewport', $viewport_meta);
|
||||||
|
$out->addModuleScripts('skins.pivot.js');
|
||||||
|
}
|
||||||
|
|
||||||
public function setupSkinUserCss(OutputPage $out) {
|
public function setupSkinUserCss(OutputPage $out) {
|
||||||
parent::setupSkinUserCss($out);
|
parent::setupSkinUserCss($out);
|
||||||
global $wgLocalStylePath;
|
global $wgLocalStylePath;
|
||||||
@ -36,9 +45,6 @@ class SkinPivot extends SkinTemplate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$out->addModuleStyles('skins.pivot.styles');
|
$out->addModuleStyles('skins.pivot.styles');
|
||||||
$viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0';
|
|
||||||
$out->addMeta('viewport', $viewport_meta);
|
|
||||||
$out->addModuleScripts('skins.pivot.js');
|
|
||||||
if ( $wgPivotFeatures['preloadFontAwesome'] ) {
|
if ( $wgPivotFeatures['preloadFontAwesome'] ) {
|
||||||
$out->addHeadItem('font', '<link rel="preload" href="'.$wgLocalStylePath.'/pivot/assets/fonts/fontawesome-webfont.woff2?v=4.7.0" as="font" type="font/woff2" crossorigin="anonymous" />');
|
$out->addHeadItem('font', '<link rel="preload" href="'.$wgLocalStylePath.'/pivot/assets/fonts/fontawesome-webfont.woff2?v=4.7.0" as="font" type="font/woff2" crossorigin="anonymous" />');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user