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