From 5e7345f4959aacc2d5be0098f474770b483a0869 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 25 Nov 2012 13:03:52 +0000 Subject: [PATCH] Added doTemplateGuestFooterExtras() call-back and guest_footer_extras filter chain --- inc/modules/index.php | 4 ++-- inc/template-functions.php | 19 +++++++++++++++++++ templates/de/html/ext/ext_clickbanner.tpl | 2 +- templates/de/html/guest/guest_footer.tpl | 2 ++ templates/de/html/member/member_footer.tpl | 2 +- templates/de/html/member/member_goto_top.tpl | 2 +- 6 files changed, 26 insertions(+), 5 deletions(-) diff --git a/inc/modules/index.php b/inc/modules/index.php index d0a35833c5..3c52cb5013 100644 --- a/inc/modules/index.php +++ b/inc/modules/index.php @@ -83,8 +83,8 @@ if ((getConfig('guest_menu') == 'Y') || (!isExtensionActive('sql_patches'))) { // Some advertising stuff? loadTemplate('guest_advert2'); - outputHtml(" -"); + outputHtml(' +'); // Goto TOP template loadTemplate('guest_goto_top'); diff --git a/inc/template-functions.php b/inc/template-functions.php index d840d71f44..e2cb87becc 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -2141,6 +2141,25 @@ function doTemplateNoYesSelectionBox ($templateName, $clear, $formField) { return $OUT; } +// Helper function to add extra content for guest area (module=index and others) +function doTemplateGuestFooterExtras ($templateName, $clear) { + // Init filter data + $filterData = array( + // Name of used template + 'template' => $templateName, + // Target array for gathered data + '__data' => array(), + // Where the HTML output will go + '__output' => '', + ); + + // Run the filter chain + $filterData = runFilterChain('guest_footer_extras', $filterData); + + // Return output + return $filterData['__output']; +} + // Helper function to add extra content for member area (module=login) function doTemplateMemberFooterExtras ($templateName, $clear) { // Is a member logged in? diff --git a/templates/de/html/ext/ext_clickbanner.tpl b/templates/de/html/ext/ext_clickbanner.tpl index 25f5be710e..6788e40df3 100644 --- a/templates/de/html/ext/ext_clickbanner.tpl +++ b/templates/de/html/ext/ext_clickbanner.tpl @@ -13,7 +13,7 @@ gezählt. -
+
Hinweis: Die Idee hinter dieser Erweiterung ist noch nicht komplett ausformuliert, bitte verwenden Sie diese aktuell nicht!
diff --git a/templates/de/html/guest/guest_footer.tpl b/templates/de/html/guest/guest_footer.tpl index ae7eab89eb..564a42d3b3 100644 --- a/templates/de/html/guest/guest_footer.tpl +++ b/templates/de/html/guest/guest_footer.tpl @@ -4,3 +4,5 @@ + +{%template,GuestFooterExtras%} diff --git a/templates/de/html/member/member_footer.tpl b/templates/de/html/member/member_footer.tpl index 8773c0411c..4a0b1d5a3b 100644 --- a/templates/de/html/member/member_footer.tpl +++ b/templates/de/html/member/member_footer.tpl @@ -1,5 +1,5 @@ - + diff --git a/templates/de/html/member/member_goto_top.tpl b/templates/de/html/member/member_goto_top.tpl index 2a30712f8b..d2e9d24d0f 100644 --- a/templates/de/html/member/member_goto_top.tpl +++ b/templates/de/html/member/member_goto_top.tpl @@ -1,5 +1,5 @@ - + -- 2.39.5