From 72a85df1777947656c83d97c77044552a1fd1cae Mon Sep 17 00:00:00 2001 From: Leon Weber Date: Mon, 30 Apr 2007 22:29:56 +0000 Subject: [PATCH] * Added beginnings of WatchlistTicker extension. Works for most cases only, not yet documented, no i18n, not cleaned up; do not use. * Therefore added 'MonoBookTemplateAboveColumnContent' hook. --- RELEASE-NOTES | 1 + docs/hooks.txt | 6 +++++- skins/MonoBook.php | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index befce49f75..e2ed7582ef 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -129,6 +129,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN better localization. Change is reverse-compatible and can be ignored for most wikis. * Adding a 'reason' field to Special:Userrights +* Added 'MonoBookTemplateAboveColumnContent' hook; see docs/hooks.txt for more information == Bugfixes since 1.9 == diff --git a/docs/hooks.txt b/docs/hooks.txt index 9f5d289f12..5e81eaede1 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -48,7 +48,7 @@ would handle this as follows (note: not real code, here): # code to actually show the article goes here } - + An extension writer, or a local admin, will often add custom code to the function -- with or without a global variable. For example, someone wanting email notification when an article is shown may add: @@ -431,6 +431,10 @@ $mathRenderer: instance of MathRenderer $errmsg: error message, in HTML (string). Nonempty indicates failure of rendering the formula +'MonoBookTemplateAboveColumnContent': Monobook output, above div#column-content. Any string +you echo here will be printed above the div#column-content element on every page. +$outObj: instance of the output class + 'OutputPageBeforeHTML': a page has been processed by the parser and the resulting HTML is about to be displayed. $parserOutput: the parserOutput (object) that corresponds to the page diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 50d7f00f3e..a8a829b8b0 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -95,6 +95,11 @@ class MonoBookTemplate extends QuickTemplate { data['body_onload' ]) { ?>onload="text('body_onload') ?>" class="mediawiki text('nsclass') ?> text('dir') ?> text('pageclass') ?>">
+
-- 2.20.1