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