MediaWiki:Common.css: Difference between revisions

From Yudurobotics
(Created page with "→‎CSS placed here will be applied to all skins: 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'][] = 'efA...")
 
(Blanked the page)
Tags: Blanking Manual revert
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
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 18:29, 25 February 2025