diff options
-rw-r--r-- | TyrianTemplate.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/TyrianTemplate.php b/TyrianTemplate.php index c727875..a11fd4c 100644 --- a/TyrianTemplate.php +++ b/TyrianTemplate.php @@ -305,12 +305,18 @@ class TyrianTemplate extends BaseTemplate { <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-cog"></i> <?php $this->msg( 'toolbox' ) ?> <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <?php - foreach ( $this->getToolbox() as $key => $tbitem) { + $toolbox = $this->getSkin()->makeToolbox( + $this->data['nav_urls'], + $this->data['feeds'] + ); + + // Merge content that might be added to the toolbox section by hook + if ( isset( $this->data['sidebar']['TOOLBOX'] ) ) { + $toolbox = array_merge( $toolbox, $this->data['sidebar']['TOOLBOX'] ?? [] ); + } + foreach ( $toolbox as $key => $tbitem) { echo $this->makeListItem( $key, $tbitem ); } - - Hooks::Run( 'MonoBookTemplateToolboxEnd', [&$this] ); - Hooks::Run( 'SkinTemplateToolboxEnd', [ &$this, true ] ); ?> </ul> </li> |