{include file="$template/includes/flashmessage.tpl"}
{if $clientsstats.numdomains || $registerdomainenabled || $transferdomainenabled} {elseif $condlinks.affiliates && $clientsstats.isAffiliate} {else} {/if}
{foreach from=$addons_html item=addon_html}
{$addon_html}
{/foreach}
{function name=outputHomePanels}
getAttribute('id')} id="{$item->getAttribute('id')}"{/if}>

{if $item->getExtra('btn-link') && $item->getExtra('btn-text')} {/if} {if $item->hasIcon()} {/if} {$item->getLabel()} {if $item->hasBadge()} {$item->getBadge()}{/if}

{if $item->hasBodyHtml()}
{$item->getBodyHtml()}
{/if} {if $item->hasChildren()}
{foreach $item->getChildren() as $childItem} {if $childItem->getUri()} getAttribute('dataToggleTab')} data-toggle="tab"{/if}{if $childItem->getAttribute('target')} target="{$childItem->getAttribute('target')}"{/if} id="{$childItem->getId()}"> {if $childItem->hasIcon()} {/if} {$childItem->getLabel()} {if $childItem->hasBadge()} {$childItem->getBadge()}{/if} {else}
{if $childItem->hasIcon()} {/if} {$childItem->getLabel()} {if $childItem->hasBadge()} {$childItem->getBadge()}{/if}
{/if} {/foreach}
{/if}
{/function} {foreach $panels as $item} {if $item->getExtra('colspan')} {outputHomePanels} {assign "panels" $panels->removeChild($item->getName())} {/if} {/foreach}
{foreach $panels as $item} {if $item@iteration is odd} {outputHomePanels} {/if} {/foreach}
{foreach $panels as $item} {if $item@iteration is even} {outputHomePanels} {/if} {/foreach}