mirror of
https://github.com/Hutchy68/pivot.git
synced 2024-11-24 19:39:04 +01:00
Merge branch 'develop'
This commit is contained in:
commit
15cce18901
@ -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