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