Actions

MediaWiki

Difference between revisions of "Common.css"

From Montana Tech High Performance Computing

 
(24 intermediate revisions by the same user not shown)
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 users who can not edit -->
 
<?php global $wgUser; if( !$wgUser->isLoggedIn() ) { ?>
 
      <style type="text/css">
 
        #ca-viewsource { display: none !important; }
 
      </style>
 
    <?php } ?>
 
 
 
 
$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';
 
 
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
 
global $wgUser;
 
 
if ( !$wgUser->isLoggedIn() ) {
 
$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }';
 
}
 
 
return true;
 
}
 

Latest revision as of 20:28, 25 August 2017

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