<div class="boxContainer">
{content}
{foreach from=$__wcf->getBoxHandler()->getBoxes('contentBottom') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{/content}
</div>
{/if}
{foreach from=$__wcf->getBoxHandler()->getBoxes('sidebarRight') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{event name='boxesSidebarRightBottom'}
<div class="boxContainer">
{content}
{foreach from=$__wcf->getBoxHandler()->getBoxes('bottom') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{/content}
</div>
{if !$footerBoxes|empty}{@$footerBoxes}{/if}
{foreach from=$__wcf->getBoxHandler()->getBoxes('footerBoxes') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{/content}
</div>
<div class="boxContainer">
{content}
{foreach from=$__wcf->getBoxHandler()->getBoxes('headerBoxes') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{/content}
</div>
<div class="boxContainer">
{content}
{foreach from=$__wcf->getBoxHandler()->getBoxes('top') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{/content}
</div>
{/if}
{foreach from=$__wcf->getBoxHandler()->getBoxes('sidebarLeft') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{event name='boxesSidebarLeftBottom'}
<div class="boxContainer">
{content}
{foreach from=$__wcf->getBoxHandler()->getBoxes('contentTop') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{/content}
</div>
<div class="boxContainer">
{content}
{foreach from=$__wcf->getBoxHandler()->getBoxes('footer') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{/content}
</div>
<div class="boxContainer">
{content}
{foreach from=$__wcf->getBoxHandler()->getBoxes('hero') item=box}
- {@$box}
+ {@$box->render()}
{/foreach}
{/content}
</div>
-{@$__wcf->getBoxHandler()->getBoxes('mainMenu')[0]}
+{@$__wcf->getBoxHandler()->getBoxes('mainMenu')[0]->render()}
{*if $__wcf->getPageMenu()->getMenuItems('header')|count > 0}
<nav id="mainMenu" class="mainMenu jsMobileNavigation" data-button-label="{lang}wcf.page.mainMenu{/lang}">
<ul>
*
* @return string
*/
- public function __toString() {
+ public function render() {
if (!$this->hasContent()) return '';
WCF::getTPL()->assign([