";
$notice = wfGetSiteNotice();
if( $notice ) {
$s .= "\n
$notice
\n";
}
$s .= $this->pageTitle();
$s .= $this->pageSubtitle() . "\n";
return $s;
}
function doAfterContent(){
global $wgLang;
$s = "\n
";
$sep = '
';
$s .= $this->menuHead( 'qbfind' );
$s .= $this->searchForm();
$s .= $this->menuHead( 'qbbrowse' );
# Use the first heading from the Monobook sidebar as the "browse" section
$bar = $this->buildSidebar();
unset( $bar['SEARCH'] );
unset( $bar['LANGUAGES'] );
unset( $bar['TOOLBOX'] );
$browseLinks = reset( $bar );
foreach ( $browseLinks as $link ) {
if ( $link['text'] != '-' ) {
$s .= "
" .
htmlspecialchars( $link['text'] ) . '' . $sep;
}
}
if ( $wgOut->isArticle() ) {
$s .= $this->menuHead( 'qbedit' );
$s .= '
' . $this->editThisPage() . '';
$s .= $sep . $this->linkKnown(
Title::newFromText( wfMsgForContent( 'edithelppage' ) ),
wfMsg( 'edithelp' )
);
if( $wgUser->isLoggedIn() ) {
$s .= $sep . $this->moveThisPage();
}
if ( $wgUser->isAllowed( 'delete' ) ) {
$dtp = $this->deleteThisPage();
if ( $dtp != '' ) {
$s .= $sep . $dtp;
}
}
if ( $wgUser->isAllowed( 'protect' ) ) {
$ptp = $this->protectThisPage();
if ( $ptp != '' ) {
$s .= $sep . $ptp;
}
}
$s .= $sep;
$s .= $this->menuHead( 'qbpageoptions' );
$s .= $this->talkLink()
. $sep . $this->commentLink()
. $sep . $this->printableLink();
if ( $wgUser->isLoggedIn() ) {
$s .= $sep . $this->watchThisPage();
}
$s .= $sep;
$s .= $this->menuHead( 'qbpageinfo' )
. $this->historyLink()
. $sep . $this->whatLinksHere()
. $sep . $this->watchPageLinksLink();
if( $tns == NS_USER || $tns == NS_USER_TALK ) {
$id = User::idFromName( $this->mTitle->getText() );
if( $id != 0 ) {
$s .= $sep . $this->userContribsLink();
if( $this->showEmailUser( $id ) ) {
$s .= $sep . $this->emailUserLink();
}
}
}
$s .= $sep;
}
$s .= $this->menuHead( 'qbmyoptions' );
if ( $wgUser->isLoggedIn() ) {
$tl = $this->link(
$wgUser->getTalkPage(),
wfMsg( 'mytalk' ),
array(),
array(),
array( 'known', 'noclasses' )
);
if ( $wgUser->getNewtalk() ) {
$tl .= ' *';
}
$s .= $this->link(
$wgUser->getUserPage(),
wfMsg( 'mypage' ),
array(),
array(),
array( 'known', 'noclasses' )
) . $sep . $tl . $sep . $this->specialLink( 'Watchlist' )
. $sep .
$this->link(
SpecialPage::getSafeTitleFor( 'Contributions', $wgUser->getName() ),
wfMsg( 'mycontris' ),
array(),
array(),
array( 'known', 'noclasses' )
) . $sep . $this->specialLink( 'Preferences' )
. $sep . $this->specialLink( 'Userlogout' );
} else {
$s .= $this->specialLink( 'Userlogin' );
}
$s .= $this->menuHead( 'qbspecialpages' )
. $this->specialLink( 'Newpages' )
. $sep . $this->specialLink( 'Listfiles' )
. $sep . $this->specialLink( 'Statistics' );
if( UploadBase::isEnabled() && UploadBase::isAllowed( $wgUser ) === true ) {
$s .= $sep . $this->getUploadLink();
}
global $wgSiteSupportPage;
if( $wgSiteSupportPage ) {
$s .= $sep . '
'
. wfMsg( 'sitesupport' ) . '';
}
$s .= $sep . $this->link(
SpecialPage::getTitleFor( 'Specialpages' ),
wfMsg( 'moredotdotdot' ),
array(),
array(),
array( 'known', 'noclasses' )
);
$s .= $sep . "\n
\n";
return $s;
}
function menuHead( $key ) {
$s = "\n