{if $hierdata|@sizeof}

		    {capture assign="menu"}
				{assign var="inside" value=1}
		{foreach from=$hierdata key='key' item='item2'}
			<li class="{if (isset($active_hierarchy) and $item2.id == $active_hierarchy) || $item2.id|in_array:$hierarchy_tree}selected{assign var="parent_link" value=$item2.url}{/if}{if $item2.children_exist} has-submenu{/if}">
				<a href="{$item2.url}">{$item2.name.$kalba}</a>
				{if ((isset($active_hierarchy) and $item2.id == $active_hierarchy) || $item2.id|in_array:$hierarchy_tree) && $item2.children_exist}
					{assign var="inner_parent" value=$item2.id}
					{Products action="hierarchy" hierarchytemplate="high_level" parent=$item2.id one_level=1}
				{/if} 
			</li>
		{/foreach}
		{/capture}
		<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-caret-square-o-down"></i>
		      </a>
		      <ul class="content-menu">
		        {$menu}
		      </ul>
		</div>
{/if}
