3 * Simple: A lightweight skin with a simple white-background sidebar and no
10 if( !defined( 'MEDIAWIKI' ) )
14 require_once( dirname(__FILE__
) . '/MonoBook.php' );
17 * Inherit main code from SkinTemplate, set the CSS and template filter.
20 class SkinSimple
extends SkinTemplate
{
21 var $skinname = 'simple', $stylename = 'simple',
22 $template = 'MonoBookTemplate', $useHeadElement = true;
25 * @param $out OutputPage
27 function setupSkinUserCss( OutputPage
$out ) {
28 parent
::setupSkinUserCss( $out );
30 $out->addModuleStyles( 'skins.simple' );
32 /* Add some userprefs specific CSS styling */
36 if ( $this->getUser()->getOption( 'underline' ) < 2 ) {
37 $underline = "text-decoration: " . $this->getUser()->getOption( 'underline' ) ?
'underline !important' : 'none' . ";";
39 $style = implode( "\n", $rules );
40 $out->addInlineStyle( $style, 'flip' );