3 * Nostalgia: A skin which looks like Wikipedia did in its first year (2001).
9 if( !defined( 'MEDIAWIKI' ) )
16 class SkinNostalgia
extends Skin
{
18 function getStylesheet() {
19 return 'common/nostalgia.css';
22 function getSkinName() {
26 function doBeforeContent() {
27 $s = "\n<div id='content'>\n<div id='top'>\n";
28 $s .= '<div id="logo">' . $this->logoText( 'right' ) . '</div>';
30 $s .= $this->pageTitle();
31 $s .= $this->pageSubtitle() . "\n";
33 $s .= '<div id="topbar">';
34 $s .= $this->topLinks() . "\n<br />";
36 $notice = wfGetSiteNotice();
38 $s .= "\n<div id='siteNotice'>$notice</div>\n";
40 $s .= $this->pageTitleLinks();
42 $ol = $this->otherLanguages();
43 if( $ol ) $s .= '<br />' . $ol;
45 $cat = $this->getCategoryLinks();
46 if( $cat ) $s .= '<br />' . $cat;
48 $s .= "<br clear='all' /></div><hr />\n</div>\n";
49 $s .= "\n<div id='article'>";
55 global $wgOut, $wgUser, $wgEnableUploads;
58 $s = $this->mainPageLink() . $sep
59 . $this->specialLink( 'recentchanges' );
61 if ( $wgOut->isArticle() ) {
62 $s .= $sep . '<strong>' . $this->editThisPage() . '</strong>' . $sep . $this->historyLink();
65 /* show links to different language variants */
66 $s .= $this->variantLinks();
67 $s .= $this->extensionTabLinks();
68 if ( $wgUser->isAnon() ) {
69 $s .= $sep . $this->specialLink( 'userlogin' );
71 $name = $wgUser->getName();
72 /* show user page and user talk links */
73 $s .= $sep . $this->link( $wgUser->getUserPage(), wfMsgHtml( 'mypage' ) );
74 $s .= $sep . $this->link( $wgUser->getTalkPage(), wfMsgHtml( 'mytalk' ) );
75 if ( $wgUser->getNewtalk() ) {
78 /* show watchlist link */
79 $s .= $sep . $this->specialLink( 'watchlist' );
80 /* show my contributions link */
81 $s .= $sep . $this->link(
82 SpecialPage
::getSafeTitleFor( 'Contributions', $wgUser->getName() ),
83 wfMsgHtml( 'mycontris' ) );
84 /* show my preferences link */
85 $s .= $sep . $this->specialLink( 'preferences' );
86 /* show upload file link */
87 if ( $wgEnableUploads ) {
88 $s .= $sep . $this->specialLink( 'upload' );
90 /* show log out link */
91 $s .= $sep . $this->specialLink( 'userlogout' );
94 $s .= $sep . $this->specialPagesList();
99 function doAfterContent() {
100 $s = "\n</div><br clear='all' />\n";
102 $s .= "\n<div id='footer'><hr />";
104 $s .= $this->bottomLinks();
105 $s .= "\n<br />" . $this->pageStats();
106 $s .= "\n<br />" . $this->mainPageLink()
107 . " | " . $this->aboutLink()
108 . " | " . $this->searchForm();
110 $s .= "\n</div>\n</div>\n";