From f509bdf19b25c972f01090f3fe2a07cb2d5db475 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 2 Sep 2004 01:33:43 +0000 Subject: [PATCH] removing obsolete files. See ./skins/ for new location --- includes/SkinCologneBlue.php | 274 --------------------------------- includes/SkinNostalgia.php | 89 ----------- includes/SkinStandard.php | 65 -------- includes/SkinWikimediaWiki.php | 77 --------- 4 files changed, 505 deletions(-) delete mode 100644 includes/SkinCologneBlue.php delete mode 100644 includes/SkinNostalgia.php delete mode 100644 includes/SkinStandard.php delete mode 100644 includes/SkinWikimediaWiki.php diff --git a/includes/SkinCologneBlue.php b/includes/SkinCologneBlue.php deleted file mode 100644 index b2f99aa275..0000000000 --- a/includes/SkinCologneBlue.php +++ /dev/null @@ -1,274 +0,0 @@ -qbSetting(); - $mainPageObj = Title::newMainPage(); - - $s .= "\n
\n
" . - ""; - - $s .= "
"; - $s .= "escapeLocalURL() . "\">"; - $s .= "" . wfMsg( "sitetitle" ) . ""; - - $s .= ""; - $s .= $this->sysLinks(); - $s .= "
"; - - $s .= ""; - $s .= htmlspecialchars( wfMsg( "sitesubtitle" ) ) . ""; - $s .= "" ; - - $s .= "" ; - $s .= str_replace ( "
" , "" , $this->otherLanguages() ); - $cat = $this->getCategoryLinks(); - if( $cat ) $s .= "
$cat\n"; - $s .= "
" . $this->pageTitleLinks(); - $s .= "
"; - - $s .= "
\n"; - - $s .= "\n
\n
"; - - if( $wgSiteNotice ) { - $s .= "\n
$wgSiteNotice
\n"; - } - $s .= $this->pageTitle(); - $s .= $this->pageSubtitle() . "\n"; - return $s; - } - - function doAfterContent() - { - global $wgUser, $wgOut; - - $s = "\n

