layouts/basic/modules/Vtiger/menu/Module.tpl
{strip}
{*<!-- {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} -->*}
{assign var=ICON value=Vtiger_Menu_Model::getMenuIcon($MENU, $MENU['name'])}
{if isset($MID)}
{if $MENU['id'] === $MID}
{assign var=ACTIVE value='true'}
{else}
{assign var=ACTIVE value='false'}
{/if}
{elseif $MENU['mod'] === $MODULE}
{assign var=ACTIVE value='true'}
{else}
{assign var=ACTIVE value='false'}
{/if}
<li class="tpl-menu-Module c-menu__item js-menu__item nav-item modCT_{$MENU['mod']} {if !$HASCHILDS}hasParentMenu{/if}" data-id="{$MENU['id']}" data-js="mouseenter mouseleave">
<a class="nav-link {if $ACTIVE=='true'} active{else} collapsed{/if}{if $ICON} hasIcon{/if}{if isset($MENU['hotkey'])} hotKey{/if}{if $HASCHILDS == 'true'} js-submenu-toggler is-submenu-toggler{/if}" {if isset($MENU['hotkey'])} data-hotkeys="{$MENU['hotkey']}" {/if} {if $HASCHILDS == 'true'}
data-toggle="collapse" data-target="#submenu-{$MENU['id']}" role="button" {/if} href="{$MENU['dataurl']}"
{if $HASCHILDS == 'true'} aria-haspopup="true" aria-expanded="{$ACTIVE}" aria-controls="submenu-{$MENU['id']}"
{/if} {if $MENU['newwindow'] eq 1}target="_blank" {/if}>
{$ICON}
<span class="c-menu__item__text js-menu__item__text" title="{$MENU['name']}" data-js="class: u-white-space-n">{$MENU['name']}</span>
{if $HASCHILDS == 'true'}
<span class="toggler" aria-hidden="true">
<span class="fas fa-plus-circle"></span>
<span class="fas fa-minus-circle"></span>
</span>
{/if}
</a>
{include file=\App\Layout::getTemplatePath('menu/SubMenu.tpl', $MODULE)}
</li>
{/strip}