Typo/logic error in move page watchlist update.
[lhc/web/wiklou.git] / includes / SkinNostalgia.php
1 <?php
2 # See skin.doc
3
4 class SkinNostalgia extends Skin {
5
6 function initPage()
7 {
8 # ...
9 }
10
11 function getStylesheet()
12 {
13 return "nostalgia.css";
14 }
15 function getSkinName() {
16 return "nostalgia";
17 }
18
19 function doBeforeContent()
20 {
21 global $wgUser, $wgOut, $wgTitle, $wgSiteNotice;
22
23 $s = "\n<div id='content'>\n<div id='topbar'>";
24 $s .= $this->logoText( "right" );
25
26 $s .= $this->pageTitle();
27 $s .= $this->pageSubtitle() . "\n";
28
29 $s .= $this->topLinks() . "\n<br />";
30 if( $wgSiteNotice ) {
31 $s .= "\n<div id='siteNotice'>$wgSiteNotice</div>\n";
32 }
33 $s .= $this->pageTitleLinks();
34
35 $ol = $this->otherLanguages();
36 if($ol) $s .= "<br />" . $ol;
37
38 $cat = $this->getCategoryLinks();
39 if($cat) $s .= "<br />" . $cat;
40
41 $s .= "<br clear='all' /><hr />\n</div>\n";
42 $s .= "\n<div id='article'>";
43
44 return $s;
45 }
46
47 function topLinks()
48 {
49 global $wgOut, $wgUser;
50 $sep = " |\n";
51
52 $s = $this->mainPageLink() . $sep
53 . $this->specialLink( "recentchanges" );
54
55 if ( $wgOut->isArticle() ) {
56 $s .= $sep . $this->editThisPage()
57 . $sep . $this->historyLink();
58 }
59 if ( 0 == $wgUser->getID() ) {
60 $s .= $sep . $this->specialLink( "userlogin" );
61 } else {
62 $s .= $sep . $this->specialLink( "userlogout" );
63 }
64 $s .= $sep . $this->specialPagesList();
65
66 return $s;
67 }
68
69 function doAfterContent()
70 {
71 global $wgUser, $wgOut;
72
73 $s = "\n</div><br clear='all' />\n";
74
75 $s .= "\n<div id='footer'><hr />";
76
77 $s .= $this->bottomLinks();
78 $s .= "\n<br />" . $this->pageStats();
79 $s .= "\n<br />" . $this->mainPageLink()
80 . " | " . $this->aboutLink()
81 . " | " . $this->searchForm();
82
83 $s .= "\n</div>\n</div>\n";
84
85 return $s;
86 }
87 }
88
89 ?>