<!DOCTYPE html>
<html ng-app="myapp">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>{$commonMetaTitle}</title>
    <meta name="description" content="{$commonMetaDescription|unescape:'html'|escape:'html'}" />
    <meta name="viewport" content="width=device-width">
    <meta name="Keywords" content="{$commonMetaKeywords|unescape:'html'|escape:'html'}" />
    <link rel="image_src" href="{$commonCompanyLogo}" />
    <meta property="og:title" content="{$commonMetaTitle|unescape:'html'|escape:'html'}"/>
    <meta property="og:image" content="{$commonCompanyLogo}"/>
    {include file='CommonStyles.tpl'}
    <link rel="stylesheet" href="{$view_styles}/index.css" />
    {include file='CommonJavaScript.tpl'}
    <script type="text/javascript">
        var allowPopup ="{$allowLoginPopup}";
    </script>
  </head>
  <body ng-controller="SearchCtrl">
    {*<!----------------------------------------------- Begin : Outer Pane ------------------------------------------------->*}
    <div id="main">
      {*<!--------------------------------------------- Begin : Header Pane------------------------------------------------>*} 
      {include file='CommonTop.tpl'} 
      {*<!--------------------------------------------- End : Header------------------------------------------------------>*}
      {*<!-------------------------------------------  Begin : Content Pane------------------------------------------------------>*}
      <div id="content-wrapper" ng-show="!query">
        <div class="container">
          <div id="common_message"></div>
          <div id="tracking_message"></div>
          <div id="common_fb_message"></div>
          <div id="unsubscribe_message"></div>
          <div id="common_message_referal"></div>
          <div id="invalid_email"></div>
          <div id="common_message_login"></div>
          <div id="common_message"></div>
          <div id="common_cart_message"></div>
          <div id="unsubscribe_message"></div>
          <div id="common_message_referal"></div>
          <div id="invalid_email"></div>
          {*<!------------------------------------------- Begin : Index top content area banner category add banner------------------------------------------------------>*}
           <div class="banner-slider margin-bottom text-center">
              {include file='BannerSlider.tpl'}
            </div>
           
          <div class="clearfix">
              <h4>Shop By Category</h4>
              <div class="light-bg menu pos-rel margin-bottom">
               {custommenu->showMenu menukey='main_navigation' seperator='li'} 
            </div>
            <div class="row add-banner">
              <div class="col-sm-6">{include file='addbanner/BannerSmallSquareLeftPanel.tpl'} </div>
                <div class="col-sm-6">{include file='addbanner/BannerSmallSquareRightPanel.tpl'}</div>
            </div>
            
          {*<!------------------------------------------- End : Index top content area banner category add banner------------------------------------------------------>*}
      
          {*<!------------------------------------------- Begin : Widget Pane------------------------------------------------------>*}
          {if count($listWidget)>0}
          {foreach $listWidget as $key=>$widget}
          <div class="widgetSlide">
            {*<!-- Dont remove the class "widget_elements" , ID and Data Attributes -->*}
            <div  id="widget_element_{$widget['widgetID']}" data-class="widget_elements" data-widget="{$widget['widgetID']}"  data-href="/index/ajaxgetwidget/widgetid/{$widget['widgetID']}/widgetdisplayedon/{$widget['widgetDisplayedOn']}/key/{$key}/"  ></div>
          </div>
          {/foreach}
          {/if}
          {*<!------------------------------------------- End : Widget Pane------------------------------------------------------>*}
          {*<!------------------------------------------- Begin : Recently view Pane------------------------------------------------------>*}
          {include file='RecentlyViewed.tpl'}
          {*<!------------------------------------------- End : Recently view  Pane------------------------------------------------------>*}
        </div>
      </div>
      
      {include file='CommonBottom.tpl'} 
      {*<!------------------------------------------- End : Footer Pane------------------------------------------------------>*}
    </div>
    {*<!------------------------------------------- End : Outer Pane------------------------------------------------------>*}
    <script type="text/javascript">
      var lblphone 				= '{$language.lblEnterContactNumber}';
      var productCurrency 			= 1;
      var languageID 				= '{$currentLanguageID}';
      var originCatalogID	 		= '{$originCatalogID|default:''}';
      var default_catalog_listing = '{$default_catalog_listing|default:''}';
      var detailPageProductID 		= 0;
    </script> 
    {include file='CommonJavaScriptBottom.tpl'}
    {html->messages_script section="Referral" id="common_message_referal"}
    {html->messages_script section="Subscribe" id="invalid_email"}
    {html->messages_script section="Subscribe" id="common_message"}
    {html->messages_script section="Track" id="tracking_message"}
    {html->messages_script section="Cart" id="common_cart_message"}
    {html->messages_script section="Common" id="common_message_login"}
    {html->messages_script section="Unsubscribe" id="unsubscribe_message"}
    {html->messages_script section="Login" id="common_fb_message"}
      {html->script_group_start name="{$compiled_js_path}/catalog.index.js"}
        {html->script src="{$common_frontend_js}/index.page.js"}
        {html->script src="{$common_frontend_js}/jquery.cookie.js"}     
        {html->script src="{$common_frontend_js}/catalog.page.js"}
        {html->script src="{$common_frontend_js}/buyNow.js"}
        {html->script src="{$common_frontend_js}/widget.page.js"}
        {html->script src="{$common_mobile_js}/recommendation.page.js"}
      {html->script_group_end}
   
    <script type="text/javascript">
      $(document).ready(function() {
      {$scriptstringForMenuMove|default:''}
      });
      {$menuScript|default:''}
    </script>
  </body>
</html>

