{if $nodelist|@count}
    {capture assign="menu"}
        {foreach from=$nodelist item=node name=sida}
            {if $node->depth==1}
                <li class="{if $node->extra1}imprnt {/if}{if ($node->current == true) || ($node->parent)}selected {assign var="current" value=$node->menutext}{/if} {if $node->haschildren} has-submenu{/if}">
                    <a href="{$node->url}"{if $node->target} target="{$node->target}"{/if}>{$node->menutext}</a>
                    {if ($node->current == true) || ($node->parent)}
                    {menu childrenof=$node->id template="side_meniu2" number_of_levels="1"}
                    {/if}
                </li>
            {/if}
        {/foreach}
    {/capture}


<div class="sidebar">
        <div class="content-menu-container">
              <a href="" class="mobile-menu-toggler" style="display:none;">
                {if $current}{$current}{else}{#pasirinkite_kategorija#}:{/if}
                <i class="fa fa-plus" aria-hidden="true"></i>
              </a>
              <ul class="content-menu">
                {$menu}
              </ul>
        </div>
</div>

{/if}
