added missing generic events for box positions hero and footer
authormutec <webmaster@mysterycode.de>
Thu, 7 Sep 2017 15:27:51 +0000 (17:27 +0200)
committermutec <webmaster@mysterycode.de>
Thu, 7 Sep 2017 15:27:51 +0000 (17:27 +0200)
see also #2190

com.woltlab.wcf/templates/pageFooter.tpl
com.woltlab.wcf/templates/pageHeader.tpl

index 2d8e3cd085fb9af3d1ae80ea8658af1847dadaad..83d36c3859b1e82c5bd983f070d08fa2f06a3d4a 100644 (file)
@@ -17,7 +17,7 @@
                {assign var=__showStyleChanger value=false}
        {/if}
        
-       {if $__boxesFooter|count || $__showStyleChanger}
+       {if $__boxesFooter|count || !$boxesFooter|empty || $__showStyleChanger}
                <div class="boxesFooter">
                        <div class="layoutBoundary{if $__showStyleChanger} clearfix{/if}">
                                {if $__showStyleChanger}
                                                <a href="#" class="jsButtonStyleChanger">{lang}wcf.style.changeStyle{/lang}</a>
                                        </span>
                                {/if}
-                               {if $__boxesFooter|count}
+                               {hascontent}
                                        <div class="boxContainer">
-                                               {foreach from=$__boxesFooter item=box}
-                                                       {@$box->render()}
-                                               {/foreach}
+                                               {content}
+                                                       {if !$boxesFooter|empty}
+                                                               {@$boxesFooter}
+                                                       {/if}
+
+                                                       {foreach from=$__boxesFooter item=box}
+                                                               {@$box->render()}
+                                                       {/foreach}
+                                               {/content}
                                        </div>
-                               {/if}
+                               {/hascontent}
                        </div>
                </div>
        {/if}
index b87fa4880cb8df1fef0283b769606a9deeb5a33f..8512fbbf1a5443257bad4c4ee3573829400bca2f 100644 (file)
                        <div class="layoutBoundary">
                                <div class="boxContainer">
                                        {content}
+                                               {if !$boxesHero|empty}
+                                                       {@$boxesHero}
+                                               {/if}
+
                                                {foreach from=$__wcf->getBoxHandler()->getBoxes('hero') item=box}
                                                        {@$box->render()}
                                                {/foreach}