MediaWiki:Common.css: Difference between revisions

From EMC23 - Satellite Of Love
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
#ca-history { display: none !important;}
#ca-history { display: none !important;}
#ca-watch { display: none !important; }
#ca-watch { display: none !important; }
#ca-viewsource { display: none !important; }
#ca-view { display: none !important; }


$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';
$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';

Latest revision as of 09:31, 5 December 2022

/* CSS placed here will be applied to all skins */

#ca-nstab-main { display: none !important; }
#ca-talk { display: none !important; }
#ca-history { display: none !important;}
#ca-watch { display: none !important; }
#ca-viewsource { display: none !important; }
#ca-view { display: none !important; }


$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;
}