MediaWiki REL1_31
SkinTimeless.php
Go to the documentation of this file.
1<?php
8 public $skinname = 'timeless', $stylename = 'Timeless',
9 $template = 'TimelessTemplate';
10
14 public function initPage( OutputPage $out ) {
15 parent::initPage( $out );
16
17 $out->addMeta( 'viewport',
18 'width=device-width, initial-scale=1.0, ' .
19 'user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0'
20 );
21
22 $out->addModuleStyles( [
23 'mediawiki.skinning.content.externallinks',
24 'skins.timeless',
25 // This is a separate module from skins.timeless because it has its own
26 // @media declarations in its less, and apparently modules cannot be defined
27 // with both. That is the only reason.
28 'skins.timeless.misc'
29 ] );
30 $out->addModules( [
31 'skins.timeless.js',
32 'skins.timeless.mobile'
33 ] );
34 }
35
42 parent::setupSkinUserCss( $out );
43 }
44}
This class should be covered by a general architecture document which does not exist as of January 20...
Base class for template-based skins.
SkinTemplate class for the Timeless skin.
setupSkinUserCss(OutputPage $out)
Add CSS via ResourceLoader.
initPage(OutputPage $out)
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
Definition hooks.txt:864