Difference between revisions of "MediaWiki:Common.css"
(disabled view source to stop people stealing code) |
|||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
− | <!-- No [view source] tab for | + | <!-- No [view source] tab for users who can not edit --> |
− | <?php global $wgUser; if( $wgUser-> | + | <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> |
<style type="text/css"> | <style type="text/css"> | ||
#ca-viewsource { display: none !important; } | #ca-viewsource { display: none !important; } | ||
</style> | </style> | ||
− | + | <?php } ?> |
Revision as of 08:17, 4 January 2014
/* CSS placed here will be applied to all skins */ <!-- No [view source] tab for users who can not edit --> <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> <style type="text/css"> #ca-viewsource { display: none !important; } </style> <?php } ?>