* #siteSub (tagline) isn't headline -> replaced by div (partial fix to bug 457)
[lhc/web/wiklou.git] / skins / Simple.php
index 178f712..61564c2 100644 (file)
@@ -18,14 +18,12 @@ require_once( dirname(__FILE__) . '/MonoBook.php' );
  * @ingroup Skins
  */
 class SkinSimple extends SkinTemplate {
-       function initPage( OutputPage $out ) {
-               parent::initPage( $out );
-               $this->skinname  = 'simple';
-               $this->stylename = 'simple';
-               $this->template  = 'MonoBookTemplate';
-       }
+       var $skinname = 'simple', $stylename = 'simple',
+               $template = 'MonoBookTemplate', $useHeadElement = true;
 
        function setupSkinUserCss( OutputPage $out ){
+               parent::setupSkinUserCss( $out );
+
                $out->addStyle( 'simple/main.css', 'screen' );
                $out->addStyle( 'simple/rtl.css', '', '', 'rtl' );
        }
@@ -40,7 +38,7 @@ class SkinSimple extends SkinTemplate {
                if( $wgUser->getOption( 'highlightbroken' ) ) {
                        $s .= "a.new, #quickbar a.new { text-decoration: line-through; }\n";
                } else {
-                       $s .= <<<END
+                       $s .= <<<CSS
 a.new, #quickbar a.new,
 a.stub, #quickbar a.stub {
        color: inherit;
@@ -56,7 +54,7 @@ a.stub:after, #quickbar a.stub:after {
        color: #772233;
        text-decoration: $underline;
 }
-END;
+CSS;
                }
                if( $wgUser->getOption( 'justify' ) ) {
                        $s .= "#article, #bodyContent { text-align: justify; }\n";
@@ -69,4 +67,4 @@ END;
                }
                return $s;
        }
-}
\ No newline at end of file
+}