Difference between revisions of "MediaWiki:Common.css"
From Fellrnr.com, Running tips
User:Fellrnr (User talk:Fellrnr | contribs) (Created page with "→CSS placed here will be applied to all skins: #ca-watch { display: none !important; } #ca-talk { display: none !important; } <?php global $wgUser; if( $wgUser->isAnon() )...") |
User:Fellrnr (User talk:Fellrnr | contribs) |
||
Line 3: | Line 3: | ||
#ca-talk { display: none !important; } | #ca-talk { display: none !important; } | ||
<?php global $wgUser; if( $wgUser->isAnon() ) { ?> | <?php global $wgUser; if( $wgUser->isAnon() ) { ?> | ||
+ | <style type="text/css"> | ||
+ | #ca-viewsource { display: none !important; } | ||
+ | </style> | ||
+ | <?php } ?> | ||
+ | <?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 } ?> | <?php } ?> |
Revision as of 15:48, 22 April 2014
/* CSS placed here will be applied to all skins */ #ca-watch { display: none !important; } #ca-talk { display: none !important; } <?php global $wgUser; if( $wgUser->isAnon() ) { ?> <style type="text/css"> #ca-viewsource { display: none !important; } </style> <?php } ?> <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> <style type="text/css"> #ca-viewsource { display: none !important; } </style> <?php } ?>