Skip to content

Commit

Permalink
brand miniature template changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed May 7, 2024
1 parent 61a937e commit 417799c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions templates/catalog/_partials/miniatures/brand.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@
<li class="col-lg-3 col-sm-4 col-6 mb-3">
<div class="card h-100">
{$sizes = Image::getSize('home_default')}
<img
src="{$brand.image|replace:'small_default':'home_default'}"
alt="{$brand.name}"
class="card-img-top"
width="{$sizes.width}"
height="{$sizes.height}"
loading="lazy"
{images_block}
<img
src="{$brand.image|replace:'small_default':'home_default'}"
alt="{$brand.name}"
class="card-img-top img-fluid"
width="{$sizes.width}"
height="{$sizes.height}"
loading="lazy"
>
{/images_block}
<div class="card-body">
<p class="h6 mb-0">
<p class="h6 mb-0 text-center">
<a class="text-reset stretched-link" href="{$brand.url}">{$brand.name}</a>
</p>
</div>
Expand Down

0 comments on commit 417799c

Please sign in to comment.