<!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"> <!--<![endif]--><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblSiteMap}</title>
<meta name="Description" content="{$commonMetaDescription}" />
<meta name="viewport" content="width=device-width">
<meta name="Keywords" content="{$commonMetaKeywords}" />
<meta property="og:image" content="{$commonMetaImage}"/>
<meta property="og:title" content="{$commonMetaTitle|unescape:'html'|escape:'html'}"/>
<link rel="stylesheet" type="text/css" href="{$view_styles}/cms-layout.css" />
{include file='CommonJavaScript.tpl'  }
{form->rootpath_script}
{form->basepath_script}
</head>
<body ng-controller="SearchCtrl">
<!-- Begin : Outer Pane -->
<div id="main"> 
 <!-- Begin : Header Pane-->
  {include file='CommonTop.tpl'}
  <!-- End : Header -->
  <div class="bread-crumb">
    <div class="wrapper">
      <ul class="clearfix">
        {custommenu->breadcrumb seperator='/'}
      </ul>
    </div>
  </div>
  <div id="content-wrapper" ng-show="!query" > 
    <!-- Begin : Content Pane -->
    <div class="wrapper">
      <div class="full-width-div clearfix sitemap">
        <h2>{$language.lblSiteMap}</h2>
        <div class="clear"></div>
     		{if $resMenuList}
            	 {foreach from=$resMenuList item="menuList"} {if !empty($menuList[2]) && is_array($menuList[2])}
        <div class="cols01">      
 <h4>{$menuList[1]}</h4>
            	 <ul id="sort1" class="sitemap-menu">
                 	{* define the function *}  
                 	{function name=menuItems level=0}
                        {foreach from=$data item="entry"}  
                             <li>  
                             <div class="cms_area default-style"><a href="{$entry.newLink}">&raquo; {$entry.menuItemName} </a></div>
                                {if is_array($entry['children']) && !empty($entry['children'])}
                                    <ul id="" class="connectedSortable ui-sortable"> 
                                    {call name=menuItems data=$entry['children'] level=$level+1}  <!--menu function calling-->
                                    </ul>
                              
                                {else}
                                    {if (is_array($entry)) && (is_numeric($entry['menuItemID']))}
                                        </li>	
                                    {/if}
                                {/if}
                        {/foreach}  
          			{/function}
          			{call menuItems data=$menuList[2]} <!--menu function calling-->
              </ul>
              </div>
              {/if}
               {/foreach}  
            {/if} 
            {if empty($resMenuList)}
 		<div class="warning curve-6" >{$language.msgNoRecords}</div>
    		{/if} 
        <div class="clear"></div>
      </div>
    </div>
    
    <!-- End : Content Pane --> 
    
  </div>
  <!-- Begin : Footer	Pane --> 
  {include file='CommonBottom.tpl'  } 
  <!-- End : Footer Pane --> 
</div>
{include file='CommonJavaScriptBottom.tpl'  }
{html->messages_script id="common_message"} 
</body>
</html>