\n"; - - $s .= "\n\n
\n"; - - if ( 0 != $qb ) { $s .= $this->quickBar(); } - return $s; - } - function doGetUserStyles() - { - global $wgUser, $wgOut, $wgStyleSheetPath; - $s = ''; - $qb = $this->qbSetting(); - - if ( 2 == $qb ) { # Right - $s .= "#quickbar { position: absolute; right: 4px; }\n" . - "#article { margin-left: 4px; margin-right: 148px; }\n"; - } else if ( 1 == $qb ) { - $s .= "#quickbar { position: absolute; left: 4px; }\n" . - "#article { margin-left: 148px; margin-right: 4px; }\n"; - } else if ( 3 == $qb ) { # Floating - $s .= "#quickbar { position:absolute; left:4px } \n" . - "#topbar { margin-left: 148px }\n" . - "#article { margin-left:148px; margin-right: 4px; } \n" . - "body>#quickbar { position:fixed; left:4px; top:4px; overflow:auto ;bottom:4px;} \n"; # Hides from IE - } - $s .= parent::doGetUserStyles(); - return $s; - } - function sysLinks() - { - global $wgUser, $wgLang, $wgTitle; - $li = $wgLang->specialPage("Userlogin"); - $lo = $wgLang->specialPage("Userlogout"); - - $rt = $wgTitle->getPrefixedURL(); - if ( 0 == strcasecmp( urlencode( $lo ), $rt ) ) { - $q = ""; - } else { - $q = "returnto={$rt}"; - } - - $s = "" . - $this->makeKnownLink( wfMsg( "mainpage" ), wfMsg( "mainpage" ) ) - . " | " . - $this->makeKnownLink( wfMsg( "aboutpage" ), wfMsg( "about" ) ) - . " | " . - $this->makeKnownLink( wfMsg( "helppage" ), wfMsg( "help" ) ) - . " | " . - $this->makeKnownLink( wfMsg( "faqpage" ), wfMsg("faq") ) - . " | " . - $this->specialLink( "specialpages" ) . " | "; - - if ( $wgUser->getID() ) - { - $s .= $this->makeKnownLink( $lo, wfMsg( "logout" ), $q ); - } - else - { - $s .= $this->makeKnownLink( $li, wfMsg( "login" ), $q ); - } - - return $s; - } - - function quickBar() - { - global $wgOut, $wgTitle, $wgUser, $wgLang, $wgDisableUploads; - - $tns=$wgTitle->getNamespace(); - - $s = "\n
"; - - $sep = "
"; - $s .= $this->menuHead( "qbfind" ); - $s .= $this->searchForm(); - - $s .= $this->menuHead( "qbbrowse" ) - . $this->mainPageLink() - . $sep . $this->specialLink( "recentchanges" ) - . $sep . $this->specialLink( "randompage" ); - if ( wfMsg ( "currentevents" ) != "-" ) $s .= $sep . $this->makeKnownLink( wfMsg( "currentevents" ), "" ) ; - $s .= "\n"; - - if ( $wgOut->isArticle() ) { - $s .= $this->menuHead( "qbedit" ); - $s .= "" . $this->editThisPage() . ""; - - $s .= $sep . $this->makeKnownLink( wfMsg( "edithelppage" ), wfMsg( "edithelp" ) ); - - if ( 0 != $wgUser->getID() ) { - $s .= $sep . $this->moveThisPage(); - } - if ( $wgUser->isSysop() ) { - $dtp = $this->deleteThisPage(); - if ( "" != $dtp ) { - $s .= $sep . $dtp; - } - $ptp = $this->protectThisPage(); - if ( "" != $ptp ) { - $s .= $sep . $ptp; - } - } - $s .= $sep; - - $s .= $this->menuHead( "qbpageoptions" ); - $s .= $this->talkLink() - . $sep . $this->commentLink() - . $sep . $this->printableLink(); - if ( 0 != $wgUser->getID() ) { - $s .= $sep . $this->watchThisPage(); - } - - $s .= $sep; - - $s .= $this->menuHead("qbpageinfo") - . $this->historyLink() - . $sep . $this->whatLinksHere() - . $sep . $this->watchPageLinksLink(); - - if ( Namespace::getUser() == $tns || Namespace::getTalk(Namespace::getUser()) == $tns ) { - $id=User::idFromName($wgTitle->getText()); - if ($id != 0) { - $s .= $sep . $this->userContribsLink(); - if ( 0 != $wgUser->getID() ) { - $s .= $sep . $this->emailUserLink(); - } - } - } - $s .= $sep; - } - - $s .= $this->menuHead( "qbmyoptions" ); - if ( 0 != $wgUser->getID() ) { - $name = $wgUser->getName(); - $tl = $this->makeKnownLink( $wgLang->getNsText( - Namespace::getTalk( Namespace::getUser() ) ) . ":{$name}", - wfMsg( "mytalk" ) ); - if ( 0 != $wgUser->getNewtalk() ) { $tl .= " *"; } - - $s .= $this->makeKnownLink( $wgLang->getNsText( - Namespace::getUser() ) . ":{$name}", wfMsg( "mypage" ) ) - . $sep . $tl - . $sep . $this->specialLink( "watchlist" ) - . $sep . $this->makeKnownLink( $wgLang->specialPage( "Contributions" ), - wfMsg( "mycontris" ), "target=" . wfUrlencode($wgUser->getName() ) ) - . $sep . $this->specialLink( "preferences" ) - . $sep . $this->specialLink( "userlogout" ); - } else { - $s .= $this->specialLink( "userlogin" ); - } - - $s .= $this->menuHead( "qbspecialpages" ) - . $this->specialLink( "newpages" ) - . $sep . $this->specialLink( "imagelist" ) - . $sep . $this->specialLink( "statistics" ) - . $sep . $this->bugReportsLink(); - if ( 0 != $wgUser->getID() && !$wgDisableUploads ) { - $s .= $sep . $this->specialLink( "upload" ); - } - global $wgSiteSupportPage; - if( $wgSiteSupportPage) { - $s .= $sep."" - .wfMsg( "sitesupport" ).""; - } - - $s .= $sep . $this->makeKnownLink( $wgLang->specialPage( "Specialpages" ), wfMsg("moredotdotdot") ); - - $s .= $sep . "\n
\n"; - return $s; - } - - function menuHead( $key ) - { - $s = "\n
" . wfMsg( $key ) . "
"; - return $s; - } - - function searchForm( $label = "" ) - { - global $wgRequest; - - $search = $wgRequest->getText( 'search' ); - $action = $this->escapeSearchLink(); - $s = "
"; - if ( "" != $label ) { $s .= "{$label}: "; } - - $s .= "" - . "
"; - - return $s; - } -} - -?> diff --git a/includes/SkinNostalgia.php b/includes/SkinNostalgia.php deleted file mode 100644 index 301bbf0338..0000000000 --- a/includes/SkinNostalgia.php +++ /dev/null @@ -1,89 +0,0 @@ -\n
"; - $s .= $this->logoText( "right" ); - - $s .= $this->pageTitle(); - $s .= $this->pageSubtitle() . "\n"; - - $s .= $this->topLinks() . "\n
"; - if( $wgSiteNotice ) { - $s .= "\n
$wgSiteNotice
\n"; - } - $s .= $this->pageTitleLinks(); - - $ol = $this->otherLanguages(); - if($ol) $s .= "
" . $ol; - - $cat = $this->getCategoryLinks(); - if($cat) $s .= "
" . $cat; - - $s .= "

\n
\n"; - $s .= "\n
"; - - 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 ( 0 == $wgUser->getID() ) { - $s .= $sep . $this->specialLink( "userlogin" ); - } else { - $s .= $sep . $this->specialLink( "userlogout" ); - } - $s .= $sep . $this->specialPagesList(); - - return $s; - } - - function doAfterContent() - { - global $wgUser, $wgOut; - - $s = "\n

