\n
" .
"
";
$s .= "";
$s .= "escapeLocalURL() . "\">";
$s .= "" . wfMsg( "sitetitle" ) . "";
$s .= " | ";
$s .= $this->sysLinks();
$s .= " |
";
$s .= "";
$s .= htmlspecialchars( wfMsg( "sitesubtitle" ) ) . "";
$s .= " | " ;
$s .= "" ;
$s .= str_replace ( " " , "" , $this->otherLanguages() );
$cat = $this->getCategoryLinks();
if( $cat ) $s .= " $cat\n";
$s .= " " . $this->pageTitleLinks();
$s .= "";
$s .= " |
\n";
$s .= "\n
\n
";
$s .= $this->pageTitle();
$s .= $this->pageSubtitle() . "\n";
return $s;
}
function doAfterContent()
{
global $wgUser, $wgOut;
$s = "\n
\n";
$s .= "\n\n
\n";
if ( 0 != $qb ) { $s .= $this->quickBar(); }
return $s;
}
function doGetUserStyles()
{
global $wgUser, $wgOut, $wgStyleSheetPath;
$s = '';
$qb = $this->qbSetting();
if ( 2 == $qb ) { # Right
$s .= "#quickbar { position: absolute; right: 4px; }\n" .
"#article { margin-left: 4px; margin-right: 148px; }\n";
} else if ( 1 == $qb ) {
$s .= "#quickbar { position: absolute; left: 4px; }\n" .
"#article { margin-left: 148px; margin-right: 4px; }\n";
} else if ( 3 == $qb ) { # Floating
$s .= "#quickbar { position:absolute; left:4px } \n" .
"#topbar { margin-left: 148px }\n" .
"#article { margin-left:148px; margin-right: 4px; } \n" .
"body>#quickbar { position:fixed; left:4px; top:4px; overflow:auto ;bottom:4px;} \n"; # Hides from IE
}
$s .= parent::doGetUserStyles();
return $s;
}
function sysLinks()
{
global $wgUser, $wgLang, $wgTitle;
$li = $wgLang->specialPage("Userlogin");
$lo = $wgLang->specialPage("Userlogout");
$rt = $wgTitle->getPrefixedURL();
if ( 0 == strcasecmp( urlencode( $lo ), $rt ) ) {
$q = "";
} else {
$q = "returnto={$rt}";
}
$s = "" .
$this->makeKnownLink( wfMsg( "mainpage" ), wfMsg( "mainpage" ) )
. " | " .
$this->makeKnownLink( wfMsg( "aboutpage" ), wfMsg( "about" ) )
. " | " .
$this->makeKnownLink( wfMsg( "helppage" ), wfMsg( "help" ) )
. " | " .
$this->makeKnownLink( wfMsg( "faqpage" ), wfMsg("faq") )
. " | " .
$this->specialLink( "specialpages" ) . " | ";
if ( $wgUser->getID() )
{
$s .= $this->makeKnownLink( $lo, wfMsg( "logout" ), $q );
}
else
{
$s .= $this->makeKnownLink( $li, wfMsg( "login" ), $q );
}
return $s;
}
function quickBar()
{
global $wgOut, $wgTitle, $wgUser, $wgLang, $wgDisableUploads;
$tns=$wgTitle->getNamespace();
$s = "\n";
$sep = "
";
$s .= $this->menuHead( "qbfind" );
$s .= $this->searchForm();
$s .= $this->menuHead( "qbbrowse" )
. $this->mainPageLink()
. $sep . $this->specialLink( "recentchanges" )
. $sep . $this->specialLink( "randompage" );
if ( wfMsg ( "currentevents" ) != "-" ) $s .= $sep . $this->makeKnownLink( wfMsg( "currentevents" ), "" ) ;
$s .= "\n";
if ( $wgOut->isArticle() ) {
$s .= $this->menuHead( "qbedit" );
$s .= "
" . $this->editThisPage() . "";
$s .= $sep . $this->makeKnownLink( wfMsg( "edithelppage" ), wfMsg( "edithelp" ) );
if ( 0 != $wgUser->getID() ) {
$s .= $sep . $this->moveThisPage();
}
if ( $wgUser->isSysop() ) {
$dtp = $this->deleteThisPage();
if ( "" != $dtp ) {
$s .= $sep . $dtp;
}
$ptp = $this->protectThisPage();
if ( "" != $ptp ) {
$s .= $sep . $ptp;
}
}
$s .= $sep;
$s .= $this->menuHead( "qbpageoptions" );
$s .= $this->talkLink()
. $sep . $this->commentLink()
. $sep . $this->printableLink();
if ( 0 != $wgUser->getID() ) {
$s .= $sep . $this->watchThisPage();
}
$s .= $sep;
$s .= $this->menuHead("qbpageinfo")
. $this->historyLink()
. $sep . $this->whatLinksHere()
. $sep . $this->watchPageLinksLink();
if ( Namespace::getUser() == $tns || Namespace::getTalk(Namespace::getUser()) == $tns ) {
$id=User::idFromName($wgTitle->getText());
if ($id != 0) {
$s .= $sep . $this->userContribsLink();
if ( 0 != $wgUser->getID() ) {
$s .= $sep . $this->emailUserLink();
}
}
}
$s .= $sep;
}
$s .= $this->menuHead( "qbmyoptions" );
if ( 0 != $wgUser->getID() ) {
$name = $wgUser->getName();
$tl = $this->makeKnownLink( $wgLang->getNsText(
Namespace::getTalk( Namespace::getUser() ) ) . ":{$name}",
wfMsg( "mytalk" ) );
if ( 0 != $wgUser->getNewtalk() ) { $tl .= " *"; }
$s .= $this->makeKnownLink( $wgLang->getNsText(
Namespace::getUser() ) . ":{$name}", wfMsg( "mypage" ) )
. $sep . $tl
. $sep . $this->specialLink( "watchlist" )
. $sep . $this->makeKnownLink( $wgLang->specialPage( "Contributions" ),
wfMsg( "mycontris" ), "target=" . wfUrlencode($wgUser->getName() ) )
. $sep . $this->specialLink( "preferences" )
. $sep . $this->specialLink( "userlogout" );
} else {
$s .= $this->specialLink( "userlogin" );
}
$s .= $this->menuHead( "qbspecialpages" )
. $this->specialLink( "newpages" )
. $sep . $this->specialLink( "imagelist" )
. $sep . $this->specialLink( "statistics" )
. $sep . $this->bugReportsLink();
if ( 0 != $wgUser->getID() && !$wgDisableUploads ) {
$s .= $sep . $this->specialLink( "upload" );
}
global $wgSiteSupportPage;
if( $wgSiteSupportPage) {
$s .= $sep."
"
.wfMsg( "sitesupport" )."";
}
$s .= $sep . $this->makeKnownLink( $wgLang->specialPage( "Specialpages" ), wfMsg("moredotdotdot") );
$s .= $sep . "\n
\n";
return $s;
}
function menuHead( $key )
{
$s = "\n