MediaWiki REL1_30
Hooks.php
Go to the documentation of this file.
1<?php
23 public static function onBeforePageDisplayMobile( OutputPage $out, $sk ) {
24 // This makes Vector behave in responsive mode when MobileFrontend is installed
25 if ( $sk instanceof SkinVector ) {
26 $sk->enableResponsiveMode();
27 }
28 }
29}
This class should be covered by a general architecture document which does not exist as of January 20...
SkinTemplate class for Vector skin.
Hooks.php.
Definition Hooks.php:13
static onBeforePageDisplayMobile(OutputPage $out, $sk)
BeforePageDisplayMobile hook handler.
Definition Hooks.php:23
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:862