forked from konstin/stk-wiki-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSuperTuxKart.skin.php
27 lines (25 loc) · 1.02 KB
/
SuperTuxKart.skin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* SkinTemplate class for Foo Bar skin
* @ingroup Skins
*/
class SkinSuperTuxKart extends SkinTemplate {
var $skinname = 'supertuxkart',
$stylename = 'SuperTuxKart',
$template = 'SuperTuxKartTemplate',
$useHeadElement = true;
/** Add Javascript declared in SuperTuxKart.php through $wgResourceModules here **/
public function initPage(OutputPage $out) {
parent::initPage($out);
$out->addModules('skins.supertuxkart.dropdown.js');
$out->addHeadItem('scaling1', '<meta name="viewport" content="user-scalable = yes">');
$out->addHeadItem('scaling2', '<meta name="viewport" content="width=device-width, initial-scale=1.0">');
}
/** Add CSS declared in SuperTuxKart.php through $wgResourceModules here **/
function setupSkinUserCss(OutputPage $out) {
parent::setupSkinUserCss($out);
$out->addModuleStyles(array(
'skins.supertuxkart', // 'mediawiki.skinning.interface' <- default styles
));
}
}