Actions

MediaWiki

Difference between revisions of "Common.css"

From Montana Tech High Performance Computing

Line 5: Line 5:
 
#ca-talk { display:none!important; }
 
#ca-talk { display:none!important; }
  
<!-- No [view source] tab for users who can not edit -->
+
 
<?php global $wgUser; if( $wgUser->isLoggedIn() ) { ?>
+
        if ( !$wgUser->isAllowed( 'edit' ) ) {
      <style type="text/css">
+
         #ca-viewsource { display:none !important; };
         #ca-viewsource { display:none !important; }
+
        }
      </style>
 
    <?php } ?>
 

Revision as of 20:29, 25 August 2017

/* CSS placed here will be applied to all skins */



#ca-talk { display:none!important; }	


        if ( !$wgUser->isAllowed( 'edit' ) ) {
        #ca-viewsource { display:none !important; };
        }