bug fix
[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
16 function doBeforeContent()
17 {
18 global $wgUser, $wgOut, $wgTitle;
19
20 $s = "\n<div id='content'>\n<div id='topbar'>";
21 $s .= $this->logoText( "right" );
22
23 $s .= $this->pageTitle();
24 $s .= $this->pageSubtitle() . "\n";
25
26 $s .= $this->topLinks() . "\n<br />";
27 $s .= $this->pageTitleLinks();
28
29 $ol = $this->otherLanguages();
30 if($ol) $s .= "<br />" . $ol;
31
32 $cat = $this->getCategoryLinks();
33 if($cat) $s .= "<br />" . $cat;
34
35 $s .= "<br clear='all' /><hr />\n</div>\n";
36 $s .= "\n<div id='article'>";
37
38 return $s;
39 }
40
41 function topLinks()
42 {
43 global $wgOut, $wgUser;
44 $sep = " |\n";
45
46 $s = $this->mainPageLink() . $sep
47 . $this->specialLink( "recentchanges" );
48
49 if ( $wgOut->isArticle() ) {
50 $s .= $sep . $this->editThisPage()
51 . $sep . $this->historyLink();
52 }
53 if ( 0 == $wgUser->getID() ) {
54 $s .= $sep . $this->specialLink( "userlogin" );
55 } else {
56 $s .= $sep . $this->specialLink( "userlogout" );
57 }
58 $s .= $sep . $this->specialPagesList();
59
60 return $s;
61 }
62
63 function doAfterContent()
64 {
65 global $wgUser, $wgOut;
66
67 $s = "\n</div><br clear='all' />\n";
68
69 $s .= "\n<div id='footer'><hr />";
70
71 $s .= $this->bottomLinks();
72 $s .= "\n<br />" . $this->pageStats();
73 $s .= "\n<br />" . $this->mainPageLink()
74 . " | " . $this->aboutLink()
75 . " | " . $this->searchForm();
76
77 $s .= "\n</div>\n</div>\n";
78
79 return $s;
80 }
81 }
82
83 ?>