4 class SkinCologneBlue
extends Skin
{
8 global $wgOut, $wgStyleSheetPath;
10 $wgOut->addLink( "stylesheet", "",
11 "{$wgStyleSheetPath}/cologneblue.css" );
14 function doBeforeContent()
16 global $wgUser, $wgOut, $wgTitle;
19 $qb = $this->qbSetting();
21 $s .= "\n<div id='content'>\n<div id='topbar'>" .
22 "<table width='100%' border=0 cellspacing=0 cellpadding=8><tr>";
24 $s .= "<td class='top' align=left valign=middle nowrap>";
25 $s .= "<a href=\"" . wfLocalUrlE( wfMsg( "mainpage" ) ) . "\">";
26 $s .= "<span id='sitetitle'>" . wfMsg( "sitetitle" ) . "</span></a>";
28 $s .= "</td><td class='top' align=right valign=bottom width='100%'>";
29 $s .= $this->sysLinks();
30 $s .= "</td></tr><tr><td valign=top>";
32 $s .= "<font size='-1'><span id='sitesub'>";
33 $s .= wfMsg( "sitesubtitle" ) . "</span></font>";
34 $s .= "</td><td align=right>" ;
36 $s .= "<font size='-1'><span id='langlinks'>" ;
37 $s .= str_replace ( "<br>" , "" , $this->otherLanguages() ) ;
38 $s .= "<br>" . $this->pageTitleLinks();
39 $s .= "</span></font>";
41 $s .= "</td></tr></table>\n";
43 $s .= "\n</div>\n<div id='article'>";
45 $s .= $this->pageTitle();
46 $s .= $this->pageSubtitle() . "\n<p>";
50 function doAfterContent()
52 global $wgUser, $wgOut;
54 $s = "\n</div><br clear=all>\n";
56 $s .= "\n<div id='footer'>";
57 $s .= "<table width='98%' border=0 cellspacing=0><tr>";
59 $qb = $this->qbSetting();
60 if ( 1 == $qb ||
3 == $qb ) { # Left
61 $s .= $this->getQuickbarCompensator();
63 $s .= "<td class='bottom' align=center valign=top>";
65 $s .= $this->bottomLinks();
66 $s .= "\n<br>" . $this->makeKnownLink( wfMsg( "mainpage" ),
67 wfMsg( "mainpage" ) ) . " | "
68 . $this->aboutLink() . " | "
69 . $this->searchForm( wfMsg( "qbfind" ) );
71 $s .= "\n<br>" . $this->pageStats();
74 if ( 2 == $qb ) { # Right
75 $s .= $this->getQuickbarCompensator();
77 $s .= "</tr></table>\n</div>\n</div>\n";
79 if ( 0 != $qb ) { $s .= $this->quickBar(); }
82 function doGetUserStyles()
84 global $wgUser, $wgOut, $wgStyleSheetPath;
86 $s = parent
::doGetUserStyles();
87 $qb = $this->qbSetting();
89 if ( 2 == $qb ) { # Right
90 $s .= "#quickbar { position: absolute; right: 4px; }\n" .
91 "#article { margin-left: 4px; margin-right: 148px; }\n";
92 } else if ( 1 == $qb ||
3 == $qb ) {
93 $s .= "#quickbar { position: absolute; left: 4px; }\n" .
94 "#article { margin-left: 148px; margin-right: 4px; }\n";
100 global $wgUser, $wgLang, $wgTitle;
101 $li = $wgLang->specialPage("Userlogin");
102 $lo = $wgLang->specialPage("Userlogout");
104 $rt = $wgTitle->getPrefixedURL();
105 if ( 0 == strcasecmp( urlencode( $lo ), $rt ) ) {
108 $q = "returnto={$rt}";
111 $s .= "\n<br>" . $this->makeKnownLink( $li,
112 wfMsg( "login" ), $q );
115 $this->makeKnownLink( wfMsg( "mainpage" ), wfMsg( "mainpage" ) )
117 $this->makeKnownLink( wfMsg( "aboutpage" ), wfMsg( "about" ) )
119 $this->makeKnownLink( wfMsg( "helppage" ), wfMsg( "help" ) )
121 $this->makeKnownLink( wfMsg( "faqpage" ), wfMsg("faq") )
123 $this->specialLink( "specialpages" ) . " | ";
125 if ( $wgUser->getID() )
127 $s .= $this->makeKnownLink( $lo, wfMsg( "logout" ), $q );
131 $s .= $this->makeKnownLink( $li, wfMsg( "login" ), $q );
139 global $wgOut, $wgTitle, $wgUser, $wgLang;
141 $tns=$wgTitle->getNamespace();
143 $s = "\n<div id='quickbar'>";
146 $s .= $this->menuHead( "qbfind" );
147 $s .= $this->searchForm();
149 $s .= $this->menuHead( "qbbrowse" )
150 . $this->mainPageLink()
151 . $sep . $this->specialLink( "recentchanges" )
152 . $sep . $this->specialLink( "randompage" );
153 if ( wfMsg ( "currentevents" ) != "-" ) $s .= $sep . $this->makeKnownLink( wfMsg( "currentevents" ), "" ) ;
156 if ( $wgOut->isArticle() ) {
157 $s .= $this->menuHead( "qbedit" );
158 $s .= "<strong>" . $this->editThisPage() . "</strong>";
160 $s .= $sep . $this->makeKnownLink( wfMsg( "edithelppage" ), wfMsg( "edithelp" ) );
162 if ( 0 != $wgUser->getID() ) {
163 $s .= $sep . $this->moveThisPage();
165 if ( $wgUser->isSysop() ) {
166 $dtp = $this->deleteThisPage();
170 $ptp = $this->protectThisPage();
177 $s .= $this->menuHead( "qbpageoptions" );
178 $s .= $this->talkLink()
179 . $sep . $this->commentLink()
180 . $sep . $this->printableLink();
181 if ( 0 != $wgUser->getID() ) {
182 $s .= $sep . $this->watchThisPage();
187 $s .= $this->menuHead("qbpageinfo")
188 . $this->historyLink()
189 . $sep . $this->whatLinksHere()
190 . $sep . $this->watchPageLinksLink();
192 if ( Namespace::getUser() == $tns ) {
193 $s .= $sep . $this->userContribsLink();
194 if ( 0 != $wgUser->getID() ) {
195 $s .= $sep . $this->emailUserLink();
201 $s .= $this->menuHead( "qbmyoptions" );
202 if ( 0 != $wgUser->getID() ) {
203 $name = $wgUser->getName();
204 $tl = $this->makeKnownLink( $wgLang->getNsText(
205 Namespace::getTalk( Namespace::getUser() ) ) . ":{$name}",
207 if ( 0 != $wgUser->getNewtalk() ) { $tl .= " *"; }
209 $s .= $this->makeKnownLink( $wgLang->getNsText(
210 Namespace::getUser() ) . ":{$name}", wfMsg( "mypage" ) )
212 . $sep . $this->specialLink( "watchlist" )
213 . $sep . $this->specialLink( "preferences" )
214 . $sep . $this->specialLink( "userlogout" );
216 $s .= $this->specialLink( "userlogin" );
219 $s .= $this->menuHead( "qbspecialpages" )
220 . $this->specialLink( "newpages" )
221 . $sep . $this->specialLink( "imagelist" )
222 . $sep . $this->specialLink( "statistics" )
223 . $sep . $this->bugReportsLink();
224 if ( 0 != $wgUser->getID() ) {
225 $s .= $sep . $this->specialLink( "upload" );
228 $s .= $sep . $this->makeKnownLink( $wgLang->specialPage( "Specialpages" ), wfMsg("moredotdotdot") );
230 $s .= $sep . "\n</div>\n";
234 function menuHead( $key )
236 $s = "\n<h6>" . wfMsg( $key ) . "</h6>";
240 function searchForm( $label = "" )
243 $s = "<form id=\"search\" method=\"get\" class=\"inline\" action=\"" .
244 wfLocalUrlE( "" ) . "\">";
245 if ( "" != $label ) { $s .= "{$label}: "; }
247 $s .= "<input type=text name=\"search\" size=14 value=\""
248 . htmlspecialchars(substr($search,0,256)) . "\">"
249 . "<br><input type=submit name=\"go\" value=\"" . wfMsg( "go" ) . "\"> <input type=submit value=\"" . wfMsg( "search" ) . "\"></form>";