MediaWiki
REL1_19
|
00001 <?php 00010 if( !defined( 'MEDIAWIKI' ) ) 00011 die( -1 ); 00012 00014 require_once( dirname(__FILE__) . '/MonoBook.php' ); 00015 00020 class SkinSimple extends SkinTemplate { 00021 var $skinname = 'simple', $stylename = 'simple', 00022 $template = 'MonoBookTemplate', $useHeadElement = true; 00023 00027 function setupSkinUserCss( OutputPage $out ) { 00028 parent::setupSkinUserCss( $out ); 00029 00030 $out->addModuleStyles( 'skins.simple' ); 00031 00032 /* Add some userprefs specific CSS styling */ 00033 $rules = array(); 00034 $underline = ""; 00035 00036 if ( $this->getUser()->getOption( 'underline' ) < 2 ) { 00037 $underline = "text-decoration: " . $this->getUser()->getOption( 'underline' ) ? 'underline !important' : 'none' . ";"; 00038 } 00039 00040 /* Also inherits from resourceloader */ 00041 if( !$this->getUser()->getOption( 'highlightbroken' ) ) { 00042 $rules[] = "a.new, a.stub { color: inherit; text-decoration: inherit;}"; 00043 $rules[] = "a.new:after { color: #CC2200; $underline;}"; 00044 $rules[] = "a.stub:after { $underline; }"; 00045 } 00046 $style = implode( "\n", $rules ); 00047 $out->addInlineStyle( $style, 'flip' ); 00048 00049 } 00050 }