MediaWiki:Common.css: Difference between revisions

From OneM2M-Hackathon-Dallas-2018
(Created page with "→‎CSS placed here will be applied to all skins: $wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous'; function wfHideVariousTabsFromAnonymous( &$hidet...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
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 ) {
body.mediawiki li#ca-talk { display:none!important; }
global $wgUser;
body.mediawiki li#ca-history { display:none!important; }


if ( !$wgUser->isLoggedIn() ) {
*/
/* $hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }'; */
                $hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-talk, .vectorMenu { display: none; }';
}
 
return true;
}

Latest revision as of 16:38, 16 February 2018

/* CSS placed here will be applied to all skins

	body.mediawiki li#ca-talk { display:none!important; }
	body.mediawiki li#ca-history { display:none!important; }

 */