diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
commit | 183851b06bd6c52f3cae5375f433da720d410447 (patch) | |
tree | a477257decbf3360127f6739c2f9d0ec57a03d39 /skins/Nostalgia.php |
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'skins/Nostalgia.php')
-rw-r--r-- | skins/Nostalgia.php | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/skins/Nostalgia.php b/skins/Nostalgia.php new file mode 100644 index 00000000..1b54aab9 --- /dev/null +++ b/skins/Nostalgia.php @@ -0,0 +1,93 @@ +<?php +/** + * See skin.txt + * + * @todo document + * @package MediaWiki + * @subpackage Skins + */ + +if( !defined( 'MEDIAWIKI' ) ) + die( -1 ); + +/** + * @todo document + * @package MediaWiki + * @subpackage Skins + */ +class SkinNostalgia extends Skin { + + function getStylesheet() { + return 'common/nostalgia.css?1'; + } + function getSkinName() { + return "nostalgia"; + } + + function doBeforeContent() { + + $s = "\n<div id='content'>\n<div id='topbar'>"; + $s .= $this->logoText( "right" ); + + $s .= $this->pageTitle(); + $s .= $this->pageSubtitle() . "\n"; + + $s .= $this->topLinks() . "\n<br />"; + + $notice = wfGetSiteNotice(); + if( $notice ) { + $s .= "\n<div id='siteNotice'>$notice</div>\n"; + } + $s .= $this->pageTitleLinks(); + + $ol = $this->otherLanguages(); + if($ol) $s .= "<br />" . $ol; + + $cat = $this->getCategoryLinks(); + if($cat) $s .= "<br />" . $cat; + + $s .= "<br clear='all' /><hr />\n</div>\n"; + $s .= "\n<div id='article'>"; + + return $s; + } + + function topLinks() { + global $wgOut, $wgUser; + $sep = " |\n"; + + $s = $this->mainPageLink() . $sep + . $this->specialLink( "recentchanges" ); + + if ( $wgOut->isArticle() ) { + $s .= $sep . $this->editThisPage() + . $sep . $this->historyLink(); + } + if ( $wgUser->isAnon() ) { + $s .= $sep . $this->specialLink( "userlogin" ); + } else { + $s .= $sep . $this->specialLink( "userlogout" ); + } + $s .= $sep . $this->specialPagesList(); + + return $s; + } + + function doAfterContent() { + $s = "\n</div><br clear='all' />\n"; + + $s .= "\n<div id='footer'><hr />"; + + $s .= $this->bottomLinks(); + $s .= "\n<br />" . $this->pageStats(); + $s .= "\n<br />" . $this->mainPageLink() + . " | " . $this->aboutLink() + . " | " . $this->searchForm(); + + $s .= "\n</div>\n</div>\n"; + + return $s; + } +} + +?> |