Actions

MediaWiki

Difference between revisions of "Common.css"

From Montana Tech High Performance Computing

Line 14: Line 14:
 
function efAddSkinStyles(OutputPage &$out, Skin &$skin) {
 
function efAddSkinStyles(OutputPage &$out, Skin &$skin) {
 
     if(!$skin->getUser()->isLoggedIn()) {
 
     if(!$skin->getUser()->isLoggedIn()) {
        if ($skin->getSkinName() == 'vector') {
+
                #ca-talk { display:none!important; };
            $out->addInlineStyle('#ca-history { display:none; }');
+
 
        }
 
 
     } else {
 
     } else {
        if ($skin->getSkinName() == 'vector') {
+
                #ca-view { display:none!important; };
            $out->addInlineStyle('#ca-view { display:none; }');
+
 
        }
 
 
     }
 
     }
  

Revision as of 20:01, 25 August 2017

/* 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()) {
                #ca-talk { display:none!important; };

    } else {
                #ca-view { display:none!important; };

    }

    return true;
}
$wgHooks['BeforePageDisplay'][] = 'efAddSkinStyles';