MediaWiki:Common.css: Difference between revisions

From OneM2M-Hackathon-Dallas-2018
No edit summary
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 */


 
body.mediawiki li#ca-talk { display:none!important; }
global $wgUser;
body.mediawiki li#ca-history { display:none!important; }
 
if ( !$wgUser->isLoggedIn() ) {
body.mediawiki li#ca-talk { display:none!important; }
body.mediawiki li#ca-history { display:none!important; }
}
*/
 
 
 
<?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?>
 
    <style type="text/css">
      #ca-talk { display: none !important; }
      #ca-history { display: none !important; }
    </style>
  <?php } ?>

Revision as of 16:35, 16 February 2018

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

	body.mediawiki li#ca-talk { display:none!important; }
	body.mediawiki li#ca-history { display:none!important; }