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.
50 lines
1021 B
PHP
50 lines
1021 B
PHP
<?php
|
|
/**
|
|
* SkinTemplate class for the Timeless skin
|
|
*
|
|
* @ingroup Skins
|
|
*/
|
|
class SkinTimeless extends SkinTemplate {
|
|
/** @var string */
|
|
public $skinname = 'timeless';
|
|
|
|
/** @var string */
|
|
public $stylename = 'Timeless';
|
|
|
|
/** @var string */
|
|
public $template = 'TimelessTemplate';
|
|
|
|
/**
|
|
* @param OutputPage $out
|
|
*/
|
|
public function initPage( OutputPage $out ) {
|
|
parent::initPage( $out );
|
|
|
|
$out->addMeta( 'viewport',
|
|
'width=device-width, initial-scale=1.0, ' .
|
|
'user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0'
|
|
);
|
|
|
|
$out->addModuleStyles( [
|
|
'mediawiki.skinning.content.externallinks',
|
|
'skins.timeless',
|
|
] );
|
|
$out->addModules( [
|
|
'skins.timeless.js',
|
|
'skins.timeless.mobile'
|
|
] );
|
|
|
|
// Basic IE support without flexbox
|
|
$out->addStyle( $this->stylename . '/resources/IE9fixes.css', 'screen', 'IE' );
|
|
}
|
|
|
|
/**
|
|
* Add CSS via ResourceLoader
|
|
*
|
|
* @param OutputPage $out
|
|
*/
|
|
public function setupSkinUserCss( OutputPage $out ) {
|
|
parent::setupSkinUserCss( $out );
|
|
}
|
|
}
|