 {if $products_slider}
<div class="row">
  <div class="flexslider span12">
    <ul  class="slides">
      {foreach from=$products_slider item=productslider name=products_slider}
      <li>
      <div class="row">
        <div class="pro-slide">
          <!--use class .product_image for image slide to cart -->
          <div class="pro-image span4"> <a class="product_image" title="{$productslider.name|escape:html:'UTF-8'}" href="{$productslider.link}"><img alt="" class="slider_img"  src="{$link->getImageLink($productslider.link_rewrite, $productslider.id_image, 'home_default')}"></a> </div>
          <div class="pro-detail span6">
            <h1 class="pro-title">{$productslider.name|escape:html:'UTF-8'}</h1>
            <div class="desc">{$productslider.description_short|strip_tags:'UTF-8'|truncate:300:'...'}</div>
            <span class="pro-price"> 
                <span class="old_price">
                    {if ($slider_type=='special_products')}
                        {if !$priceDisplay}{displayWtPrice p=$productslider.price_without_reduction}{else}{displayWtPrice p=$priceWithoutReduction_tax_excl}{/if}
                    {/if}
                </span>
 {if isset($productslider.show_price) && $productslider.show_price && !isset($restricted_country_mode)}<span class="new_price">{if !$priceDisplay}{convertPrice price=$productslider.price}{else}{convertPrice price=$productslider.price_tax_exc}{/if}</span>{/if} </span> {if ($productslider.quantity > 0 OR $productslider.allow_oosp)} <a class="slide-btn ajax_add_to_cart_button" rel="ajax_id_product_{$productslider.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&amp;id_product={$productslider.id_product}&amp;token={$static_token}&amp;add" title="{l s='Add to Cart' mod='wdproductslider'}">{l s='Add to Cart' mod='wdproductslider'}</a> {else} <span >{l s='Out Of Stock' mod='wdproductslider'}</span> {/if} 
           <!-- <span class="slider_type"></span> -->
           {if $product_type=="new_products"}
             <div class="pro-new">&nbsp;</div>
          {elseif $product_type=="special_products"}
             <div class="pro-special">&nbsp;</div>
          {elseif $product_type=="best_sell_products"}
             <div class="pro-best">&nbsp;</div>
          {elseif $product_type=="featured_products"}
             <div class="pro-featured">&nbsp;</div>
          {/if}
          </div>
        <div class="clear"></div>
        </div>
        </div>
      </li>
     
      {/foreach}
    </ul>
  </div>
</div>
<div class="products-home">
{/if} 