garancia/themes/default/category.tpl
2016-11-08 12:49:57 +01:00

154 lines
6.1 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
*}
{assign var=metaTitle value=$category->name}
{if $category->meta_title!=""}
{assign var=metaTitle value=$category->meta_title}
{/if}
{if $category->id==2}
{capture name=path}{$metaTitle}{/capture}
{else}
{capture name=path}<a href="{$link->getCategoryLink(2,'nos-produits')}">{l s='Nos produits'}</a><span class="navigation-pipe">{$navigationPipe}</span>{$metaTitle}{/capture}
{/if}
{include file="$tpl_dir./breadcrumb.tpl"}
<div class="clear relative">
{if $category->id == 8 || $category->id == 32 || $category->id == 10 || $category->id == 33 || $category->id == 9 || $category->id == 4 || $category->id == 6 || $category->id == 11 || $category->id == 5|| $category->id == 49}
<div class="content_scene_cat"{if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')}) no-repeat center center / cover #000;"{/if}>
<h1 class="border">
{$category->name|escape:'htmlall':'UTF-8'}
{if isset($categoryNameComplement)}
{$categoryNameComplement|escape:'htmlall':'UTF-8'}
{/if}
</h1>
{if $scenes || $category->description || $category->id_image}
{if $scenes}
<!-- Scenes -->
{include file="$tpl_dir./scenes.tpl" scenes=$scenes}
{else}
<!-- Category image -->
{*if $category->id_image}
<div class="align_center">
<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" />
</div>
{/if*}
{/if}
{if $category->description_short}
<div class="cat_desc">
{$category->description_short}
<a href="#category_description_full" class="lnk_more">{l s='More'} <span>&gt;</span></a>
</div>
{/if}
{/if}
</div>
{/if}
<div class="center_column_category clear relative">
<div id="menuGauche">
{assign var=nomTheme value=""}
{assign var=compteur value=0}
{foreach from=$productFiltres item=filtre}
{if $filtre.theme_name!=$nomTheme}
{assign var=compteur value=$compteur+1}
{if $compteur<2}
<p class="titre uppercase theme">{$filtre.theme_name}</p>
{/if}
{/if}
{assign var=nomTheme value=$filtre.theme_name}
{if $compteur<2}<p class="checkbox"><input type="checkbox" value="{$filtre.id_filtre}" id="option{$filtre.id_filtre}"/><label for="option{$filtre.id_filtre}">{$filtre.filtre_name}</label></p>
{/if}
{/foreach}
{*
<p class="titre uppercase">{l s='votre peau est'}</p>
<p class="checkbox"><input type="checkbox" value="Très sèche" id="option1" /><label for="option1">Très sèche</label></p>
<p class="checkbox"><input type="checkbox" value="Sèche" id="option2" /><label for="option2">Sèche</label></p>
<p class="checkbox"><input type="checkbox" value="Normal" id="option3" /><label for="option3">Normal</label></p>
<p class="checkbox"><input type="checkbox" value="Mixte" id="option4" /><label for="option4">Mixte</label></p>
<p class="checkbox"><input type="checkbox" value="Grasse" id="option5" /><label for="option5">Grasse</label></p>
<p class="titre uppercase">{l s='Est-elle :'}</p>
<p class="checkbox"><input type="checkbox" value="Sensible" id="option6" /><label for="option6">Sensible</label></p>
<p class="checkbox"><input type="checkbox" value="Déshydratée" id="option6" /><label for="option6">Déshydratée</label></p>
<p class="checkbox"><input type="checkbox" value="Rides et ridules" id="option6" /><label for="option6">Rides et ridules</label></p>
*}
</div>
<div id="product_list_anchor" class="borderGreen">
{include file="$tpl_dir./errors.tpl"}
{if isset($category)}
{if $category->id AND $category->active}
{if $products}
{include file="./product-list.tpl" products=$products}
{/if}
{elseif $category->id}
<p class="warning">{l s='This category is currently unavailable.'}</p>
{/if}
{include file="./pagination.tpl"}
{/if}
</div>
{if $category->description && ($category->id == 8 || $category->id == 32 || $category->id == 10 || $category->id == 33 || $category->id == 9 || $category->id == 4 || $category->id == 6 || $category->id == 11 || $category->id == 5 || $category->id == 49)}
<div id="category_description_full" name="category_description_full" class="clearfix">
{$category->description}
</div>
{/if}
</div>
</div>
<script type="text/javascript">{literal}
$(document).ready(function(){
$('#menuGauche p.checkbox input').click(function(){
if($(this).attr('checked')){
}else{
}
$('#product_list li.selected').removeClass('selected');
if($('#menuGauche p.checkbox input:checked').length>0){
$('#menuGauche p.checkbox input:checked').each(function(){
$('#product_list li.filtre_'+$(this).val()).addClass('selected').removeClass('hidden');
});
$('#product_list li').each(function(){
if(!$(this).hasClass('selected'))
$(this).addClass('hidden');
});
}else{
$('#product_list li').removeClass('hidden').removeClass('selected');
}
});
});
{/literal}</script>