MediaWiki:Common.css: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
# | $wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous'; | ||
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) { | |||
global $wgUser; | |||
if ( !$wgUser->isLoggedIn() ) { | |||
$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }'; | |||
} | |||
return true; | |||
} | } | ||
Revision as of 08:14, 27 May 2026
/* CSS placed here will be applied to all skins */
$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
global $wgUser;
if ( !$wgUser->isLoggedIn() ) {
$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }';
}
return true;
}