Replaced all instances of <<<END (which breaks vim syntax highlighting), with a type...
[lhc/web/wiklou.git] / skins / Simple.php
index 367d393..416dc3f 100644 (file)
@@ -18,12 +18,8 @@ require_once( dirname(__FILE__) . '/MonoBook.php' );
  * @ingroup Skins
  */
 class SkinSimple extends SkinTemplate {
-       function initPage( OutputPage $out ) {
-               SkinTemplate::initPage( $out );
-               $this->skinname  = 'simple';
-               $this->stylename = 'simple';
-               $this->template  = 'MonoBookTemplate';
-       }
+       var $skinname = 'simple', $stylename = 'simple',
+               $template = 'MonoBookTemplate', $useHeadElement = true;
 
        function setupSkinUserCss( OutputPage $out ){
                $out->addStyle( 'simple/main.css', 'screen' );
@@ -40,7 +36,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 +52,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 +65,4 @@ END;
                }
                return $s;
        }
-}
\ No newline at end of file
+}