Jack Phoenix has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/330934 )
Change subject: New MonoBookAfterContent and MonoBookAfterToolbox hooks ...................................................................... New MonoBookAfterContent and MonoBookAfterToolbox hooks Example use case: the ShoutWiki Ads extension Change-Id: I9434fc1dcf53c2913fb4f2bcf53089849372b3cc --- M MonoBookTemplate.php M hooks.txt 2 files changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/MonoBook refs/changes/34/330934/1 diff --git a/MonoBookTemplate.php b/MonoBookTemplate.php index 7f496a0..9f9a01d 100644 --- a/MonoBookTemplate.php +++ b/MonoBookTemplate.php @@ -110,6 +110,7 @@ <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> @@ -333,6 +334,7 @@ </div> </div> <?php + Hooks::run( 'MonoBookAfterToolbox' ); } /*************************************************************************************************/ diff --git a/hooks.txt b/hooks.txt index b456a66..4c3bde5 100644 --- a/hooks.txt +++ b/hooks.txt @@ -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 -- To view, visit https://gerrit.wikimedia.org/r/330934 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9434fc1dcf53c2913fb4f2bcf53089849372b3cc Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/MonoBook Gerrit-Branch: master Gerrit-Owner: Jack Phoenix <j...@countervandalism.net> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits