Added doTemplateGuestFooterExtras() call-back and guest_footer_extras filter chain
authorRoland Häder <roland@mxchange.org>
Sun, 25 Nov 2012 13:03:52 +0000 (13:03 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 25 Nov 2012 13:03:52 +0000 (13:03 +0000)
inc/modules/index.php
inc/template-functions.php
templates/de/html/ext/ext_clickbanner.tpl
templates/de/html/guest/guest_footer.tpl
templates/de/html/member/member_footer.tpl
templates/de/html/member/member_goto_top.tpl

index d0a35833c5c9a3413751cadca88185ef9fa55c44..3c52cb5013b472cf7e9d8325123a68f0c84789b9 100644 (file)
@@ -83,8 +83,8 @@ if ((getConfig('guest_menu') == 'Y') || (!isExtensionActive('sql_patches'))) {
        // Some advertising stuff?
        loadTemplate('guest_advert2');
 
-       outputHtml("  </td>
-</tr>");
+       outputHtml('  </td>
+</tr>');
 
        // Goto TOP template
        loadTemplate('guest_goto_top');
index d840d71f44f012752b305a3e47f224cc2dc94e33..e2cb87becc01362a6d44a03faa6667fd7b545dac 100644 (file)
@@ -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?
index 25f5be710e87869509d85faf570d3426087c6d5a..6788e40df35985de1691c7100657ee8098bb5952 100644 (file)
@@ -13,7 +13,7 @@
        gez&auml;hlt.
 </div>
 
-<div class="para">
+<div class="para notice">
        <strong>Hinweis:</strong> Die Idee hinter dieser Erweiterung ist noch nicht
        komplett ausformuliert, bitte verwenden Sie diese aktuell nicht!
 </div>
index ae7eab89ebf9bd2eebb31e2530d3a8744bc6b47c..564a42d3b3b51df4b3fcc04366d6c65944b8eb4d 100644 (file)
@@ -4,3 +4,5 @@
        </td>
 </tr>
 </table>
+
+{%template,GuestFooterExtras%}
index 8773c0411cbc9726eda67a324065f433c4613abd..4a0b1d5a3b39606db438052a093b50a6187e86d9 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
-       <td class="guest_advert" colspan="3" align="center">
+       <td class="member_advert" colspan="3" align="center">
                <!-- Horizontal footer banner //-->
        </td>
 </tr>
index 2a30712f8bb45e8e615a0ff498a78b54a857a1f5..d2e9d24d0fab2139bb77968ba176eda64dbbc8ba 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
-       <td height="1%" align="center" class="guest_advert">
+       <td height="1%" align="center" class="member_advert">
                <div class="tiny"><a href="#TOP">{--GOTO_TOP--}</a></div>
        </td>
 </tr>