From 9d2cde5b3457f5b61ae664acecd268dd1469e6a5 Mon Sep 17 00:00:00 2001 From: mutec Date: Thu, 7 Sep 2017 17:27:51 +0200 Subject: [PATCH] added missing generic events for box positions hero and footer see also #2190 --- com.woltlab.wcf/templates/pageFooter.tpl | 18 ++++++++++++------ com.woltlab.wcf/templates/pageHeader.tpl | 4 ++++ 2 files changed, 16 insertions(+), 6 deletions(-) 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} -- 2.20.1