Update for he.
[lhc/web/wiklou.git] / skins / Nostalgia.php
index 0b914bd..a7eae66 100644 (file)
@@ -1,23 +1,21 @@
 <?php
 /**
- * See skin.doc
+ * See docs/skin.txt
  *
  * @todo document
- * @package MediaWiki
- * @subpackage Skins
+ * @file
+ * @ingroup Skins
  */
 
+if( !defined( 'MEDIAWIKI' ) )
+       die( -1 );
+
 /**
  * @todo document
- * @package MediaWiki
- * @subpackage Skins
+ * @ingroup Skins
  */
 class SkinNostalgia extends Skin {
 
-       function initPage() {
-               # ...
-       }
-
        function getStylesheet() {
                return 'common/nostalgia.css';
        }
@@ -26,7 +24,6 @@ class SkinNostalgia extends Skin {
        }
 
        function doBeforeContent() {
-               global $wgUser, $wgOut, $wgTitle, $wgSiteNotice;
 
                $s = "\n<div id='content'>\n<div id='topbar'>";
                $s .= $this->logoText( "right" );
@@ -35,14 +32,16 @@ class SkinNostalgia extends Skin {
                $s .= $this->pageSubtitle() . "\n";
 
                $s .= $this->topLinks() . "\n<br />";
-               if( $wgSiteNotice ) {
-                       $s .= "\n<div id='siteNotice'>$wgSiteNotice</div>\n";
+
+               $notice = wfGetSiteNotice();
+               if( $notice ) {
+                       $s .= "\n<div id='siteNotice'>$notice</div>\n";
                }
                $s .= $this->pageTitleLinks();
 
                $ol = $this->otherLanguages();
                if($ol) $s .= "<br />" . $ol;
-               
+
                $cat = $this->getCategoryLinks();
                if($cat) $s .= "<br />" . $cat;
 
@@ -63,19 +62,23 @@ class SkinNostalgia extends Skin {
                        $s .=  $sep . $this->editThisPage()
                          . $sep . $this->historyLink();
                }
-               if ( 0 == $wgUser->getID() ) {
+               
+               /* show links to different language variants */
+               $s .= $this->variantLinks();
+               $s .= $this->extensionTabLinks();
+               
+               if ( $wgUser->isAnon() ) {
                        $s .= $sep . $this->specialLink( "userlogin" );
                } else {
                        $s .= $sep . $this->specialLink( "userlogout" );
                }
+               
                $s .= $sep . $this->specialPagesList();
 
                return $s;
        }
 
        function doAfterContent() {
-               global $wgUser, $wgOut;
-
                $s = "\n</div><br clear='all' />\n";
 
                $s .= "\n<div id='footer'><hr />";
@@ -92,4 +95,4 @@ class SkinNostalgia extends Skin {
        }
 }
 
-?>
+