Difference between revisions of "MediaWiki:Common.css"
From The Viking Age Compendium
| Line 3: | Line 3: | ||
/* #ca-history { display:none!important; } */ | /* #ca-history { display:none!important; } */ | ||
| − | /* No [history] tab for anonymous users | + | /* No [history] tab for anonymous users |
<?php global $wgUser; if( $wgUser->isAnon() ) { ?> | <?php global $wgUser; if( $wgUser->isAnon() ) { ?> | ||
| + | <style type="text/css"> | ||
| + | #ca-history { display: none !important; } | ||
| + | </style> | ||
| + | <?php } ?> */ | ||
| + | |||
| + | <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> | ||
<style type="text/css"> | <style type="text/css"> | ||
#ca-history { display: none !important; } | #ca-history { display: none !important; } | ||
</style> | </style> | ||
<?php } ?> | <?php } ?> | ||
Revision as of 16:52, 8 August 2012
/* CSS placed here will be applied to all skins */
/* #ca-history { display:none!important; } */
/* No [history] tab for anonymous users
<?php global $wgUser; if( $wgUser->isAnon() ) { ?>
<style type="text/css">
#ca-history { display: none !important; }
</style>
<?php } ?> */
<?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?>
<style type="text/css">
#ca-history { display: none !important; }
</style>
<?php } ?>