113 lines
4.1 KiB
Smarty
Executable File
113 lines
4.1 KiB
Smarty
Executable File
{capture name=path}{l s='La presse en parle'}{/capture}
|
|
{include file="$tpl_dir./breadcrumb.tpl"}
|
|
<div class="borderGreen">
|
|
<h1>[{l s='La presse en parle'}]</h1>
|
|
|
|
<!-- Pagination -->
|
|
{if $nbPage <= 1}
|
|
<div class="pagination">
|
|
<li>{l s='Page 1'}</li>
|
|
</div>
|
|
{else}
|
|
<div class="pagination">
|
|
<li>{l s='Page '}</li>
|
|
{if $page >= 3}
|
|
{if $page > 3}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page=1">1</a></li>
|
|
<li>...</li>
|
|
{else}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page=1">1</a></li>
|
|
{/if}
|
|
{/if}
|
|
{if ($page - 1) > 0}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page={$page - 1}">{$page - 1}</a></li>
|
|
{/if}
|
|
<li class="current"><span>{$page}</span></li>
|
|
{if ($page + 1) < $nbPage}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page={$page + 1}">{$page + 1}</a></li>
|
|
{/if}
|
|
{if ($nbPage - $page) > 2}
|
|
<li>...</li>
|
|
{/if}
|
|
{if $page != $nbPage}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page={$nbPage}">{$nbPage}</a></li>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
|
|
{if $pressProducts|@count>0}
|
|
<div class="filtreProduits">
|
|
<label for="pressProducts">{l s='Filtrer par produit'}</label>
|
|
<select onchange="document.location.href=this.value" class="selectBox select308">
|
|
<option value="{$link->getPageLink('presse.php',true)}"> --- </option>
|
|
{assign var=catName value=""}
|
|
{assign var=compteur value=0}
|
|
{foreach from=$pressProducts item=produit}
|
|
{if $produit.category_lang==$cart->id_lang}
|
|
{if $compteur==0}
|
|
{assign var=compteur value=1}
|
|
<optgroup label="{$produit.category_name}">
|
|
{assign var=catName value=$produit.category_name}
|
|
{else}
|
|
{if $catName!=$produit.category_name}
|
|
</optgroup>
|
|
<optgroup label="{$produit.category_name}">
|
|
{assign var=catName value=$produit.category_name}
|
|
{/if}
|
|
{/if}
|
|
<option value="{$link->getPageLink('presse.php',true)}?id_product={$produit.id_product}&page=1"{if $produit.id_product==$idProduct} selected="selected"{/if}>{$produit.name}</option>
|
|
{/if}
|
|
{/foreach}
|
|
</optgroup>
|
|
</select>
|
|
</div>
|
|
{/if}
|
|
<div class="clear items">
|
|
<ul>
|
|
{foreach from=$press item=presse key=compteur}
|
|
<li class="{if $compteur % 2}alternate_item{else}item{/if}">
|
|
<img src="{$base_dir}modules/devspepresse/images/{$presse.image}" alt="{$presse.legend}" class="image" width="143"/>
|
|
<h2>" {$presse.title} "</h2>
|
|
<div class="texte">
|
|
{$presse.description}
|
|
</div>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<!-- Pagination -->
|
|
{if $nbPage <= 1}
|
|
<div class="pagination">
|
|
<li>{l s='Page 1'}</li>
|
|
</div>
|
|
{else}
|
|
<div class="pagination">
|
|
<li>{l s='Page '}</li>
|
|
{if $page >= 3}
|
|
{if $page > 3}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page=1">1</a></li>
|
|
<li>...</li>
|
|
{else}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page=1">1</a></li>
|
|
{/if}
|
|
{/if}
|
|
{if ($page - 1) > 0}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page={$page - 1}">{$page - 1}</a></li>
|
|
{/if}
|
|
<li class="current"><span>{$page}</span></li>
|
|
{if ($page + 1) < $nbPage}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page={$page + 1}">{$page + 1}</a></li>
|
|
{/if}
|
|
{if ($nbPage - $page) > 2}
|
|
<li>...</li>
|
|
{/if}
|
|
{if $page != $nbPage}
|
|
<li><a {$no_follow_text} href="{$link->getPageLink('presse.php',true)}?{if $idProduct>0}id_product={$idProduct}&{/if}page={$nbPage}">{$nbPage}</a></li>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
<div class="clear"></div>
|
|
</div>
|
|
|