Browse Source

added SkinTemplateToolboxEnd hook at the end of the page action menu to support extensions adding links to the page toolbox

Garrick van Buren 12 years ago
parent
commit
45aac1482b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      foreground.skin.php

+ 2 - 0
foreground.skin.php

@@ -48,6 +48,7 @@ class ForegroundTemplate extends BaseTemplate {
 											<?php if ( is_array( $box['content'] ) ) { ?>
 											<?php if ( is_array( $box['content'] ) ) { ?>
 												<ul class="dropdown">
 												<ul class="dropdown">
 													<?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 wfRunHooks( SkinTemplateToolboxEnd, array( &$this, true ) );  ?>
         								</ul>
         								</ul>
 											<?php }  ?>
 											<?php }  ?>
 									</li>
 									</li>
@@ -112,6 +113,7 @@ class ForegroundTemplate extends BaseTemplate {
 		<?php if ($wgUser->isLoggedIn()): ?>
 		<?php if ($wgUser->isLoggedIn()): ?>
 		<ul class="views large-12 columns">
 		<ul class="views large-12 columns">
 			<?php foreach( $this->data['content_actions'] as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
 			<?php foreach( $this->data['content_actions'] as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
+			<?php wfRunHooks( SkinTemplateToolboxEnd, array( &$this, true ) );  ?>
 		</ul>
 		</ul>
 		<?php endif; ?>
 		<?php endif; ?>