mirror of
https://github.com/Hutchy68/pivot.git
synced 2025-12-19 07:17:03 +01:00
Code fixes, cleanup
This commit is contained in:
@@ -1,16 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Pivot Skin
|
||||
*
|
||||
* @file Builds the Sidebar reducing code duplication
|
||||
* @since Version 1.0
|
||||
* @ingroup Skins
|
||||
* @author Tom Hutchison
|
||||
* @license 2-clause BSD
|
||||
*/
|
||||
|
||||
if ( ! defined('MEDIAWIKI'))
|
||||
{
|
||||
die("Wiki Wonders What You're Doing");
|
||||
die("Not Directly Called So What Are You Doing?");
|
||||
}
|
||||
|
||||
foreach ( $this->getSidebar() as $boxName => $box ) { if ( ($box['header'] != wfMessage( 'toolbox' )->text()) ) { ?>
|
||||
foreach ($this->getSidebar() as $boxName => $box) { if ( ($box['header'] != wfMessage( 'toolbox' )->text()) ) { ?>
|
||||
<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'] ) ) { ?>
|
||||
<?php foreach ( $box['content'] as $key => $item ) { echo $this->makeListItem( $key, $item ); } ?>
|
||||
<?php foreach ($box['content'] as $key => $item) { echo $this->makeListItem($key, $item); } ?>
|
||||
<?php } } ?>
|
||||
<?php } ?>
|
||||
<li><label>Toolbox</label></li>
|
||||
<?php foreach ( $this->getToolbox() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
|
||||
<?php foreach ($this->getToolbox() as $key => $item) { echo $this->makeListItem($key, $item); } ?>
|
||||
Reference in New Issue
Block a user