7 * Hook handlers for Vector skin.
9 * Hook handler method names should be in the form of:
15 * BeforePageDisplayMobile hook handler
17 * Make Vector responsive when operating in mobile mode (useformat=mobile)
19 * @see https://www.mediawiki.org/wiki/Extension:MobileFrontend/BeforePageDisplayMobile
20 * @param OutputPage $out
21 * @param SkinTemplate $sk
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();