X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=skins%2FNostalgia.php;h=334f1c5ff4a8c453995b04ce5947f09463449486;hb=1b70ac7ff7b1b770d39242af5cba5c04a8b641fe;hp=a7eae66de8b6e427254ad5a2a665fc6630e89f12;hpb=087a9f70c5c152b72dc6c539cf64e334a0f2d029;p=lhc%2Fweb%2Fwiklou.git diff --git a/skins/Nostalgia.php b/skins/Nostalgia.php index a7eae66de8..334f1c5ff4 100644 --- a/skins/Nostalgia.php +++ b/skins/Nostalgia.php @@ -1,8 +1,7 @@ \n
"; - $s .= $this->logoText( "right" ); + $s = "\n
\n
\n"; + $s .= ''; $s .= $this->pageTitle(); $s .= $this->pageSubtitle() . "\n"; + $s .= '
'; $s .= $this->topLinks() . "\n
"; $notice = wfGetSiteNotice(); @@ -40,39 +40,57 @@ class SkinNostalgia extends Skin { $s .= $this->pageTitleLinks(); $ol = $this->otherLanguages(); - if($ol) $s .= "
" . $ol; + if( $ol ) $s .= '
' . $ol; $cat = $this->getCategoryLinks(); - if($cat) $s .= "
" . $cat; + if( $cat ) $s .= '
' . $cat; - $s .= "

\n
\n"; + $s .= "

\n
\n"; $s .= "\n
"; return $s; } function topLinks() { - global $wgOut, $wgUser; + global $wgOut, $wgUser, $wgEnableUploads; $sep = " |\n"; $s = $this->mainPageLink() . $sep - . $this->specialLink( "recentchanges" ); + . $this->specialLink( 'recentchanges' ); if ( $wgOut->isArticle() ) { - $s .= $sep . $this->editThisPage() - . $sep . $this->historyLink(); + $s .= $sep . '' . $this->editThisPage() . '' . $sep . $this->historyLink(); } - + /* show links to different language variants */ $s .= $this->variantLinks(); $s .= $this->extensionTabLinks(); - if ( $wgUser->isAnon() ) { - $s .= $sep . $this->specialLink( "userlogin" ); + $s .= $sep . $this->specialLink( 'userlogin' ); } else { - $s .= $sep . $this->specialLink( "userlogout" ); + $name = $wgUser->getName(); + /* show user page and user talk links */ + $s .= $sep . $this->link( $wgUser->getUserPage(), wfMsgHtml( 'mypage' ) ); + $s .= $sep . $this->link( $wgUser->getTalkPage(), wfMsgHtml( 'mytalk' ) ); + if ( $wgUser->getNewtalk() ) { + $s .= ' *'; + } + /* show watchlist link */ + $s .= $sep . $this->specialLink( 'watchlist' ); + /* show my contributions link */ + $s .= $sep . $this->link( + SpecialPage::getSafeTitleFor( 'Contributions', $wgUser->getName() ), + wfMsgHtml( 'mycontris' ) ); + /* show my preferences link */ + $s .= $sep . $this->specialLink( 'preferences' ); + /* show upload file link */ + if ( $wgEnableUploads ) { + $s .= $sep . $this->specialLink( 'upload' ); + } + /* show log out link */ + $s .= $sep . $this->specialLink( 'userlogout' ); } - + $s .= $sep . $this->specialPagesList(); return $s; @@ -94,5 +112,3 @@ class SkinNostalgia extends Skin { return $s; } } - -