You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1007 B
PHP
42 lines
1007 B
PHP
<?php
|
|
/**
|
|
* SkinTemplate class for the Timeless skin
|
|
*
|
|
* @ingroup Skins
|
|
*/
|
|
class SkinTimeless extends SkinTemplate {
|
|
public $skinname = 'timeless', $stylename = 'Timeless',
|
|
$template = 'TimelessTemplate', $useHeadElement = true;
|
|
|
|
/**
|
|
* @param OutputPage $out
|
|
*/
|
|
public function initPage( OutputPage $out ) {
|
|
parent::initPage( $out );
|
|
|
|
$out->addMeta( 'viewport', 'width=device-width, initial-scale=1, maximum-scale=1' );
|
|
|
|
$out->addModuleStyles( [
|
|
'mediawiki.skinning.content.externallinks',
|
|
'skins.timeless',
|
|
// This is a separate module from skins.timeless because it has its own
|
|
// @media declarations in its less, and apparently modules cannot be defined
|
|
// with both. That is the only reason.
|
|
'skins.timeless.misc'
|
|
] );
|
|
$out->addModules( [
|
|
'skins.timeless.js',
|
|
'skins.timeless.mobile'
|
|
] );
|
|
}
|
|
|
|
/**
|
|
* Add CSS via ResourceLoader
|
|
*
|
|
* @param OutputPage $out
|
|
*/
|
|
function setupSkinUserCss( OutputPage $out ) {
|
|
parent::setupSkinUserCss( $out );
|
|
}
|
|
}
|