MediaWiki:Common.css: Difference between revisions

From EMC23 - Satellite Of Love
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
#ca-talk { display: none !important; }
#ca-talk { display: none !important; }
#ca-history { 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;
}

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