\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, $wgEnableUploads; $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 { $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() { $s = "\n

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