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
/
blocks
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/templates/front/blocks/product_similaire.html.twig
{% for row in products|batch(3) %} {% for product in row %} <a href="{{ path('product', {'id': product.id, 'title':product.title|my_url_encode}) }}"> <ul class="list-group list-group-flush list-unstyled"> <li class="fw-bold mb-1"> <div class="bg-light p-3 shadow-sm" > <div class="row"> <div class="colbg-warning"> {% if product.images|length > 0 %} <center><img style="height:100%"src="{{ vich_uploader_asset(product.images.0, 'imageFile') | imagine_filter('thumb') }}" alt="{{product.title}}" class="h-75 w-75 rounded"> </center> {% else %} <center><img src="{{ asset('build/images/default-image.jpg') | imagine_filter('thumb') }}" alt="{{product.title}}" class="h-75 w-75 rounded" ></center> {% endif %} {% set title = product.title|length > 50 ? product.title|slice(0, 50) ~ '...' : product.title %} <center class="a"><span class="a">{{title|striptags|raw}} <br> </span> <span class="a" style="text-decoration:none!important"><small>{{ product.price }} € HT</small></span></center> </div> {# <div class="col-md-7 text-dark"> {% set title = product.title|length > 50 ? product.title|slice(0, 50) ~ '...' : product.title %} <span class="">{{title|striptags|raw}}</span> <span class="">{{ product.price }} € HT</span> </div> #} </div> </div> </li> </ul> </a> {% endfor %} {% endfor %}