mirror of
https://github.com/Hutchy68/pivot.git
synced 2025-10-25 15:37:37 +02:00
addressing some duplication issues
This commit is contained in:
@@ -129,16 +129,8 @@ class pivotTemplate extends BaseTemplate {
|
||||
</div>
|
||||
</form>
|
||||
</li>
|
||||
|
||||
<?php 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 } } ?>
|
||||
<?php } ?>
|
||||
<li><label></i>Toolbox</label></li>
|
||||
<?php foreach ( $this->getToolbox() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
|
||||
|
||||
<?php include(__DIR__.'/view/sidebar.php'); ?>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
@@ -183,15 +175,7 @@ class pivotTemplate extends BaseTemplate {
|
||||
</form>
|
||||
</li>
|
||||
|
||||
<?php 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 } } ?>
|
||||
<?php } ?>
|
||||
<li><label>Toolbox</label></li>
|
||||
<?php foreach ( $this->getToolbox() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
|
||||
<?php include(__DIR__.'/view/sidebar.php'); ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user