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.
45 lines
1.0 KiB
PHTML
45 lines
1.0 KiB
PHTML
9 years ago
|
<?php
|
||
|
/**
|
||
|
* SkinTemplate class for the Timeless skin
|
||
|
*
|
||
|
* @ingroup Skins
|
||
|
*/
|
||
|
class SkinTimeless extends SkinTemplate {
|
||
|
public $skinname = 'timeless', $stylename = 'Timeless',
|
||
|
$template = 'TimelessTemplate', $useHeadElement = true;
|
||
|
|
||
|
/**
|
||
8 years ago
|
* @param OutputPage $out
|
||
9 years ago
|
*/
|
||
9 years ago
|
public function initPage( OutputPage $out ) {
|
||
|
parent::initPage( $out );
|
||
9 years ago
|
|
||
7 years ago
|
$out->addMeta( 'viewport',
|
||
|
'width=device-width, initial-scale=1.0, ' .
|
||
|
'user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0'
|
||
|
);
|
||
9 years ago
|
|
||
8 years ago
|
$out->addModuleStyles( [
|
||
9 years ago
|
'mediawiki.skinning.content.externallinks',
|
||
9 years ago
|
'skins.timeless',
|
||
8 years ago
|
// 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.
|
||
9 years ago
|
'skins.timeless.misc'
|
||
8 years ago
|
] );
|
||
|
$out->addModules( [
|
||
9 years ago
|
'skins.timeless.js',
|
||
|
'skins.timeless.mobile'
|
||
8 years ago
|
] );
|
||
9 years ago
|
}
|
||
|
|
||
|
/**
|
||
|
* Add CSS via ResourceLoader
|
||
|
*
|
||
8 years ago
|
* @param OutputPage $out
|
||
9 years ago
|
*/
|
||
|
function setupSkinUserCss( OutputPage $out ) {
|
||
|
parent::setupSkinUserCss( $out );
|
||
9 years ago
|
}
|
||
|
}
|