From: mutec Date: Thu, 7 Sep 2017 15:27:51 +0000 (+0200) Subject: added missing generic events for box positions hero and footer X-Git-Tag: 3.1.0_Beta_1~14^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d2cde5b3457f5b61ae664acecd268dd1469e6a5;p=GitHub%2FWoltLab%2FWCF.git added missing generic events for box positions hero and footer see also #2190 --- diff --git a/com.woltlab.wcf/templates/pageFooter.tpl b/com.woltlab.wcf/templates/pageFooter.tpl index 2d8e3cd085..83d36c3859 100644 --- a/com.woltlab.wcf/templates/pageFooter.tpl +++ b/com.woltlab.wcf/templates/pageFooter.tpl @@ -17,7 +17,7 @@ {assign var=__showStyleChanger value=false} {/if} - {if $__boxesFooter|count || $__showStyleChanger} + {if $__boxesFooter|count || !$boxesFooter|empty || $__showStyleChanger}
{if $__showStyleChanger} @@ -25,13 +25,19 @@ {lang}wcf.style.changeStyle{/lang} {/if} - {if $__boxesFooter|count} + {hascontent}
- {foreach from=$__boxesFooter item=box} - {@$box->render()} - {/foreach} + {content} + {if !$boxesFooter|empty} + {@$boxesFooter} + {/if} + + {foreach from=$__boxesFooter item=box} + {@$box->render()} + {/foreach} + {/content}
- {/if} + {/hascontent}
{/if} diff --git a/com.woltlab.wcf/templates/pageHeader.tpl b/com.woltlab.wcf/templates/pageHeader.tpl index b87fa4880c..8512fbbf1a 100644 --- a/com.woltlab.wcf/templates/pageHeader.tpl +++ b/com.woltlab.wcf/templates/pageHeader.tpl @@ -28,6 +28,10 @@
{content} + {if !$boxesHero|empty} + {@$boxesHero} + {/if} + {foreach from=$__wcf->getBoxHandler()->getBoxes('hero') item=box} {@$box->render()} {/foreach}