privilegedemarque/themes/site/manufacturer-list.tpl
Serveur preprod f0c0c48223 first push
2016-04-14 16:14:31 +02:00

102 lines
5.2 KiB
Smarty
Executable File

{*
* 2007-2014 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{capture name=path}{l s='Marques privilège'}{/capture}
<div class='top_manu snotmobile'>
<img src="{$img_dir}bg_marque.png" class='img_top_manu' />
<p>
{l s='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis arcu tellus, vel condimentum lacus ultricies et. Cras congue nisl ut risus porta, semper iaculis risus pellentesque. Fusce facilisis sit amet eros sed venenatis. Ut blandit elit ut velit posuerevelit. Curabitur ipsum lorem, sollicitudin viverra mauris id, semper euismod est. Vestibulum vestibulum'}
</p>
<img src="{$img_dir}shape_manu.png"/>
</div>
{if isset($errors) AND $errors}
{include file="$tpl_dir./errors.tpl"}
{else}
{if $nbManufacturers > 0}
{assign var='nbItemsPerLine' value=3}
{assign var='nbItemsPerLineTablet' value=2}
{assign var='nbLi' value=$manufacturers|@count}
{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
{math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
<ul id="manufacturers_list" class="manufacturers_list list clearfix">
{foreach from=$manufacturers item=manufacturer name=manufacturers}
{math equation="(total%perLine)" total=$smarty.foreach.manufacturers.total perLine=$nbItemsPerLine assign=totModulo}
{math equation="(total%perLineT)" total=$smarty.foreach.manufacturers.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
{if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
<li class="col-xs-12 col-sm-4">
<div class="mansup-container">
<div class="col-xs-12 mansup-inbox">
<div class="left-side">
<div class="logo">
<a
class="lnk_img"
href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'html':'UTF-8'}"
title="{$manufacturer.name|escape:'html':'UTF-8'}" >
<img src="{$img_manu_dir}{$manufacturer.image|escape:'html':'UTF-8'}.jpg" alt="" />
</a>
</div> <!-- .logo -->
</div> <!-- .left-side -->
<div class="middle-side">
<h3>
<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'html':'UTF-8'}">
{$manufacturer.name|truncate:60:'...'|escape:'html':'UTF-8'}
</a>
</h3>
<div class="shape-red"></div>
{if $manufacturer.short_description}
<div class="description rte">
<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'html':'UTF-8'}">
{$manufacturer.short_description|strip_tags|truncate:200:'...'}
</a>
</div>
<div class="shape-red"></div>
{/if}
<div class="container-button">
<a title="{l s='Découvrir la marque' }" href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'html':'UTF-8'}" class="button-grey" itemprop="url">
<span>{l s='Découvrir la marque' }</span>
</a>
</div>
</div> <!-- .middle-side -->
</div>
</div>
</li>
{/foreach}
</ul>
<div class="content_sortPagiBar">
<div class="bottom-pagination-content clearfix">
{include file="$tpl_dir./pagination.tpl" paginationId='bottom'}
</div>
</div>
{/if}
{/if}
<div class="bot_manu">
{l s='Découvrez notre magazine. Retrouvez toutes nos astuces, nos découvertes et nouveautés privilégiés pour suivre les tendances.'}
<a href="{$link->getModuleLink('psblog', 'posts')|escape:'html':'UTF-8'}" class="link">{l s='Découvrir le magazine !' }</a>
</div>