Skip to content
This repository was archived by the owner on May 3, 2018. It is now read-only.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
scratchwikiskin
=================

If you'd like to help fix bugs in the skin for the Scratch Wiki, please fork, make and test changes, and then submit a pull request. Our design goals are to keep the wiki skin as simple and as easy to use as possible. So we're unlikely to accept pull requests for fancy features, or code that's difficult to maintain.
If you'd like to help fix bugs in the skin for the Everything Wiki, please fork, make and test changes, and then submit a pull request. Our design goals are to keep the wiki skin as simple and as easy to use as possible. So we're unlikely to accept pull requests for fancy features, or code that's difficult to maintain.

To install / setup
1. Mediawiki skins change a lot between versions, so you need to use the same version of mediawiki that the Scratch wiki is currently running. You can find that version here: http://wiki.scratch.mit.edu/wiki/Special:Version
1. Mediawiki skins change a lot between versions, so you need to use the same version of mediawiki that the Scratch wiki is currently running. You can find that version here: http://everythingwiki.x10.bz/index.php/Special:Version

2. Clone this repository as a subdirectory of your skins folder.

3. Create a symlink in the skins directory that points to the skin's php file, inside the scratchwikiskin directory. i.e

you@yourcomputer:/var/www/w/skins$ ln -s scratchwikiskin/ScratchWikiSkin.php ScratchWikiSkin.php

Credits: Original design by JSO, with contributions from jvvg, blob8108, and scmb1.

