2015-11-04 13:50:24 +01:00
|
|
|
<?php
|
|
|
|
|
2015-11-04 15:53:51 +01:00
|
|
|
/**
|
|
|
|
* Pivot Skin
|
|
|
|
*
|
|
|
|
* @file Builds the Sidebar reducing code duplication
|
|
|
|
* @since Version 1.0
|
|
|
|
* @ingroup Skins
|
|
|
|
* @author Tom Hutchison
|
|
|
|
* @license 2-clause BSD
|
|
|
|
*/
|
|
|
|
|
2015-11-04 13:50:24 +01:00
|
|
|
if ( ! defined('MEDIAWIKI'))
|
|
|
|
{
|
2015-11-04 15:53:51 +01:00
|
|
|
die("Not Directly Called So What Are You Doing?");
|
2015-11-04 13:50:24 +01:00
|
|
|
}
|
|
|
|
|
2015-11-04 15:53:51 +01:00
|
|
|
foreach ($this->getSidebar() as $boxName => $box) { if ( ($box['header'] != wfMessage( 'toolbox' )->text()) ) { ?>
|
2015-11-04 13:50:24 +01:00
|
|
|
<li id='<?php echo Sanitizer::escapeId( $box['id'] ) ?>'<?php echo Linker::tooltip( $box['id'] ) ?>>
|
|
|
|
<li><label><?php echo htmlspecialchars( $box['header'] ); ?></label></li>
|
|
|
|
<?php if ( is_array( $box['content'] ) ) { ?>
|
2015-11-04 15:53:51 +01:00
|
|
|
<?php foreach ($box['content'] as $key => $item) { echo $this->makeListItem($key, $item); } ?>
|
2015-11-04 13:50:24 +01:00
|
|
|
<?php } } ?>
|
|
|
|
<?php } ?>
|
|
|
|
<li><label>Toolbox</label></li>
|
2015-11-04 15:53:51 +01:00
|
|
|
<?php foreach ($this->getToolbox() as $key => $item) { echo $this->makeListItem($key, $item); } ?>
|