 		{assign var="index" value=0}
  		{foreach $listWidgetTab as $tabkey=>$widgetTabs}
  		{assign var="widgetKey" value=$widgetTabs['widgetKey']}
  		
  		{assign var="widgetType" value=$widgetTabs['widgetType']}
  		{assign var="staticWidgetContent" value=$widgetTabs['staticWidgetContent']}
  		{if $widgetType eq 'static'}
  		<div class="tabpane_{$widgetTabs['widgetID']} {$widgetTabs['widgetType']} {if $index>0}hide{/if}" data-tabid="tab_{$widgetKey}_{$tabkey}" id="tabpane_{$widgetTabs['widgetTabID']}">{$staticWidgetContent|unescape}</div>
  		{assign var="index" value=$index+1}
  		{else}
  		<div class="tabpane_{$widgetTabs['widgetID']} {$widgetTabs['listingType']} {if $index>0}hide{/if}" data-tabid="tab_{$widgetKey}_{$tabkey}" id="tabpane_{$widgetTabs['widgetTabID']}">

  		{assign var="listWidgetTabItems" value=$widgetTabs['listWidgetTabItems']}
  		{assign var="widgetTabID" value=$widgetTabs['widgetTabID']}
  		{assign var="listingType" value=$widgetTabs['listingType']}
  		{assign var="uniqueID" value=$widgetTabs['uniqueID']}
  		{assign var="viewMoreLabel" value=$widgetTabs['viewMoreLabel']}
  		{assign var="widgetDisplayedOn" value=$widgetTabs['widgetDisplayedOn']}
  		{assign var="enableViewMore" value=$widgetTabs['enableViewMore']}
  		{assign var="showItemLabel" value=$widgetTabs['showItemLabel']}
  		{assign var="widgetViewMoreLink" value=$widgetTabs['widgetViewMoreLink']}
  		
  		{assign var="viewMoreLabelType" value=$widgetTabs['viewMoreLabelType']}
  		{assign var="widgetViewMoreLabel" value=$widgetTabs['widgetViewMoreLabel']}	
  			
  		
  		{if $listingType=='categories'}
  			{assign var="maxCount" value=ceil(count($listWidgetTabItems)/3)}
  		{else if $listingType=='brands'}
  			{assign var="maxCount" value=ceil(count($listWidgetTabItems)/8)}
  		{else}
  			{assign var="maxCount" value=ceil(count($listWidgetTabItems)/5)}
  		{/if}

                     

  <div class="wdgt-slider_{$uniqueID} wdgt-slider clearfix ">
     {if $widgetTabs['listWidgetBundles']|count gt '0'}
               {assign var="listWidgetBundles" value=$widgetTabs['listWidgetBundles'][0]}
          {/if}
           {assign var="bundleID" value=$widgetTabs['bundleID']|default:0}
          {if $bundleID gt '0' && $listWidgetBundles|count gt '0'}
      <div class="bundle col-md-4" >
              {if $listWidgetBundles|count gt '0'}
                   <div class="slide-inner padding light-bg pos-rel">
				  
                      <div class="pdtOptions text-center">
                         <div class="tag-bundle">{$language.lblBundleOffer|upper}</div>
                           {if $listWidgetBundles['percentOff']!=0}
                         <div class="discount  pull-right">
  				{$listWidgetBundles['percentOff']}%
  				<span>{$language.lblOff|upper}</span>
                         </div>
                           {/if}
                      </div>
					
                      <figure>
                           
                      {if $listWidgetBundles['promoImage'] neq ''}
                         {assign var="image" value="{$view_public_path}/uploads/bundle/product/{$listWidgetBundles['promoImage']}"}
                     {else}
                          {assign var="image" value="{$view_images}/not-av-img.gif"}
                      {/if}
                      {html->anchor href="bundle/{$listWidgetBundles['ruleKey']}" content="<img src='{$image}' class='img-responsive' alt='{$listWidgetBundles['ruleName']|truncate:35}' title='{$listWidgetBundles['ruleName']}'/>"}
                     </figure>
                      <div class="product-info-block">
                         {if $listWidgetBundles['ruleName'] neq ''}
                            <h6>{html->anchor href="bundle/{$listWidgetBundles['ruleKey']}" content="{$listWidgetBundles['ruleName']|truncate:200}"}</h6>
                          {/if}
                      </div>
                      <div class="clearfix inr-btm-wrap">
                           
                             <div class="pull-right text-center inr-btn">
                                   <span class="bpfc h5style font-semibold text-center">{$listWidgetBundles['productCount']}</span> {$language.lblCartItems}<br>
                                    {html->anchor href="bundle/{$listWidgetBundles['ruleKey']}" content="{$language.lblBuyNow|upper}" class="btn btn-primary  h5style font-semibold"}
                             </div>
                                                      <div class="margin-right pull-left text-center">
                                                           {$language.lblYouSave}<br><span class="bpfc h5style font-semibold">{$listWidgetBundles['discountAmount']|default:''|price:'':$listWidgetBundles['productDefaultCurrency']:$currentCurrencyID}</span>
                                                      </div>
                                                      <div class="inner-wrap2 pull-left padding-left">
                                                          <span class="bpfc offer-price h5style font-bold">{$listWidgetBundles['bundleProductPrice']|default:''|price:'':$listWidgetBundles['productDefaultCurrency']:$currentCurrencyID}</span><br>
                             <del class="h6style font-semibold">{$listWidgetBundles['bundleProductRegPrice']|default:''|price:'':$listWidgetBundles['productDefaultCurrency']:$currentCurrencyID}</del>
                                                      </div>
                      </div>
                  </div>
      </div>
            {/if}
          {/if}  
          <div class="widget-block {if $bundleID gt '0'}col-md-8 bundle-wdgt-listing {else}col-xs-12{/if} {if $tabCount!==1}rmv-padding-right{/if}"> 
          <div class="row ">         
  	{foreach $listWidgetTabItems as $key=>$item}
  	<div class="slide {if $bundleID gt '0'}col-md-4{else}col-md-3 col-xs-6{/if} {if count($listWidgetTab)==1}slide-count-5{/if} margin-top {if $listingType=='brands'}brand-slide{/if}">
  	<div class="slide-inner padding light-bg pos-rel">
  		  <div class="pdtOptions text-center">

  			{if isset($item['itemFeaturedStatus']) && $item['itemFeaturedStatus']=='Yes'}
  					 <span class='featured pull-left'>{$language.lblFeatured|upper}</span>
  			{/if}
  			{if $item.itemDiscount|default:0!='' && $item.itemDiscount|default:0 >=1}
  				<div class="discount  pull-right ">
  				{$item.itemDiscount}%
  				<span>{$language.lblOff|upper}</span></div>
  			{/if}
  	
  			</div>
  		<figure class="text-center">
  		{assign var="originCatalogID" value=$originCatalogID|default:''}
  			{if isset( $item['jerseyImage']) &&  $item['jerseyImage']!=''}
  				{assign var="image" value="{$view_public_path}/uploads/{$item['jerseyImage']}"}
  			{else if isset( $item['itemIcon']) &&  $item['itemIcon']!=''}
  				{assign var="image" value="{$view_public_path}/uploads/{$item['itemIcon']}"}
  			{else}
  				{assign var="image" value="{$view_images}/not-av-img.gif"}
  			{/if}
  			{if $listingType=="brands"}
  				{html->anchor  href="/brand/{$item.itemKey}" target="{if $widgetDisplayedOn eq 'facebook'}blank{/if}" content="<img src='{$image}' width='150' height='75' class='img-responsive' alt='{$item['itemName']|truncate:35}' title='{$item['itemName']|truncate:35}'/>"}
  			{else if $listingType=='categories'}
  				{html->anchor  href="{$item.itemID|sef_path:'catalog'}" target="{if $widgetDisplayedOn eq 'facebook'}blank{/if}"  content="<img src='{$image}' width='{$category_image_width}' height='{$category_image_height}' class='img-responsive' alt='{$item['itemName']|truncate:35}' title='{$item['itemName']|truncate:35}'/>"}
  			{else if $listingType=='teams'}
                 {assign var="team_url" value=$item.itemID|sef_path:'team'}
                 {if $team_url==''}{assign var="team_url" value='catalog/index/team/'|cat:{$item.itemKey}|cat:'/'}{/if}
  				{html->anchor  href="{$team_url}"  target="{if $widgetDisplayedOn eq 'facebook'}blank{/if}" content="<img src='{$image}' width='{$category_image_width}' height='{$category_image_height}' class='img-responsive' alt='{$item['itemName']|truncate:35}' title='{$item['itemName']|truncate:35}'/>"}
  			{else}

  				{html->anchor  target="{if $widgetDisplayedOn eq 'facebook'}blank{/if}"  href="{$item.itemID|sef_path:'product'}" content="<img src='{$image}' width='{$thumb_width}' height='{$thumb_height}' class='img-responsive' alt='{$item['itemName']|truncate:35}' title='{$item['itemName']|truncate:35}'/>"}

  			{/if}
  		</figure>
  		<div class="product-info-block {if $showItemLabel=='Yes'}show-label{/if}">
  		{if $showItemLabel=="Yes"}
  			{if $listingType=='brands'}
  				<h6>
  				{html->anchor  href="/brand/{$item.itemKey}" target="{if $widgetDisplayedOn eq 'facebook'}blank{/if}" content="{$item['itemName']|truncate:35}"}
  				</h6>
  			{else if $listingType=='categories'}
  				<h6>{html->anchor  href="{$item.itemID|sef_path:'catalog'}" target="{if $widgetDisplayedOn eq 'facebook'}blank{/if}" content="{$item['itemName']|truncate:35}"}
  				</h6>
  			
  			{else}
  			<h6>{html->anchor  href="{$item.itemID|sef_path:'product'}" target="{if $widgetDisplayedOn eq 'facebook'}blank{/if}" content="{$item['itemName']|truncate:40}"}
  			</h6>
  			{/if}
  		{/if}
  		{if isset($item['itemPrice']) && $item['itemPrice']!=''}
  		<p>
  			{if $item['itemRegularPrice'] != $item['itemPrice']}
  				<del>{$item['itemRegularPrice']|default:''|price:'':$item['productDefaultCurrency']:$currentCurrencyID}</del>
  			{/if}
  			<strong class="bpfc">{$item['itemPrice']|default:''|price:'':$item['productDefaultCurrency']:$currentCurrencyID}</strong>
  			</p>
  		{/if}
  		</div>
  	</div>	
  	</div>
  	
  	{assign var="index" value=$index+1}
  	{/foreach}
    </div>	
     </div>
    
      </div>

  </div>
  	{/if}

  	 {/foreach}