{assign var = 'class' value = ''} {if in_array($menu.id, $item->activeItems)}{assign var = 'class' value = "active `$class`"}{/if} {*if !empty($menu.sub)}{assign var = 'class' value = "dropdown-submenu2 `$class`"}{/if*} {if $menu.menuTitle}{$menu.menuTitle}{else}{$menu.title}{/if}{include file = "Doc/menu-item-badge.tpl"} {if !empty($menu.sub)} {/if}