X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=skins%2FNostalgia.php;h=334f1c5ff4a8c453995b04ce5947f09463449486;hb=5d4bc337ef566c716bd307d66201b11ffb80c0c7;hp=d29aaf8f65b089d3338b328286d38e0f8322c90f;hpb=0ec30e2f98b1cf1c6cfd7da8ac6bdfd4f207e920;p=lhc%2Fweb%2Fwiklou.git diff --git a/skins/Nostalgia.php b/skins/Nostalgia.php index d29aaf8f65..334f1c5ff4 100644 --- a/skins/Nostalgia.php +++ b/skins/Nostalgia.php @@ -1,84 +1,102 @@ \n
"; - $s .= $this->logoText( "right" ); + $s = "\n
\n
\n"; + $s .= ''; $s .= $this->pageTitle(); $s .= $this->pageSubtitle() . "\n"; + $s .= '
'; $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; - + 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(); } - if ( 0 == $wgUser->getID() ) { - $s .= $sep . $this->specialLink( "userlogin" ); + + /* 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" ); + $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; } function doAfterContent() { - global $wgUser, $wgOut; - $s = "\n

\n"; $s .= "\n