MediaWiki  REL1_21
Simple.php
Go to the documentation of this file.
00001 <?php
00025 if( !defined( 'MEDIAWIKI' ) )
00026         die( -1 );
00027 
00029 require_once( __DIR__ . '/MonoBook.php' );
00030 
00035 class SkinSimple extends SkinTemplate {
00036         var $skinname = 'simple', $stylename = 'simple',
00037                 $template = 'MonoBookTemplate', $useHeadElement = true;
00038 
00042         function setupSkinUserCss( OutputPage $out ) {
00043                 parent::setupSkinUserCss( $out );
00044 
00045                 $out->addModuleStyles( 'skins.simple' );
00046 
00047                 /* Add some userprefs specific CSS styling */
00048                 $rules = array();
00049                 $underline = "";
00050 
00051                 if ( $this->getUser()->getOption( 'underline' ) < 2 ) {
00052                         $underline = "text-decoration: " . $this->getUser()->getOption( 'underline' ) ? 'underline !important' : 'none' . ";";
00053                 }
00054                 $style = implode( "\n", $rules );
00055                 $out->addInlineStyle( $style, 'flip' );
00056 
00057         }
00058 }