3 * Nostalgia: A skin which looks like Wikipedia did in its first year (2001).
9 if( !defined( 'MEDIAWIKI' ) ) {
17 class SkinNostalgia
extends Skin
{
19 function getStylesheet() {
20 return 'common/nostalgia.css';
23 function getSkinName() {
27 function doBeforeContent() {
28 $s = "\n<div id='content'>\n<div id='top'>\n";
29 $s .= '<div id="logo">' . $this->logoText( 'right' ) . '</div>';
31 $s .= $this->pageTitle();
32 $s .= $this->pageSubtitle() . "\n";
34 $s .= '<div id="topbar">';
35 $s .= $this->topLinks() . "\n<br />";
37 $notice = wfGetSiteNotice();
39 $s .= "\n<div id='siteNotice'>$notice</div>\n";
41 $s .= $this->pageTitleLinks();
43 $ol = $this->otherLanguages();
48 $cat = $this->getCategoryLinks();
50 $s .= '<br />' . $cat;
53 $s .= "<br clear='all' /></div><hr />\n</div>\n";
54 $s .= "\n<div id='article'>";
60 global $wgOut, $wgUser, $wgEnableUploads;
63 $s = $this->mainPageLink() . $sep
64 . $this->specialLink( 'recentchanges' );
66 if ( $wgOut->isArticle() ) {
67 $s .= $sep . '<strong>' . $this->editThisPage() . '</strong>' . $sep . $this->historyLink();
70 /* show links to different language variants */
71 $s .= $this->variantLinks();
72 $s .= $this->extensionTabLinks();
73 if ( $wgUser->isAnon() ) {
74 $s .= $sep . $this->specialLink( 'userlogin' );
76 $name = $wgUser->getName();
77 /* show user page and user talk links */
78 $s .= $sep . $this->link( $wgUser->getUserPage(), wfMsgHtml( 'mypage' ) );
79 $s .= $sep . $this->link( $wgUser->getTalkPage(), wfMsgHtml( 'mytalk' ) );
80 if ( $wgUser->getNewtalk() ) {
83 /* show watchlist link */
84 $s .= $sep . $this->specialLink( 'watchlist' );
85 /* show my contributions link */
86 $s .= $sep . $this->link(
87 SpecialPage
::getSafeTitleFor( 'Contributions', $wgUser->getName() ),
88 wfMsgHtml( 'mycontris' ) );
89 /* show my preferences link */
90 $s .= $sep . $this->specialLink( 'preferences' );
91 /* show upload file link */
92 if( UploadBase
::isEnabled() && UploadBase
::isAllowed( $wgUser ) === true ) {
93 $s .= $sep . $this->uploadLink();
96 /* show log out link */
97 $s .= $sep . $this->specialLink( 'userlogout' );
100 $s .= $sep . $this->specialPagesList();
105 function doAfterContent() {
106 $s = "\n</div><br clear='all' />\n";
108 $s .= "\n<div id='footer'><hr />";
110 $s .= $this->bottomLinks();
111 $s .= "\n<br />" . $this->pageStats();
112 $s .= "\n<br />" . $this->mainPageLink()
113 . ' | ' . $this->aboutLink()
114 . ' | ' . $this->searchForm();
116 $s .= "\n</div>\n</div>\n";