YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Vtiger/Menu.tpl

Summary

Maintainability
Test Coverage
{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]} -->*}
    <nav class="tpl-Menu js-menu__content c-menu__content" id="submenu-0" data-js="container" aria-label="{\App\Language::translate("LBL_MAIN_MENU")}" data-js="keydown | focus">
        <ul class="nav flex-column modulesList">
            {assign var=PRIVILEGESMODEL value=Users_Privileges_Model::getCurrentUserPrivilegesModel()}
            {assign var=TABINDEX value=0}
            {foreach key=KEY item=MENU from=$MENUS}
                {assign var=MENU_MODULE value='Menu'}
                {if isset($MENU['moduleName'])}
                    {assign var=MENU_MODULE value=$MENU['moduleName']}
                {/if}
                {assign var=HASCHILDS value=isset($MENU['childs']) && $MENU['childs']|@count neq 0}
                {if $HASCHILDS || $MENU['type'] neq 'Label'}
                    {include file=\App\Layout::getTemplatePath('menu/'|cat:$MENU.type|cat:'.tpl', $MODULE)}
                {/if}
            {/foreach}
        </ul>
    </nav>
{/strip}