Actions

MediaWiki

Difference between revisions of "Common.css"

From Montana Tech High Performance Computing

 
(12 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 */
 
 
 
/* #ca-talk { display:none!important; } */
 
 
 
 
 
if( !getUser->isLoggedIn() ) {
 
        #ca-talk { display:none!important; }
 
}
 
 
function efAddSkinStyles(OutputPage &$out, Skin &$skin) {
 
    if(!$skin->getUser()->isLoggedIn()) {
 
        if ($skin->getSkinName() == 'vector') {
 
            $out->addInlineStyle('#ca-history { display:none; }');
 
        }
 
    } else {
 
        if ($skin->getSkinName() == 'vector') {
 
            $out->addInlineStyle('#ca-view { display:none; }');
 
        }
 
    }
 
 
    return true;
 
}
 
$wgHooks['BeforePageDisplay'][] = 'efAddSkinStyles';
 

Latest revision as of 21:28, 25 August 2017

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