https://bugzilla.wikimedia.org/show_bug.cgi?id=13242

Olaf Lenz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #14 from Olaf Lenz <[email protected]> 2011-06-24 19:30:59 UTC ---
I would also like this enhancement!

Note that it is very simple to create a very simple skin that adds this class
to the body tag and otherwise is identical to one of the standard skins:

<?php

if( !defined( 'MEDIAWIKI' ) ) {
        die( -1 );
}
include 'Vector.php';

class SkinOlenz extends SkinVector {

  /* Functions */
  var $skinname = 'olenz', $stylename = 'olenz', $useHeadElement = true;

  /* Extend the body element by a class that tells whether the user is
   logged in or not */
  public function addToBodyAttributes( $out, &$bodyAttrs ) {
    if ($this->loggedin) {
      $bodyAttrs['class'] = $bodyAttrs['class'] . ' auth';
    } else {
      $bodyAttrs['class'] = $bodyAttrs['class'] . ' noauth';
    }
  }

  function setupSkinUserCss( OutputPage $out ){
     parent::setupSkinUserCss( $out );
     $out->addStyle( 'olenz/olenz.css', 'screen' );
  }

}

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to