Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.44 KB | None | 0 0
  1. <div class="footer_stuffs">
  2.     <h4>
  3.      <strong>{l s='New products' mod='blocknewproducts'}</strong>
  4.      <a href="{$base_dir}new-products.php">+ {l s='See more' mod='blocknewproducts'}</a>
  5.     </h4>
  6.     {if $new_products}
  7.             {foreach from=$new_products item=product name=myLoop}
  8.         {/foreach}
  9.  {if $new_products|@count > 0}    
  10.             <li>
  11.              <a href="{$new_products.0.link}">
  12.               <img src="{$img_prod_dir}{$new_products.0.id_image}-medium.jpg" height="60" width="60" alt="{$new_products.0.legend|escape:htmlall:'UTF-8'}" />
  13.              </a>
  14.          </li>
  15. {/if}
  16.  {if $new_products|@count > 1}    
  17.             <li>
  18.              <a href="{$new_products.1.link}">
  19.               <img src="{$img_prod_dir}{$new_products.1.id_image}-medium.jpg" height="60" width="60" alt="{$new_products.1.legend|escape:htmlall:'UTF-8'}" />
  20.              </a>
  21.          </li>
  22. {/if}
  23.  {if $new_products|@count > 2}    
  24.             <li>
  25.              <a href="{$new_products.2.link}">
  26.               <img src="{$img_prod_dir}{$new_products.2.id_image}-medium.jpg" height="60" width="60" alt="{$new_products.2.legend|escape:htmlall:'UTF-8'}" />
  27.              </a>
  28.          </li>
  29. {/if}
  30.  {if $new_products|@count > 3}    
  31.             <li>
  32.              <a href="{$new_products.3.link}">
  33.               <img src="{$img_prod_dir}{$new_products.3.id_image}-medium.jpg" height="60" width="60" alt="{$new_products.3.legend|escape:htmlall:'UTF-8'}" />
  34.              </a>
  35.          </li>
  36. {/if}
  37.          {else}
  38.         <p>{l s='No new product at this time' mod='blocknewproducts'}</p>
  39.     {/if}
  40. </div>
  41. <!-- /MODULE Block new products -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement