We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6380efe commit b206116Copy full SHA for b206116
LocalSettings.d/base/Skin.php
@@ -49,6 +49,19 @@
49
}
50
};
51
52
+# Hide SearchBar and New Item button for anonymous users
53
+$wgHooks['BeforePageDisplay'][] = function( $out, $skin ) {
54
+ if ( !$out->getUser()->isRegistered() ) {
55
+ $out->addInlineStyle( '
56
+ #p-search,
57
+ .p-search,
58
+ #n-New-item {
59
+ display: none !important;
60
+ }
61
+ ' );
62
63
+};
64
+
65
# https://github.com/ProfessionalWiki/MardiSkin
66
wfLoadExtension( 'Bootstrap' );
67
wfLoadSkin( 'chameleon' );
0 commit comments