{capture assign="kalbos_d"}
    <div class="langs-switcher">
        {foreach from=$nodelist item=node name=langu}
            {if $node->depth==1}
                {if ($node->current == true) || ($node->parent) }
                    {assign var=kalba value=$node->alias}{assign var=kalba2 value=$node->menutext}
                    <a class="current-lang" href="{cms_selflink href=$node->alias}"{if $node->target} target="{$node->target}"{/if}>
                        <i class="fa fa-globe"></i>
                        <span>{$node->alias|upper}</span>
                        <i class="fa fa-angle-down"></i>
                    </a>

                {/if}
            {/if}
        {/foreach}
        <ul class="langs">
            {foreach from=$nodelist item=node name=langu}
                {if $node->depth==1}
                    {if ($node->current == true) || ($node->parent) }
                    {else}
                    <li>
                        <a href="{cms_selflink href=$node->alias}"{if $node->target} target="{$node->target}"{/if}>
                        {$node->alias|upper}
                        </a>
                    </li>
                    {/if}
                {/if}
            {/foreach}
        </ul>
    </div>
{/capture}


{capture assign="kalbos_m"}
{foreach from=$nodelist item=node name=langu}
    {if $node->depth==1}
        <option value="{$node->alias}" {if ($node->current == true) || ($node->parent) } selected{/if}>{$node->alias|upper}</option>
    {/if}
{/foreach}
{/capture}
