mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-25 06:47:16 +00:00
58 lines
1.2 KiB
PHP
58 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* SkinTemplate class for the Citizen skin
|
|
*
|
|
* @ingroup Skins
|
|
*/
|
|
class SkinCitizen extends SkinTemplate {
|
|
public $skinname = 'citizen',
|
|
$stylename = 'Citizen',
|
|
$template = 'CitizenTemplate';
|
|
|
|
/**
|
|
* ResourceLoader
|
|
*
|
|
* @param $out OutputPage
|
|
*/
|
|
public function initPage( OutputPage $out ) {
|
|
// Responsive layout
|
|
$out->addMeta( 'viewport',
|
|
'width=device-width, initial-scale=1'
|
|
);
|
|
// Edge compatibility
|
|
$out->addMeta( 'http:X-UA-Compatible',
|
|
'IE=edge'
|
|
);
|
|
|
|
$out->addModuleStyles( [
|
|
'mediawiki.skinning.content.externallinks',
|
|
'skins.citizen',
|
|
'skins.citizen.icons',
|
|
'skins.citizen.icons.ca',
|
|
'skins.citizen.icons.p',
|
|
'skins.citizen.icons.toc',
|
|
'skins.citizen.icons.es',
|
|
'skins.citizen.icons.n',
|
|
'skins.citizen.icons.t',
|
|
'skins.citizen.icons.pt',
|
|
'skins.citizen.icons.footer',
|
|
'skins.citizen.icons.badges'
|
|
] );
|
|
$out->addModules( [
|
|
'skins.citizen.js'
|
|
] );
|
|
}
|
|
|
|
public static function BeforePageDisplay($out, $skin) {
|
|
$out->addModules( 'skins.citizen.bpd' );
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @param $out OutputPage
|
|
*/
|
|
function setupSkinUserCss( OutputPage $out ) {
|
|
parent::setupSkinUserCss( $out );
|
|
}
|
|
}
|