mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-12 00:59:46 +00:00
56 lines
1.7 KiB
PHP
56 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* Citizen - A responsive skin built from ground up for Star Citizen Wiki.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
*
|
|
* @file
|
|
* @ingroup Skins
|
|
*/
|
|
|
|
/**
|
|
* SkinTemplate class for Citizen skin
|
|
* @ingroup Skins
|
|
*/
|
|
class SkinCitizen extends SkinTemplate {
|
|
public $skinname = 'citizen', $stylename = 'Citizen',
|
|
$template = 'CitizenTemplate', $useHeadElement = true;
|
|
|
|
/**
|
|
* Initializes output page and sets up skin-specific parameters
|
|
* @param OutputPage $out Object to initialize
|
|
*/
|
|
|
|
public function initPage( OutputPage $out ) {
|
|
parent::initPage( $out );
|
|
$out->addMeta( 'viewport', 'width=device-width, initial-scale=1' );
|
|
$out->addModules( 'skins.citizen.js' );
|
|
$out->addHeadItem("manifest", '<link rel="manifest" href="../manifest.json">
|
|
');
|
|
}
|
|
|
|
/**
|
|
* Add CSS via ResourceLoader
|
|
*
|
|
* @param $out OutputPage
|
|
*/
|
|
function setupSkinUserCss( OutputPage $out ) {
|
|
parent::setupSkinUserCss( $out );
|
|
$out->addModuleStyles( array(
|
|
'mediawiki.skinning.interface', 'skins.citizen'
|
|
) );
|
|
}
|
|
} |