47 lines
2.4 KiB
Smarty
Executable File
47 lines
2.4 KiB
Smarty
Executable File
{*
|
|
* 2007-2013 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* http://opensource.org/licenses/afl-3.0.php
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2013 PrestaShop SA
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*}
|
|
|
|
{if isset($products)}
|
|
<!-- Products list -->
|
|
<ul id="product_list" class="clear">{assign var=compteur value=1}
|
|
{foreach from=$products item=product name=products}
|
|
<li class="ajax_block_product {*if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if*} {if $compteur==4}{assign var=compteur value=1}{/if} item{$compteur++} {if isset($product.filtreSelected)}{$product.filtreSelected}{/if}">
|
|
<div class="bordGreen">
|
|
<a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}">
|
|
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />
|
|
</a>
|
|
<div class="descr">
|
|
<h3><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'|truncate:48:'...'}</a></h3>
|
|
<p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:80:'...'}" >{$product.description_short|strip_tags:'UTF-8'|truncate:80:'...'}</a></p>
|
|
</div>
|
|
|
|
<a class="decouvrir" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='Découvrir'}">{l s='Découvrir'} <img src="{$img_dir}listingFleche.png" alt="" /></a>
|
|
</div>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
<!-- /Products list -->
|
|
{/if}
|