\n
\n"; $s .= ''; $s .= $this->pageTitle(); $s .= $this->pageSubtitle() . "\n"; $s .= '
'; $s .= $this->topLinks() . "\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; } $s .= "

\n
\n"; $s .= "\n
"; return $s; } function topLinks() { global $wgOut, $wgUser; $sep = " |\n"; $s = $this->mainPageLink() . $sep . $this->specialLink( 'Recentchanges' ); if ( $wgOut->isArticle() ) { $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' ); } else { /* 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( UploadBase::isEnabled() && UploadBase::isAllowed( $wgUser ) === true ) { $s .= $sep . $this->getUploadLink(); } /* show log out link */ $s .= $sep . $this->specialLink( 'Userlogout' ); } $s .= $sep . $this->specialPagesList(); return $s; } function doAfterContent() { $s = "\n

\n"; $s .= "\n\n\n"; return $s; } }