Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
(Created page with "→CSS placed here will be applied to all skins: →http://www.mediawiki.org/wiki/Manual:Hide_page_tabs#No_tabs_for_certain_users: <!-- No [view source] tab for users wh...") |
|||
Line 2: | Line 2: | ||
/* http://www.mediawiki.org/wiki/Manual:Hide_page_tabs#No_tabs_for_certain_users */ |
/* http://www.mediawiki.org/wiki/Manual:Hide_page_tabs#No_tabs_for_certain_users */ |
||
+ | |||
+ | <!-- 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 [view source] tab for users who can not edit --> |
<!-- No [view source] tab for users who can not edit --> |
||
Line 8: | Line 15: | ||
#ca-viewsource { display: none !important; } |
#ca-viewsource { display: none !important; } |
||
</style> |
</style> |
||
− | + | <?php } ?> |
|
Line 16: | Line 23: | ||
#ca-talk { display: none !important; } |
#ca-talk { display: none !important; } |
||
</style> |
</style> |
||
− | + | <?php } ?> |
|
<!-- No [history] tab for users who can not edit --> |
<!-- No [history] tab for users who can not edit --> |
||
Line 23: | Line 30: | ||
#ca-history { display: none !important; } |
#ca-history { display: none !important; } |
||
</style> |
</style> |
||
− | + | <?php } ?> |
Revision as of 09:06, 18 April 2014
/* CSS placed here will be applied to all skins */ /* http://www.mediawiki.org/wiki/Manual:Hide_page_tabs#No_tabs_for_certain_users */ <!-- 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 [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 } ?> <!-- No [talk] tab for users who can not edit --> <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> <style type="text/css"> #ca-talk { display: none !important; } </style> <?php } ?> <!-- No [history] tab for users who can not edit --> <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> <style type="text/css"> #ca-history { display: none !important; } </style> <?php } ?>