Difference between revisions of "MediaWiki:Common.css"
Line 5: | Line 5: | ||
<style type="text/css"> | <style type="text/css"> | ||
#ca-viewsource { display: none !important; } | #ca-viewsource { display: none !important; } | ||
+ | </style> | ||
+ | <?php } ?> | ||
+ | |||
+ | <!-- No [edit] tab for anonymous users --> | ||
+ | <?php global $wgUser; if( $wgUser->isAnon() ) { ?> | ||
+ | <style type="text/css"> | ||
+ | #ca-edit { display: none !important; } | ||
</style> | </style> | ||
<?php } ?> | <?php } ?> |
Revision as of 03:56, 23 January 2018
/* CSS placed here will be applied to all skins */ <!-- No [view source] tab for anonymous users --> <?php global $wgUser; if( $wgUser->isAnon() ) { ?> <style type="text/css"> #ca-viewsource { display: none !important; } </style> <?php } ?> <!-- No [edit] tab for anonymous users --> <?php global $wgUser; if( $wgUser->isAnon() ) { ?> <style type="text/css"> #ca-edit { display: none !important; } </style> <?php } ?>