Difference between revisions of "MediaWiki:Common.css"
From Omi Oh My AI
(Created page with "#filehistory { display: none; } →Hides the "File history" header: #mw-imagepage-section-filehistory { display: none; } →Hides the "file history" table: ") |
|||
| Line 1: | Line 1: | ||
$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; | |||
} | |||
#filehistory { display: none; } /* Hides the "File history" header */ | #filehistory { display: none; } /* Hides the "File history" header */ | ||
#mw-imagepage-section-filehistory { display: none; } /* Hides the "file history" table */ | #mw-imagepage-section-filehistory { display: none; } /* Hides the "file history" table */ | ||
Revision as of 03:35, 11 July 2022
$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;
}
#filehistory { display: none; } /* Hides the "File history" header */
#mw-imagepage-section-filehistory { display: none; } /* Hides the "file history" table */