<!-- Item categories -->
<div class="itemcategory_widget_wrapper">
	<div class="widget_title"><span>{$template_text.main_widget_item_categories.item_category_title}</span></div>
	<div class="widget_content_menu_wrapper">
		<ul>
			{foreach name=menuLoop item=menu_item from=$main_widget_item_categories.menu_items}
				{if $menu_item->level == 1}
					<li class="level_{$menu_item->level}">
						<a title="{$menu_item->name}" name="{$menu_item->name}" class="{if isset($menu_item->activated) && $menu_item->activated}active{/if}" href="{$serverProtocol}://{$servername}/{if $menu_item->full_short_uri}{$menu_item->full_short_uri}/{else}index.php?menu_id={$menu_item->id}{/if}">
							<span>
								{if !$user_lang || $user_lang == $system_configuration.default_system_language || !$menu_item->name_en}
									{$menu_item->name}
								{else}
									{$menu_item->name_en}
								{/if}
							</span>
						</a>
					</li>
				{else}
					<li class="level_{$menu_item->level}">
						{if $main_widget_item_categories.menu_items[$menu_item->parent_id]->short_uri && $menu_item->short_uri}
							<a title="{$menu_item->name}" name="{$menu_item->name}" href="{$serverProtocol}://{$servername}/{$menu_item->full_short_uri}/" class="{if $menu_item->activated}active{/if}">
								<span class="text">
								{if !$user_lang || $user_lang == $system_configuration.default_system_language || !$menu_item->name_en}
									{$menu_item->name}
								{else}
									{$menu_item->name_en}
								{/if}
								</span>
								<span class="hover">&nbsp;</span>
								<span class="icon_wrapper"><span class="icon">&nbsp;</span></span>
							</a>
						{else}
							<a title="{$menu_item->name}" name="{$menu_item->name}" href="{$serverProtocol}://{$servername}/index.php?parent_id={$menu_item->parent_id}&menu_id={$menu_item->id}">
								<span class="text">
								{if !$user_lang || $user_lang == $system_configuration.default_system_language || !$menu_item->name_en}
									{$menu_item->name}
								{else}
									{$menu_item->name_en}
								{/if}
								</span>
								<span class="hover">&nbsp;</span>
								<span class="icon_wrapper"><span class="icon">&nbsp;</span></span>
							</a>
						{/if}
					</li>
				{/if}
			{/foreach}
		</ul>
	</div>
	<div class="widget_footer"></div>
</div>
