Help:Skin
From IKMEmergent
A customised skin is required for this site to add the events box to the left hand margin and to customise the footer.
This skin is based on MonoBook and to recreate it from scratch, following a MediaWiki upgrade then follow the following steps.
First backup the old file:
cd ~/ikm/site/html/wiki/skins mv IKMEmergent.php IKMEmergent.php.bak
Then copy the MonoBook files:
rsync -av monobook/ ikmemergent/ cp MonoBook.php IKMEmergent.php
Then make the following changes to IKMEmergent.php.
Around line 204, customise the footer:
<?php // chris if($this->data['poweredbyico']) { ?> <div id="f-poweredbyico"><a href="http://eadi-online.org/" title="European Association of Development Research and Training Institutes"><img alt="EADI" src="/files/eadi.jpg" /></a></div>
Around line 213, customise the footer:
// Generate additional footer links // chris // orig: // 'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright', // 'privacy', 'about', 'disclaimer', 'tagline', $footerlinks = array( 'viewcount', 'numberofwatchingusers', 'credits', 'copyright', 'tagline', 'lastmod', ); $validFooterLinks = array();
Around line 213, add the events box:
/* chris - added p-calendar div */
function toolbox() {
?>
<div class="portlet" id="p-calendar"> <?php $this->msgWiki( 'Leftnav' ) ?> </div>
<div class="portlet" id="p-tb">
<h5><?php $this->msg('toolbox') ?></h5>
<div class="pBody">
<ul>
<li><a href="/index.php?title=Help:Editing">Editing Help</a></li>
<li><a href="/index.php?title=Special:Recentchanges">Recent changes</a></li>Around line 329 change the order for the bottom of the left hand navigation column:
// chris wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this ) ); wfRunHooks( 'MonoBookTemplateToolboxEnd', array( &$this ) );
Once you are done, commit the changes to the subversion repository:
svn ciFinally test the new skin on a development server and then use the ikm-wiki-upload script documented on the Help:MediaWiki page to update the live server
del.icio.us