
{function menuTree_item entry="" selected=false}
    <a href="launch.php?s=list.php&amp;type={$type}&amp;IDsec={$entry.id}" target="mainFrame">{$entry.title}</a>
{/function}

{function menuTree item="menuTree_item"}
    <ul>
        {foreach $data as $entry}
            {if !empty($entry.submenu)}
                <li {if !$opened[$entry.id]}class="collapsed"{/if}>
                    <span class="btn btn-link">
                       <i class="btn-primary glyphicon glyphicon-{if !$opened[$entry.id]}plus{else}minus{/if}"></i>
                           <span class="has-child">
                              {call name=$item entry=$entry}
                           </span>
                    </span>
                    {menuTree data=$entry.submenu item=$item}
                </li>
            {else}
                <li>
                    <span class="btn btn-link">
                       {call name=$item entry=$entry item=$item}
                    </span>
                </li>
            {/if}
        {/foreach}
    </ul>
{/function}
