MediaWiki REL1_34
SkinTimeless.php
Go to the documentation of this file.
1<?php
9 public $skinname = 'timeless';
10
12 public $stylename = 'Timeless';
13
15 public $template = 'TimelessTemplate';
16
20 public function initPage( OutputPage $out ) {
21 parent::initPage( $out );
22
23 $out->addMeta( 'viewport',
24 'width=device-width, initial-scale=1.0, ' .
25 'user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0'
26 );
27
28 $out->addModuleStyles( [
29 'mediawiki.skinning.content.externallinks',
30 'skins.timeless',
31 ] );
32 $out->addModules( [
33 'skins.timeless.js',
34 'skins.timeless.mobile'
35 ] );
36
37 // Basic IE support without flexbox
38 $out->addStyle( $this->stylename . '/resources/IE9fixes.css', 'screen', 'IE' );
39 }
40
46 public function setupSkinUserCss( OutputPage $out ) {
47 parent::setupSkinUserCss( $out );
48 }
49}
This is one of the Core classes and should be read at least once by any new developers.
addMeta( $name, $val)
Add a new "<meta>" tag To add an http-equiv meta tag, precede the name with "http:".
addModuleStyles( $modules)
Load the styles of one or more ResourceLoader modules on this page.
addStyle( $style, $media='', $condition='', $dir='')
Add a local or specified stylesheet, with the given media options.
addModules( $modules)
Load one or more ResourceLoader modules on this page.
Base class for template-based skins.
SkinTemplate class for the Timeless skin.
setupSkinUserCss(OutputPage $out)
Add CSS via ResourceLoader.
initPage(OutputPage $out)
string $skinname
string $stylename