feat(extra-features): Edit brand tpl file

Fix image url; edit cards
This commit is contained in:
2026-01-14 12:57:23 +01:00
parent 98ccf560c9
commit 16b4475db9

View File

@@ -23,24 +23,19 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*} *}
{block name='brand_miniature_item'} {block name='brand_miniature_item'}
<li class="col-lg-3 col-sm-4 col-6 mb-3"> <li class="col-12 col-sm-6 col-lg-4 col-xl-3 mb-3">
<div class="card h-100"> <div class="card h-100">
{$sizes = Image::getSize('home_default')} {$brand_url = $brand.image.bySize.home_default.url}
<img <img
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='{$sizes.width}' height='{$sizes.height}' viewBox='0 0 1 1'%3E%3C/svg%3E" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='{$sizes.width}' height='{$sizes.height}' viewBox='0 0 1 1'%3E%3C/svg%3E"
data-src="{$brand.image|replace:'small_default':'home_default'}" data-src="{$brand_url}"
alt="{$brand.name}" alt="{$brand.name}"
class="card-img-top lazyload" class="card-img-top lazyload"
width="{$sizes.width}" width="{$sizes.width}"
height="{$sizes.height}" height="{$sizes.height}"
> >
<div class="card-body">
<p class="h6 mb-0">
<a class="text-reset stretched-link" href="{$brand.url}">{$brand.name}</a>
</p>
</div>
<div class="card-footer text-center"> <div class="card-footer text-center">
<span class="btn btn-link p-0">{$brand.nb_products}</span> <a class="text-reset stretched-link" href="{$brand.url}">{$brand.name}</a>
</div> </div>
</div> </div>
</li> </li>