Файл: WHMCS TEMPLATE/cloudmewhmcs/includes/navbar.tpl
Строк: 27
{foreach $navbar as $item}
<li
menuItemName="{$item->getName()}"{if $item->hasChildren()}
class="dropdown"{elseif $item->getClass()}
class="{$item->getClass()}"{/if}
id="{$item->getId()}">
<a {if
$item->hasChildren()}class="dropdown-toggle"
data-toggle="dropdown"
href="#"{else}href="{$item->getUri()}"{/if}{if
$item->getAttribute('target')}
target="{$item->getAttribute('target')}"{/if}>
{if $item->hasIcon()}<i
class="{$item->getIcon()}"></i> {/if}
{$item->getLabel()}
{if
$item->hasBadge()} <span
class="badge">{$item->getBadge()}</span>{/if}
{if $item->hasChildren()} <b
class="caret"></b>{/if}
</a>
{if
$item->hasChildren()}
<ul
class="dropdown-menu">
{foreach
$item->getChildren() as $childItem}
<li
menuItemName="{$childItem->getName()}"{if
$childItem->getClass()}
class="{$childItem->getClass()}"{/if}
id="{$childItem->getId()}">
<a
href="{$childItem->getUri()}"{if
$childItem->getAttribute('target')}
target="{$childItem->getAttribute('target')}"{/if}>
{if $childItem->hasIcon()}<i
class="{$childItem->getIcon()}"></i> {/if}
{$childItem->getLabel()}
{if $childItem->hasBadge()} <span
class="badge">{$childItem->getBadge()}</span>{/if}
</a>
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}