MediaWiki:Common.css: Difference between revisions

From The New York Botanical Garden
Jump to navigation Jump to search
(Created page with "→‎CSS placed here will be applied to all skins: <!-- No [view source] tab for anonymous users --> <?php global $wgUser; if( $wgUser->isAnon() ) { ?> <style type="tex...")
 
No edit summary
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 anonymous users -->
<!-- No [view source] tab for users who can not edit -->
<?php global $wgUser; if( $wgUser->isAnon() ) { ?>
<?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?>
       <style type="text/css">
       <style type="text/css">
         #ca-view { display: none !important; }
         #ca-viewsource { display: none !important; }
        #ca-edit { display: none !important; }
     
       </style>  
       </style>  
     <?php } ?>
     <?php } ?>

Revision as of 15:02, 16 March 2016

/* 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 } ?>