$qb = $this->qbSetting();
$s .= "\n<div id='content'>\n<div id='topbar'>" .
- "<table width='98%' border=0 cellspacing=0 cellpadding=8><tr>";
+ "<table width='100%' border=0 cellspacing=0 cellpadding=8><tr>";
$s .= "<td class='top' align=left valign=middle nowrap>";
- $s .= "<a href=\"" . wfLocalUrlE( wfMsg( "mainpage" ) ) . "\">";
+ $s .= "<a href=\"" . wfLocalUrlE( urlencode( wfMsg( "mainpage" ) ) ) . "\">";
$s .= "<span id='sitetitle'>" . wfMsg( "sitetitle" ) . "</span></a>";
$s .= "</td><td class='top' align=right valign=bottom width='100%'>";
function quickBar()
{
- global $wgOut, $wgTitle, $wgUser, $wgLang;
+ global $wgOut, $wgTitle, $wgUser, $wgLang, $wgDisableUploads;
+
+ $tns=$wgTitle->getNamespace();
$s = "\n<div id='quickbar'>";
$s .= $this->menuHead( "qbbrowse" )
. $this->mainPageLink()
. $sep . $this->specialLink( "recentchanges" )
- . $sep . $this->specialLink( "randompage" )
- . $sep . $this->specialLink( "newpages" )
- . $sep . $this->specialLink( "imagelist" )
- . $sep . $this->specialLink( "statistics" )
- . $sep . $this->specialLink( "specialpages" )
- . $sep . $this->bugReportsLink() ;
- if ( wfMsg ( "currentevents" ) != "-" ) $s .= $sep . $this->makeKnownLink( wfMsg( "currentevents" ), "" ) ;
- $s .= "\n";
+ . $sep . $this->specialLink( "randompage" );
+ if ( wfMsg ( "currentevents" ) != "-" ) $s .= $sep . $this->makeKnownLink( wfMsg( "currentevents" ), "" ) ;
+ $s .= "\n";
if ( $wgOut->isArticle() ) {
$s .= $this->menuHead( "qbedit" );
- $s .= "<strong>" . $this->editThisPage() . "</strong>"
- . $sep . $this->makeKnownLink( wfMsg( "edithelppage" ),
- wfMsg( "edithelp" ) );
+ $s .= "<strong>" . $this->editThisPage() . "</strong>";
+
+ $s .= $sep . $this->makeKnownLink( wfMsg( "edithelppage" ), wfMsg( "edithelp" ) );
if ( 0 != $wgUser->getID() ) {
- $s .= $sep . $this->specialLink( "upload" )
- . $sep . $this->moveThisPage();
+ $s .= $sep . $this->moveThisPage();
}
if ( $wgUser->isSysop() ) {
- $s .= $sep . $this->deleteThisPage() .
- $sep . $this->protectThisPage();
+ $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" )
+ $s .= $this->menuHead("qbpageinfo")
. $this->historyLink()
. $sep . $this->whatLinksHere()
. $sep . $this->watchPageLinksLink();
-
- if ( Namespace::getUser() == $wgTitle->getNamespace() ) {
- $s .= $sep . $this->userContribsLink();
- if ( 0 != $wgUser->getID() ) {
- $s .= $sep . $this->emailUserLink();
+
+ 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();
} 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" );
+ }
+
+ $s .= $sep . $this->makeKnownLink( $wgLang->specialPage( "Specialpages" ), wfMsg("moredotdotdot") );
+
$s .= $sep . "\n</div>\n";
return $s;
}
wfLocalUrlE( "" ) . "\">";
if ( "" != $label ) { $s .= "{$label}: "; }
- $s .= "<input type=text name=\"search\" size=10 value=\""
- . htmlspecialchars(substr($search,0,256)) . "\">"
- . "<input type=submit value=\"" . wfMsg( "ok" ) . "\"></form>";
+ $s .= "<input type=text name=\"search\" size=14 value=\""
+ . htmlspecialchars(substr($search,0,256)) . "\">"
+ . "<br><input type=submit name=\"go\" value=\"" . wfMsg( "go" ) . "\"> <input type=submit value=\"" . wfMsg( "search" ) . "\"></form>";
return $s;
}