From 816aadbdb4450c26d7a2914b4f4e733be0132af8 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 18 Apr 2013 01:28:55 +0200 Subject: Bug 851591: Add a main-end hook into global/footer.html.tmpl to be able to display additional data before displaying the page footer r=dkl a=LpSolit --- .../template/en/default/hook/global/footer-end.html.tmpl | 16 ++++++++++++++++ template/en/default/global/footer.html.tmpl | 1 + 2 files changed, 17 insertions(+) create mode 100644 extensions/Example/template/en/default/hook/global/footer-end.html.tmpl diff --git a/extensions/Example/template/en/default/hook/global/footer-end.html.tmpl b/extensions/Example/template/en/default/hook/global/footer-end.html.tmpl new file mode 100644 index 000000000..f4cb1e006 --- /dev/null +++ b/extensions/Example/template/en/default/hook/global/footer-end.html.tmpl @@ -0,0 +1,16 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% USE date %] + +

+ [% component.callers.first FILTER html %] processed + on [% date.format(date.now, '%b %d, %Y at %H:%M:%S') FILTER html %]. +
+ (provided by the Example extension). +

diff --git a/template/en/default/global/footer.html.tmpl b/template/en/default/global/footer.html.tmpl index 0e98d9efc..e161a061c 100644 --- a/template/en/default/global/footer.html.tmpl +++ b/template/en/default/global/footer.html.tmpl @@ -11,6 +11,7 @@ # global/useful-links.html.tmpl. #%] + [% Hook.process('main-end') %] [%# Migration note: below this point, this file corresponds to the old Param -- cgit v1.2.3-24-g4f1b