MediaWiki REL1_33
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 // This is a separate module from skins.timeless because it has its own
32 // @media declarations in its less, and apparently modules cannot be defined
33 // with both. That is the only reason.
34 'skins.timeless.misc'
35 ] );
36 $out->addModules( [
37 'skins.timeless.js',
38 'skins.timeless.mobile'
39 ] );
40 }
41
47 public function setupSkinUserCss( OutputPage $out ) {
48 parent::setupSkinUserCss( $out );
49 }
50}
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)
string $skinname
string $stylename
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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:855