diff --git a/ScratchWikiSkin.skin.php b/ScratchWikiSkin.skin.php index fbfdea1..45087f4 100644 --- a/ScratchWikiSkin.skin.php +++ b/ScratchWikiSkin.skin.php @@ -5,7 +5,7 @@ * @file * @ingroup Skins */ - + use MediaWiki\MediaWikiServices; class HTMLColorField extends HTMLFormField { @@ -78,6 +78,13 @@ static function onGetPreferences( $user, &$preferences ) { // Only expose background color preference when the skin is selected 'hide-if' => [ '!==', 'wpskin', 'scratchwikiskin2' ], ]; + $preferences['scratchwikiskin-hide-explore-tabs'] = [ + 'type' => 'toggle', + 'section' => 'rendering/skin', + 'label-message' => 'scratchwikiskin-pref-explore-tabs', + 'help-message' => 'scratchwikiskin-pref-explore-tabs-help', + 'hide-if' => [ '!==', 'wpskin', 'scratchwikiskin2' ], + ]; return true; } } diff --git a/ScratchWikiSkinTemplate.php b/ScratchWikiSkinTemplate.php index e43884e..99ec88e 100644 --- a/ScratchWikiSkinTemplate.php +++ b/ScratchWikiSkinTemplate.php @@ -101,11 +101,10 @@ public function execute() { isAnon()) { ?>=wfMessage( 'scratchwikiskin-notloggedin' )->inLanguage( $wgLang )->escaped()?>=htmlspecialchars($wgUser->getName())?>