\n
\n";
+ $s .= '
' . $this->logoText( 'right' ) . '
';
$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
";
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