Difference between revisions of "MediaWiki:Common.css"

From Hound GPS Tracker Help
Jump to: navigation, search
Line 7: Line 7:
 
div.vectorTabs ul li#ca-history {
 
div.vectorTabs ul li#ca-history {
 
   visibility: hidden;
 
   visibility: hidden;
 +
}
 +
 +
$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 09:55, 18 October 2016

/* CSS placed here will be applied to all skins */
/* remove Toolbox */
#p-tb { display:none !important; }

#footer-places { display: none; }

div.vectorTabs ul li#ca-history {
   visibility: hidden;
}

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