{% extends 'layouts/layouts_front/base_front.html.twig' %}
{% block stylesheets %}
{% if isThereSlider|length > 0 %}
<link rel="stylesheet preload" as="style" media="screen"
href="{{ asset('js/modern-slide-in/css/sequencejs-theme.modern-slide-in.min.css', 'main-app') }}">
{% endif %}
{% endblock %}
{% set titleAff = page.seoTitle|default(page.ptitreonglet)|default(page.ptitre) %}
{% set titleAff = "E-boutique" %}
{% if catEnCours is defined %}
{% for cat in ecoCategs %}
{% if cat.id == catEnCours %}
{% set titleAff = titleAff~" - "~cat.categ_entitled %}
{% endif %}
{% endfor %}
{% endif %}
{% set titleAff = titleAff|slice(0,34)~" | "~nomDuSite %}
{% if app.request.locale == 'fr' %}
{% set metaDescr = page.seoDescription|default( "Retrouvez tous les produits sur le site de "~nomDuSite) %}
{% else %}
{% set metaDescr = page.seoDescription|default("Find all the products on the "~nomDuSite~" website") %}
{% endif %}
{% block metaDescription %}{{ metaDescr }}{% endblock %}
{% block metaDescriptionOg %}{{ metaDescr }}{% endblock %}
{# {% block keywords %}{{ page.seoKeywords }}{% endblock %} #}
{% block keywords %}{% endblock %}
{% block title %}{{ titleAff }}{% endblock %}
{% block titleOg %}{{ titleAff }}{% endblock %}
{% block content %}
{% if page is not null %}
{% set mediaTmp = page.pbandeau %}
{% set mediaDefault = "default.jpg" %}
{% set mediaTmp = webp(webpSupported, mediaTmp)|url_encode %}
{% set mediaDefault = webp(webpSupported, mediaDefault)|url_encode %}
<section data-bs-version="5.1" class="header1 cid-sYtfgmlx9v mbr-parallax-background"
style="background-image: url('{{ asset("/medias_front/pages/"~mediaTmp|default(mediaDefault))|imagine_filter('front_Bandeau_1920') }}');height: 580px">
<div class=" mbr-overlay" style="opacity: 0; background-color: rgb(255, 255, 255);"></div>
<div id="titrePage" class="pt-5 align-center container">
<div class="row justify-content-center">
<div class="col-12 col-lg-12">
{% if category is not empty %}
<h1 class="BigTitle mbr-section-title mbr-fonts-style mb-0 display-1">
{{ category.categEntitled }}</h1>
{% else %}
<h1 class="BigTitle mbr-section-title mbr-fonts-style mb-0 display-1">Boutique</h1>
{% endif %}
</div>
</div>
</div>
</section>
{% else %}
<section data-bs-version="5.1" class="header1 cid-sYtfgmlx9v mbr-parallax-background"
style="background-image: url('{{ asset("/medias_front/pages/default.webp" ) }}');height: 580px">
<div class=" mbr-overlay" style="opacity: 0; background-color: rgb(255, 255, 255);"></div>
<div id="titrePage" class="pt-5 align-center container">
<div class="row justify-content-center">
<div class="col-12 col-lg-12">
{% if category is not empty %}
<h1 class="BigTitle mbr-section-title mbr-fonts-style mb-0 display-1">
{{ category.categEntitled }}</h1>
{% else %}
<h1 class="BigTitle mbr-section-title mbr-fonts-style mb-0 display-1">Boutique</h1>
{% endif %}
</div>
</div>
</div>
</section>
{% endif %}
<div class="blocTitre d-flex justify-content-center flex-wrap">
{% include '@main-app/front/front_shopping/nav_ariane.html.twig' %}
</div>
<div id="page_{{ page.pageId }}" class="container pb-5" style="padding-bottom: 20px !important;">
{# {% include 'front/front_shopping/tpl_filters.html.twig' %} #}
<div class="col-12 pb-4 pt-2 d-flex flex-wrap align-items-center flex-md-row justify-content-center padd">
{% if categsList is not empty %}
<a href="{{ path('front_shopping_categorie') }}" id="allProduct"
class="{% if catEnCours == 0 %} selected {% endif %} btnFilterProduct btn btn-light"
onclick="toggleHomeProduct(this.id)">Tous les produits</a>
{% for categ in categsList %}
<a href="{{ path('front_shopping_categorie', {categ_name:categ.categ_entitled|urlrewrite, mark:'marques',categ_id:categ.id }) }}"
id="{{ categ.categ_entitled|urlrewrite }}"
class="{% if catEnCours == categ.id %} selected {% endif %} btnFilterProduct btn btn-light"
onclick="toggleHomeProduct(this.id)">
{{ categ.categ_entitled }}</a>
{% endfor %}
{% endif %}
</div>
<div class="pb-5 d-flex flex-column flex-wrap align-items-stretch flex-xl-row justify-content-center padd align-content-center overflow-hidden">
{% for product in products %}
<div class="col col-xl-4 containerProduct news p-3 pt-5 m-3{% if loop.index is divisible by(2) %} secondProduct{% endif %}">
<div class="containerImage imageProduct">
<a href="{{ path('front_shopping_fiche', {product_name:product.prod_model|urlrewrite, prod_id:product.product_id}) }}">
<img src="{{ asset('/medias_front/products/' ~ product.prod_picture|default('default.webp') ) | imagine_filter('front_product3') }} "
class="{% if loop.index is divisible by(2) %} secondImage {% endif %}"
alt="{{ product.prod_model }}">
<div class="containerLabel containerLabelList">
{% if product.prod_price_type == "promo" %}
<div class="languette">
<img src="{{ websiteroot }}{{ asset('/medias_front/common/languette.png') }}"
alt="promo" class="productPromo">
<span class="languetteTitle">PROMO</span>
</div>
{% elseif product.prod_price_type == 'solde' %}
<div class="languette">
<img src="{{ websiteroot }}{{ asset('/medias_front/common/languetteOrange.png') }}"
alt="solde" class="productPromo">
<span class="languetteTitle">SOLDE</span>
</div>
{% elseif product.prod_novelty == 1 %}
<div class="languetter">
<img src="{{ websiteroot }}{{ asset('/medias_front/common/etiquette-nouveaute.svg') }}"
alt="Nouveauté" class="productPromo new">
<span class="languetteTitle new"></span>
</div>
{% elseif product.prod_soon == 1 %}
<div class="languette ">
<img class="productPromo soon"
src="{{ websiteroot }}{{ asset('/medias_front/common/etiquette-prochainement.svg') }}"
alt="PROCHAINEMENT">
<span class="languetteTitle soon"></span>
</div>
{% elseif product.is_deliverable == 'sur-place' %}
<div class="languette ">
<img class="productPromo soon"
src="{{ websiteroot }}{{ asset('/medias_front/common/etiquette-retrait-sur-place.svg') }}"
alt="PROCHAINEMENT">
<span class="languetteTitle soon"></span>
</div>
{% endif %}
</div>
{# {% if product.prod_novelty == 1 %}
<p class="new">Nouveauté</p>
{% elseif product.prod_price_type == 'promo' %}
<p class="promo">Promo</p>
{% elseif product.prod_price_type == 'solde' %}
<p class="solde">Solde</p>
{% endif %} #}
</a>
</div>
<div class="container-text row d-flex align-items-center">
<div class="nomProduit">
<a href="{{ path('front_shopping_fiche', {product_name:product.prod_model|urlrewrite, prod_id:product.product_id}) }}">
{{ product.prod_model }}
</a>
</div>
</div>
<div class="container-text row d-flex align-items-center text-center">
{{ product.prod_description|raw }}
</div>
<div class="row mt-3">
{# <div class="col-6 flex-wrap justify-content-start"> #}
{# <span class="producteur"> {{ product.provider }}</span> #}
{# </div> #}
<div class="col-6 flex-wrap justify-content-end">
{% set isFavorite = false %}
{% for favprod in favsProds %}
{% if favprod.productId == product.product_id and isFavorite == false %}
<a href='javascript:removeToFavorite({{ product.product_id }});'
class="loveProductMultiple"
id="favorite-product-multiple-{{ product.product_id }}">
</a>
{% set isFavorite = true %}
{% endif %}
{% endfor %}
{% if isFavorite == false %}
<a href='javascript:addToFavorite({{ product.product_id }});'
class="loveProductMultiple"
id="favorite-product-multiple-{{ product.product_id }}">
</a>
{% endif %}
</div>
</div>
<hr class="separateBasket">
<div class="d-flex align-items-center justify-content-center">
<span class="price">
{% if product.type_odyssee == "bkdovalue" %}
<label for="bkdoValueAmount-{{ product.ref_id }}">Montant libre</label>
<input name="bkdoValueAmoun-{{ product.ref_id }}t"
id="bkdoValueAmount-{{ product.ref_id }}" type="number" min="1" max="9999"
value="100" class="form-control">
{% else %}
{{ product.prod_selling_price|number_format(2, '.', ',') }}€
<input name="bkdoValueAmount-{{ product.ref_id }}"
id="bkdoValueAmount-{{ product.ref_id }}" type="number" min="0" max="0"
value="0" hidden="">
{% endif %}
</span>
</div>
<div class="containerImage BasketDown {% if product.prod_soon %}basketDownLeft{% endif %}">
{# {% if product.type_odyssee == 'soin' %} #}
{# <a href="{{ path('front_shopping_fiche', {product_name:product.prod_model|urlrewrite, prod_id:product.product_id}) }}" #}
{# class="plusListeProduct"></a> #}
{# {% else #}
{% if product.prod_soon %}
<button class="btn btn-yellow btnIndispo">
Bientôt disponible
</button>
{% elseif product.ref_quantity > 0 or not stockManagement %}
<a href="javascript:addToBasket({{ product.ref_id }}, 1, $('#bkdoValueAmount-{{ product.ref_id }}').val());"
class="addToPanelListeProduct"></a>
{% else %}
<button class="btn btn-yellow btnIndispo">Produit indispo</button>
{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class="d-flex justify-content-center">
{{ knp_pagination_render(products,'layouts/layouts_front/pagination/paginate.html.twig') }}
</div>
{# %///////////////////////////////////% #}{#
{% set classMargTop = "" %} #}{# plusTopLittle plusTopBig #}{#
{% set classMargBot = "" %} #}{# plusBotLittle plusBotBig #}{#
{% set type = 0 %} #}{# plusBotLittle plusBotBig #}{#
#}{# %///////////////////////////////////% #}{#
<div id="bloc_listeProducts" class="pageBloc blocGalerie type{{ type }} {{ classMargTop }} {{ classMargBot }}">
<div class="intPageBloc apparition">
#}{# {% if bloc.act_bloc_titre or bloc.act_bloc_sstitre %}
<div class="blocTitre">
{% if bloc.act_bloc_titre %}<h2><span>{{ bloc.act_bloc_titre }}</span></h2>{% endif %}
{% if bloc.act_bloc_sstitre %}<h3>{{ bloc.act_bloc_sstitre }}</h3>{% endif %}
</div>
{% endif %} #}{#
<div class="blocContenu">
<div class="intBlocTxtContenu"></div>
<div class="intBlocContenu flexCenter flexStretch galerie type{{ type }}">
{% set cmptRef = 0 %}
{% for prod in products %}
{% set type = 1 %}
{% set mediaTmp = prod.prod_picture %}
{% set mediaDefault = "default.jpg" %}
{% set mediaTmp = webp(webpSupported, mediaTmp) %}
{% set mediaDefault = webp(webpSupported, mediaDefault) %}
{% set cmptRef = cmptRef + 1 %}
<span class="aSpan flexColumn flexStretch flexNoWrap"
style="">
<a class="aFigure"
href="{{ path('front_shopping_fiche', {product_name:prod.prod_model|urlrewrite, prod_id:prod.prod_id}) }}"
title="{{ prod.prod_model }}">
{% if prod.prod_soon == 1 %}
<p class="soon">Prochainement</p>
{% elseif prod.prod_novelty == 1 %}
<p class="new">Nouveauté</p>
{% elseif prod.prod_price_type == 'promo' %}
<p class="promo">Promo</p>
{% elseif prod.prod_price_type == 'solde' %}
<p class="solde">Solde</p>
{% endif %}
<img class="imgZoom lazyload"
data-src="{{ asset('/medias_front/products/'~mediaTmp|default(mediaDefault)) | imagine_filter('front_blocGalerie'~type) }}"
data-srcset="{{ asset('/medias_front/products/'~mediaTmp|default(mediaDefault)) | imagine_filter('front_blocGalerie'~type) }} 250w, {{ asset('/medias_front/products/'~mediaTmp|default(mediaDefault)) | imagine_filter('front_blocGalerie'~type) }} 465w, {{ asset('/medias_front/products/' ~ mediaTmp|default(mediaDefault)) | imagine_filter('front_blocGalerie'~type) }} 1200w"
alt="{{ prod.prod_model }}"/>
</a>
<div class="contSpan">
<span class="infos">
<a href="{{ path('front_shopping_fiche', {product_name:prod.prod_model|urlrewrite, prod_id:prod.prod_id}) }}"
title="{{ prod.prod_model }}">
<span class="nomProd">{{ prod.prod_model }}</span>
<div class="prix flexCenter flexMiddle">
{% if prod.prod_price_type == 'promo' or prod.prod_price_type == 'solde' %}
<span class="prixOrig">{{ prod.prod_selling_price|number_format(2, '.', ',') }} €</span>
{% endif %}
<span class="prixEff ">{{ prod.prod_reference_price|number_format(2, '.', ',') }} €</span>
</div>
</a>
{% if prod.prod_type == 'multiple' %}
<a id="panier-{{ prod.id }}" class="btnPanier aTxtHide prodMultiple"
href='{{ path('front_shopping_fiche', {product_name:prod.prod_model|urlrewrite, prod_id:prod.prod_id}) }}'>{% trans %}Voir la fiche{% endtrans %}</a>
{% else %}
<a id="panier-{{ prod.id }}" class="btnPanier aTxtHide "
href='javascript:addToBasket({{ prod.ref_id }});'>{% trans %}Ajouter au panier{% endtrans %}</a>
{% endif %}
</span>
</div>
</span>
{% else %}
<p>Aucun résultat</p>
{% endfor %}
{{ knp_pagination_render(products) }}
</div>
</div>
</div>
</div> #}
</div>
{#
<section>
{% for prod in products %}
<a href='{{ path('front_shopping_fiche', {product_name:prod.prod_model|urlrewrite, prod_id:prod.id}) }}'>
<div>
{% if prod.prod_picture is not empty %}
<img src="{{ asset('/medias_front/products/' ~ prod.prod_picture) | imagine_filter('admin_default') }}"
alt="{{ prod.prod_model }}" />
{% endif %}
{% if prod.prod_soon == 1 %}
<p>Prochainement</p>
{% elseif prod.prod_novelty == 1 %}
<p>Nouveauté</p>
{% elseif prod.prod_price_type == 'promo' %}
<p>Promo</p>
{% elseif prod.prod_price_type == 'solde' %}
<p>Solde</p>
{% endif %}
<p>{{ prod.prod_model }}</p>
<p class="{{ prod.prod_price_type }}">{{ prod.prod_reference_price }}€</p>
</div>
</a>
{% endfor %}
</section> #}
{% endblock %}
{% block javascripts %}
<script rel="preload" as="script" src="{{ asset('js/parallax.js') }}"></script>
{% endblock %}