Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
templates
/
front
/
product
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/templates/front/product/product_category.html.twig
{% extends 'front/layout.html.twig' %} {% block title %} {% if category.name == "Bois" %} Commandez un humidimètre à bois pour préserver votre bois {% else %} Produit de la catégorie {{category.name}} {% endif %} {% endblock %} {% block description %} {% if category.name == "Bois" %} Testez l'humidité de votre bois grâce à notre humidimètre à bois disponible sur notre site internet ! {% else %} Découvrez nos produit de la gamme {{category.name}} {% endif %} {% endblock %} {% block keywords %} {% if category.name == "Bois" %} Humidimètre bois {% else %} {{category.name}} {% endif %} {% endblock %} {% block content %} {% block banner %} <section class="banner pages"> <div class="container"> <div class="middle"> <h1 class="text-uppercase">Categorie {{category.name}}</h1> </div> </div> </section> {% endblock %} <div style="background-color:#f0f3f4"> <nav class="navbar navbar-expand-custom navbar-mainbg"> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav" style="margin: 0 auto!important;"> {# {% for categorie in categories %} <a href="{{path('product_category', {'name': categorie.name,'id': categorie.id} )}}" {% if categorie.name == "-" %} class="d-none" {% else %} class="badge bg-light text-dark m-3 pl-4 pr-4 text-uppercase h5" {% endif %} >{{categorie.name}} </a> {% endfor %} #} {% for categoriesByGammes in categories %} <a href="{{path('product_category', {'name': categoriesByGammes.name,'id': categoriesByGammes.id} )}}" {% if categoriesByGammes.name == "-" or categoriesByGammes.name|upper == "PAPIER" or categoriesByGammes.name|upper == "TOURBE" or categoriesByGammes.name|upper == "TEXTILE ET CUIR" %} class="d-none" {% else %} class="badge bg-light text-dark m-3 pl-4 pr-4 text-uppercase h5" {% endif %}>{{categoriesByGammes.name}} </a> {% endfor %} </ul> </div> </nav> <section class="section-padding"> <div class="container"> <div class="shape"></div> <div class="row align-items-stretch"> {% for product in products %} <div class="col-md-3 mb-5"> <figure class="snip1423 "> <div class="card-header"> {% if product.isNewProduct == 1 %} <img src="{{ asset('build/images/nouveauProduit3.png')}}" style="right:-6px;top:-6px;height:105px!important;float:right!important;position:absolute; z-inde:3;" alt="{{ product.title }}"> {% endif %} {% set laGamme = product.gammeProduct.name %} {% if laGamme == "Bâtiment-Immobilier" %} <span class="p-2 text-uppercase"> Bâtiment <br>{{product.category}} </span> {% else %} {{product.gammeProduct.name}} <br> {{product.category}} {% endif %} </div> {% if product.images|length > 0 %} <img src="{{ vich_uploader_asset(product.images.0, 'imageFile') | imagine_filter('thumb') }}" alt="{{product.title}}" class="img-fluid mt-2"> {% else %} <img src="{{ asset('build/images/default-image.jpg') | imagine_filter('thumb') }}" alt="{{product.title}}"> {% endif %} <figcaption> {% set title = product.title|length > 50 ? product.title|slice(0, 50) ~ '...' : product.title %} <p class="text-uppercase h5"> <b> {{title|striptags|raw}}</b> </p> {% set content = product.shortDesc|striptags|length > 100 ? product.shortDesc|striptags|slice(0, 100) ~ '...' : product.shortDesc %} <p>{{content|raw}}</p> <div class="price"></div> </figcaption> <a href="{{ path('product', {'id': product.id, 'title':product.title|my_url_encode}) }}"></a> </figure> <a href="{{ path('product', {'id': product.id, 'title':product.title|my_url_encode}) }}"> <center> <p style="margin-top:-40px!important; position:relative!important;z-index:1!important;" class="h3"> <span class="shadow border border-white text-center badge btn-red text-ligth pl-4 pr-4 pt-2 pb-2 border " style="border-radius:50px; border-color: white!important;border-style:solid!important;border-width: 5px!important;"> <small class="text-white"> {{product.price }}€ HT</small> </span> </p> </center> </a> </div> {% endfor %} </div> <div class="pagination"> {{ knp_pagination_render(products) }} </div> </div> <div class="container text-justify"> {% if category.name == "Bois" %} {% include "front/product/texte-gamme/biomasse.html.twig" %} {% endif %} </div> </section> </div> <style> .btn-red { background-color: #c11823; } #navbarSupportedContent a:not(:only-child):after { display: none !important; } </style> {% endblock %}