Merge "New MonoBookAfterContent and MonoBookAfterToolbox hooks"

This commit is contained in:
jenkins-bot 2017-01-28 02:26:54 +00:00 committed by Gerrit Code Review
commit 64e29e8315
2 changed files with 12 additions and 0 deletions

View file

@ -104,6 +104,7 @@ class MonoBookTemplate extends BaseTemplate {
<div class="visualClear"></div>
</div>
</div>
<?php Hooks::run( 'MonoBookAfterContent' ); ?>
</div>
<div id="column-one"<?php $this->html( 'userlangattributes' ) ?>>
<h2><?php $this->msg( 'navigation-heading' ) ?></h2>
@ -325,6 +326,7 @@ class MonoBookTemplate extends BaseTemplate {
</div>
</div>
<?php
Hooks::run( 'MonoBookAfterToolbox' );
}
/*************************************************************************************************/

View file

@ -1,5 +1,15 @@
Hooks provided by the MonoBook skin.
'MonoBookAfterContent': Called after div#content has been closed but right
before div#column-content is closed. You can use this to inject items (such as
ads, for example) from an extension.
'MonoBookAfterToolbox': Called in toolbox() after the toolbox portlet (div#p-tb)
has been generated. You can use this to inject items (such as ads or a hit
counter, for example) from an extension.
This is the MonoBook couterpart to the VectorAfterToolbox hook in the Vector
skin.
'MonoBookTemplateToolboxEnd': DEPRECATED. Called by Monobook skin after toolbox
links have been rendered (useful for adding more). Note: this is only run for
the Monobook skin. To add items to the toolbox you should use the