MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins | /* CSS placed here will be applied to all skins | ||
Line 8: | Line 8: | ||
body.mediawiki li#ca-history { display:none!important; } | body.mediawiki li#ca-history { display:none!important; } | ||
} | } | ||
*/ | |||
<?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> | |||
<style type="text/css"> | |||
#ca-talk { display: none !important; } | |||
#ca-history { display: none !important; } | |||
</style> | |||
<?php } ?> |
Revision as of 16:31, 16 February 2018
/* CSS placed here will be applied to all skins global $wgUser; if ( !$wgUser->isLoggedIn() ) { body.mediawiki li#ca-talk { display:none!important; } body.mediawiki li#ca-history { display:none!important; } } */ <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> <style type="text/css"> #ca-talk { display: none !important; } #ca-history { display: none !important; } </style> <?php } ?>