(Created page with "→CSS placed here will be applied to all skins: $wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous'; function wfHideVariousTabsFromAnonymous( &$hidet...") |
|||
Line 6: | Line 6: | ||
if ( !$wgUser->isLoggedIn() ) { | if ( !$wgUser->isLoggedIn() ) { | ||
$hidetabcss .= 'li#t-whatlinkshere, li#t-recentchangeslinked, li#t-specialpages, li#t-permalink, li#t-info, . | $hidetabcss .= 'li#t-whatlinkshere, li#t-recentchangeslinked, li#t-specialpages, li#t-permalink, li#t-info, .bouquetMenu { display: none; }'; | ||
} | } | ||
return true; | return true; | ||
} | } |
Revision as of 20:25, 18 November 2021
/* CSS placed here will be applied to all skins */ $wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous'; function wfHideVariousTabsFromAnonymous( &$hidetabcss ) { global $wgUser; if ( !$wgUser->isLoggedIn() ) { $hidetabcss .= 'li#t-whatlinkshere, li#t-recentchangeslinked, li#t-specialpages, li#t-permalink, li#t-info, .bouquetMenu { display: none; }'; } return true; }