"MediaWiki:Common.css" 修訂間的差異
出自 WebOffice
行 4: | 行 4: | ||
#footer-icons { display:none; } | #footer-icons { display:none; } | ||
− | #ca-talk { display:none!important; } | + | #ca-talk { display:none !important; } |
<!-- No [view source] tab for anonymous users --> | <!-- No [view source] tab for anonymous users --> | ||
<?php global $wgUser; if( $wgUser->isAnon() ) { ?> | <?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"> | <style type="text/css"> | ||
#ca-viewsource { display: none !important; } | #ca-viewsource { display: none !important; } | ||
</style> | </style> | ||
<?php } ?> | <?php } ?> |
於 2011年9月26日 (一) 10:09 的修訂
/* 此处的 CSS 将应用于所有的皮肤 */ #footer-places { display:none; } #footer-icons { display:none; } #ca-talk { display:none !important; } <!-- 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 } ?>