X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=skins%2FNostalgia.php;h=3b19e41e6406bb190762d2e651c146cafb2a077c;hb=df51ff0949027386465fd56abc4d2e7d332865a1;hp=301bbf0338e7194d5d445aa8803b576c5ee069a8;hpb=fd758aaa3c619ed1f3058117b55e61a3b59f8a63;p=lhc%2Fweb%2Fwiklou.git diff --git a/skins/Nostalgia.php b/skins/Nostalgia.php index 301bbf0338..3b19e41e64 100644 --- a/skins/Nostalgia.php +++ b/skins/Nostalgia.php @@ -1,24 +1,30 @@ \n
"; $s .= $this->logoText( "right" ); @@ -27,14 +33,16 @@ class SkinNostalgia extends Skin { $s .= $this->pageSubtitle() . "\n"; $s .= $this->topLinks() . "\n
"; - if( $wgSiteNotice ) { - $s .= "\n
$wgSiteNotice
\n"; + + $notice = wfGetSiteNotice(); + if( $notice ) { + $s .= "\n
$notice
\n"; } $s .= $this->pageTitleLinks(); $ol = $this->otherLanguages(); if($ol) $s .= "
" . $ol; - + $cat = $this->getCategoryLinks(); if($cat) $s .= "
" . $cat; @@ -44,8 +52,7 @@ class SkinNostalgia extends Skin { return $s; } - function topLinks() - { + function topLinks() { global $wgOut, $wgUser; $sep = " |\n"; @@ -56,20 +63,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; - + function doAfterContent() { $s = "\n

\n"; $s .= "\n