<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" class="no-js" lang="{$SelCurrLanguage}"> <!--<![endif]--><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblSiteMap} : {$commonMetaTitle}</title>
<meta name="Description" content="{$commonMetaDescription}" />
<meta name="viewport" content="width=device-width">
<meta name="Keywords" content="{$commonMetaKeywords}" />
{include file='CommonStyles.tpl'  }
{include file='CommonJavaScript.tpl'  }
</head>
<body ng-controller="SearchCtrl" class="{$languageDirection}"> 
<!-- Begin : Outer Pane -->
<div id="main"> 
	<!-- Begin : Header Pane-->
	{include file='CommonTop.tpl'}
	<!-- End : Header -->
	<div id="content-wrapper" ng-show="!query" >
		<!-- Begin : Content Pane -->
		<div class="container">
		    <div class="full-width-div sitemap row light-bg">
             <h1>{$language.lblSiteMap}</h1>
			    <div class="clearfix sitemap-listing">
				   <div class="list-group">		 
			       <h4>{$language.lblCatalog}</h4>
					<ul>
						{* define the function *} 
						{function name=categories1 level=0}
							{foreach from=$data item="productCategory"} 
								<li>{html->anchor href="{$productCategory.productCategoryID|sef_path:'catalog'}" content="{$productCategory.productCategoryName}"}
								{if isset($productCategory['children']) && is_array($productCategory['children']) && !empty($productCategory['children']) }
									{assign var="elementCount" value=$productCategory['children']|count/3}
									{assign var="elementCount" value=$elementCount|ceil}
									{if $elementCount>0}
									
											{assign var="productCategoryChildren" value=array_chunk($productCategory['children'], 3)}
											{for $counter=0; $counter<$elementCount ; $counter++}
											<ul> 
											{call name=categories1 data=$productCategoryChildren[$counter] level=$level+1} 
											</ul>
											{/for}
										
									{else}
										<ul> 
										{call name=categories1 data=$productCategory['children'] level=$level+1} 
										</ul>
									{/if}

								{/if}
                                 </li>
							{/foreach}  
						{/function}
						{call categories1 data=$CategoryMenus} 
					</ul>
			    </div>
				
				<div class="list-group">		 
			       <h4>{$language.lblBrands}</h4>
					<ul>
						{foreach $listBrand as $brand}
						<li>
							{html->anchor href="brand/{$brand['brandKey']}" content="{$brand['brandName']}"}
						</li>
						{/foreach}
					</ul>
			    </div>
			     <div class="list-group">		 
					<h4>{$language.lblMyAccount}</h4>
                      <ul>
					{if $userID}
					 
						  <li>{html->anchor href="/user/purchases/" rel="purchases"  caption=$language.lblMyPurchases}</li>
						  <li>{html->anchor href="/user/account/" rel="certificates" caption=$language.lblProductCertificate}</li>
						  <li>{html->anchor href="/user/wishlist/" rel="wishlist" caption=$language.lblMyWishlist}</li>
						  <li>{html->anchor href="/user/edit/" rel="personal" class="icon6" caption=$language.lblPersonalInformation}</li>
						  <li>{html->anchor href="/user/changepassword/" rel="password" class="icon6" caption=$language.lblChangePassword}</li> 
						  <li>{html->anchor href="/user/address/" rel="address" class="icon6" caption=$language.lblAddress}</li>
						  <li>{html->anchor href="/user/shipping/" rel="shipping" caption=$language.lblShippingAccount}</li>
						  <li>{html->anchor href="/user/subscriptions/" rel="subscription" caption=$language.lblSubscriptions}</li>
					  
				   {else}
					  <li>{html->anchor href="#"  caption="{$language.lblLoginSignUp}" class="logout-link popuplogin"}</li>
				   {/if}
                    </ul>
			    </div>
                {if $resMenuList}
				   {foreach from=$resMenuList item="menuList"} {if !empty($menuList[2]) && is_array($menuList[2])}	
                   <div class="list-group">		 
				    <h4>{$menuList[1]}</h4>
						<ul>
							{* define the function *}  
							{function name=menuItems level=0}
								{foreach from=$data item="entry"}  
									
									{if $entry.newLink==''}							
									 <li><strong>{$entry.menuItemName}</strong>
									{else}							
									 <li><a href="{$entry.newLink}">{$entry.menuItemName} </a>
									 {/if}  
										{if isset($entry['children']) && is_array($entry['children']) && !empty($entry['children'])}
											<ul > 
											{call name=menuItems data=$entry['children'] level=$level+1}  <!--menu function calling-->
											</ul>
										{else}
											{if (is_array($entry)) && (is_numeric($entry['menuItemID']))}
													
											{/if}
										{/if}
										</li>
								{/foreach}  
							{/function}
							{call menuItems data=$menuList[2]} <!--menu function calling-->
						</ul>
                        </div>
                {/if}
                {/foreach}  
                {/if} 
                  
                
		</div>
    </div>
    </div>
	<!-- End : Content Pane --> 
</div>
	<!-- Begin : Footer	Pane --> 
	{include file='CommonBottom.tpl'  } 
  <!-- End : Footer Pane --> 
</div>
{html->messages_script id="common_message"}
{form->rootpath_script}
{form->basepath_script}
{include file='CommonJavaScriptBottom.tpl'  } 
</body>
</html>