<ul>
{foreach from=$hierdata key='key2' item='item2'}
	<li {if (isset($active_hierarchy) and $item2.id == $active_hierarchy) || $item2.id|in_array:$hierarchy_tree}class="selected"{assign var="parent2" value=$item2.id}{assign var="parent2_extra" value=$item2.extra1.$kalba}{/if}>
		<a href="{$item2.url}">{$item2.name.$kalba}</a>
	</li> 
{/foreach}
</ul>