Credits: Original design by the Scratch Wiki, ported by the Everything Wiki
73 changes: 13 additions & 60 deletions ScratchWikiSkin.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,26 @@ public function execute() {
$this->html('headelement');

?>
<header>
<header style = "background-color:green">
<div class="container">

<a class= "scratch" href = "http://scratch.mit.edu"></a>


<ul class="left">
<li><a href="http://scratch.mit.edu/projects/editor/">Create</a></li>
<li><a href="http://scratch.mit.edu/explore/?date=this_month">Explore</a></li>
<li><a href="http://scratch.mit.edu/discuss/">Discuss</a></li>
<li class = "last"><a href="http://scratch.mit.edu/help/">Help</a></li>
<li><a href="/index.php/Main Page">Main page</li>
<li><a href="/index.php/Special:RecentChanges">Recent changes</li>
<li><a href="/index.php/Special:RandomPage">Random page</li>
<li><a href="/index.php/Everything_Wiki:Sandbox">Sandbox</li>
<li class = "last"><a href="/index.php/Everything_Wiki_talk:Community_Portal">Community Portal</a></li>

<!-- search -->
<li>
<form action="<?php $this->text( 'wgScript' ) ?>" class="search">
<!--<span class="glass"><i></i></span>-->
<input type= "submit" class= "glass" value= "">
<input type="search" id="searchInput" accesskey="f" title="Search Scratch Wiki [alt-shift-f]" name="search" autocomplete="off" placeholder="Search the Wiki" />
<input type="search" id="searchInput" accesskey="f" title="Search [alt-shift-f]" name="search" autocomplete="off" placeholder="Search the Wiki" />
<!--<input type="submit" class="searchButton" id="searchGoButton" title="Go to a page with this exact name if exists" value="Go" name="go">-->
<input type="hidden" class="searchButton" id="mw-searchButton" title="Search the pages for this text" value="Search" />
<input type="hidden" class="searchButton" id="mw-searchButton" title="Search the Everything Wiki!" value="Search" />
<input type="hidden" value="Special:Search" name="title" />
</form>
</li>
Expand All @@ -72,7 +73,7 @@ public function execute() {
<!-- user links -->
<?php if (!$wgUser->isLoggedIn()) { ?>
<!--<li class = last><a href=" Special:Userlogin">Log in to the Wiki</a></li>-->
<li class = last><a href="<?php if (isset($this->data['personal_urls']['anonlogin'])){echo htmlspecialchars($this->data['personal_urls']['anonlogin']['href']);}else{echo $this->data['personal_urls']['login']['href'];}?>">Log in to the Wiki</a></li>
<li class = last><a href="<?php if (isset($this->data['personal_urls']['anonlogin'])){echo htmlspecialchars($this->data['personal_urls']['anonlogin']['href']);}else{echo $this->data['personal_urls']['login']['href'];}?>">Log in to your account</a></li>
<?php } else { ?>
<li id="userfcttoggle" class="last"><a><?=htmlspecialchars($wgUser->mName)?><span class = caret></span></a></li>
<ul id=userfctdropdown class="dropdownmenu"><?php foreach ($this->data['personal_urls'] as $key => $tab):?>
Expand Down Expand Up @@ -196,60 +197,12 @@ public function execute() {
<li>
<h4>About</h4>
<ul>
<li><a href ="http://scratch.mit.edu/about/">About Scratch</a></li>
<li><a href = "http://scratch.mit.edu/parents/">For Parents</a></li>
<li><a href = "http://scratch.mit.edu/educators/">For Educators</a></li>
<li><a href ="http://scratch.mit.edu/jobs/">Jobs</a></li>
</ul>
</li>
<li>
<h4>Community</h4>
<ul>
<li><a href = "http://scratch.mit.edu/community_guidelines/">Community Guidelines</a></li>
<li><a href = "http://scratch.mit.edu/discuss/">Discussion Forums</a></li>
<li><a href = "http://wiki.scratch.mit.edu/">Scratch Wiki</a></li>
</ul>
</li>
<li>
<h4>Support</h4>
<ul>
<li><a href = "http://scratch.mit.edu/help/">Help Page</a></li>
<li><a href = "http://scratch.mit.edu/help/faq/">FAQ</a></li>
<li><a href = "http://scratch.mit.edu/scratch2download/">Offline Editor</a></li>
<li><a href = "http://scratch.mit.edu/contact-us/">Contact Us</a></li>
</ul>
</li>
<li>
<h4>Legal</h4>
<ul>
<li><a href="http://scratch.mit.edu/terms_of_use/">Terms of Use</a></li>
<li><a href="http://scratch.mit.edu/privacy_policy/">Privacy Policy</a></li>
<li><a href = "http://scratch.mit.edu/DMCA/">DMCA</a></li>
</ul>
</li>
<li>
<h4>Donate</h4>
<ul>
<li>
If you enjoy using Scratch consider making a donation to the
<a href="http://codetolearn.org">Code-to-Learn Foundation</a> to support future development.
<br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="donatePaypal">
<!-- input type="hidden" name="amount" value="1234"/ -->
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="paypal@codetolearn.org">
<input type="hidden" name="item_name" value="Code To Learn">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://scratch.mit.edu/">
<input type="hidden" name="cancel_return" value="http://scratch.mit.edu/">
<a href="javascript:document.forms['donatePaypal'].submit();">Donate</a>
</form>
</li>

</ul>
</li>
</li>
</ul>
<br>
<p >Scratch is a project of the Lifelong Kindergarten Group at the MIT Media Lab</p>
<p ></p>
</footer>

<?php $this->printTrail(); ?>
Expand Down
Binary file removed edit.png
Binary file not shown.
6 changes: 3 additions & 3 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ a.scratch{
display: block;
width: 80px;
height: 35px;
background: url("scratchlogo.png") left center no-repeat;
background: url("") left center no-repeat;
text-indent: -99999em;
padding: 0 2px;
}
Expand Down Expand Up @@ -112,7 +112,7 @@ header li a:hover, #userfcttoggle.open {
}

.wikilogo{
background-image: url("wikilogo2.png") ;
background-image: url("") ;
background-repeat: no-repeat;
height: 140px;
display: block;
Expand Down Expand Up @@ -288,7 +288,7 @@ border-radius: 0;
position: relative;
}
#pagefctbtn {
background: url("edit.png") no-repeat scroll center center transparent;
background: url("Edit.png") no-repeat scroll center center transparent;
border-radius: 3px 3px 3px 3px;
display: inline-block;
width: 35px;
Expand Down