\n"; - - $s .= "\n\n\n"; - - return $s; - } -} - -?> diff --git a/includes/SkinStandard.php b/includes/SkinStandard.php deleted file mode 100644 index ba367a370d..0000000000 --- a/includes/SkinStandard.php +++ /dev/null @@ -1,65 +0,0 @@ -qbSetting() ) { # Floating left - $s .= "\n"; - } - return $s; - } - - function getUserStyles() - { - global $wgStylePath; - $s = ''; - if ( 3 == $this->qbSetting() ) { # Floating left - $s .= "\n"; - } - $s .= parent::getUserStyles(); - return $s; - } - - function doGetUserStyles() - { - global $wgUser, $wgOut, $wgStylePath; - - $s = parent::doGetUserStyles(); - $qb = $this->qbSetting(); - - if ( 2 == $qb ) { # Right - $s .= "#quickbar { position: absolute; top: 4px; right: 4px; " . - "border-left: 2px solid #000000; }\n" . - "#article { margin-left: 4px; margin-right: 152px; }\n"; - } else if ( 1 == $qb || 3 == $qb ) { - $s .= "#quickbar { position: absolute; top: 4px; left: 4px; " . - "border-right: 1px solid gray; }\n" . - "#article { margin-left: 152px; margin-right: 4px; }\n"; - } - return $s; - } - - function getBodyOptions() - { - $a = parent::getBodyOptions(); - - if ( 3 == $this->qbSetting() ) { # Floating left - $qb = "setup(\"quickbar\")"; - if($a["onload"]) { - $a["onload"] .= ";$qb"; - } else { - $a["onload"] = $qb; - } - } - return $a; - } -} - -?> diff --git a/includes/SkinWikimediaWiki.php b/includes/SkinWikimediaWiki.php deleted file mode 100644 index e332c94b89..0000000000 --- a/includes/SkinWikimediaWiki.php +++ /dev/null @@ -1,77 +0,0 @@ -skinname = "wikimediawiki"; - $this->template = "xhtml_slim_wikimediawiki"; - } - - # build array of common navigation links - function buildNavUrls () { - global $wgTitle, $wgUser, $wgRequest; - global $wgSiteSupportPage; - - $action = $wgRequest->getText( 'action' ); - $oldid = $wgRequest->getVal( 'oldid' ); - $diff = $wgRequest->getVal( 'diff' ); - // XXX: remove htmlspecialchars when tal:attributes works with i18n:attributes - $nav_urls = array(); - $nav_urls['mainpage'] = array('href' => htmlspecialchars( $this->makeI18nUrl('mainpage'))); - $nav_urls['randompage'] = (wfMsg('randompage') != '-') ? array('href' => htmlspecialchars( $this->makeSpecialUrl('Randompage'))) : false; - $nav_urls['recentchanges'] = (wfMsg('recentchanges') != '-') ? array('href' => htmlspecialchars( $this->makeSpecialUrl('Recentchanges'))) : false; - $nav_urls['whatlinkshere'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Whatlinkshere', 'target='.urlencode( $this->thispage )))); - $nav_urls['currentevents'] = (wfMsg('currentevents') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('currentevents'))) : false; - $nav_urls['portal'] = (wfMsg('portal') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('portal-url'))) : false; - $nav_urls['recentchangeslinked'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Recentchangeslinked', 'target='.urlencode( $this->thispage )))); - $nav_urls['bugreports'] = (wfMsg('bugreports') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('bugreportspage'))) : false; - $nav_urls['sitesupport'] = array('href' => htmlspecialchars( $wgSiteSupportPage)); - $nav_urls['help'] = array('href' => htmlspecialchars( $this->makeI18nUrl('helppage'))); - $nav_urls['upload'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Upload'))); - $nav_urls['specialpages'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Specialpages'))); - - - # Specific for mediawiki.org menu - $nav_urls['aboutmediawiki'] = (wfMsg('aboutmediawiki') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('aboutmediawiki-url'))) : false; - $nav_urls['projects'] = (wfMsg('projects') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('projects-url'))) : false; - $nav_urls['membership'] = (wfMsg('membership') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('membership-url'))) : false; - $nav_urls['pressroom'] = (wfMsg('pressroom') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('pressroom-url'))) : false; - $nav_urls['software'] = (wfMsg('software') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('software-url'))) : false; - $nav_urls['localchapters'] = (wfMsg('localchapters') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('localchapters-url'))) : false; - $nav_urls['contactus'] = (wfMsg('contactus') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('contactus-url'))) : false; - - if( $wgTitle->getNamespace() == NS_USER || $wgTitle->getNamespace() == NS_USER_TALK ) { - $id = User::idFromName($wgTitle->getText()); - $ip = User::isIP($wgTitle->getText()); - } else { - $id = 0; - $ip = false; - } - - if ( 0 != $wgUser->getID() ) { # show only to signed in users - if($id) { - # can only email non-anons - $nav_urls['emailuser'] = array( - 'href' => htmlspecialchars( $this->makeSpecialUrl('Emailuser', "target=" . $wgTitle->getPartialURL() ) ) - ); - # only non-anons have contrib list - $nav_urls['contributions'] = array( - 'href' => htmlspecialchars( $this->makeSpecialUrl('Contributions', "target=" . $wgTitle->getPartialURL() ) ) - ); - } - } - - - return $nav_urls; - } -} - - -?> -- 2.20.1