forked from PrestaShop/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsupplier.tpl
More file actions
38 lines (36 loc) · 1.52 KB
/
supplier.tpl
File metadata and controls
38 lines (36 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
{block name='supplier_miniature_item'}
<li class="supplier">
<div class="supplier__image">
<picture>
{if !empty($supplier.image.bySize.small_default.sources.avif)}<source srcset="{$supplier.image.bySize.small_default.sources.avif}" type="image/avif">{/if}
{if !empty($supplier.image.bySize.small_default.sources.webp)}<source srcset="{$supplier.image.bySize.small_default.sources.webp}" type="image/webp">{/if}
<img
class="supplier__img img-fluid"
src="{$supplier.image.bySize.small_default.url}"
alt="{if !empty($supplier.image.legend)}{$supplier.image.legend}{else}{$supplier.name}{/if}"
width="{$supplier.image.bySize.small_default.width}"
height="{$supplier.image.bySize.small_default.height}"
loading="lazy"
>
</picture>
</div>
<div class="supplier__infos">
<a class="supplier__title stretched-link" href="{$supplier.url}">
{$supplier.name}
</a>
</div>
<p class="supplier__products">
{if $supplier.nb_products > 1}
{l s='%number% products' sprintf=['%number%' => $supplier.nb_products] d='Shop.Theme.Catalog'}
{elseif $supplier.nb_products == 1}
{l s='%number% product' sprintf=['%number%' => $supplier.nb_products] d='Shop.Theme.Catalog'}
{else}
{l s='No products' d='Shop.Theme.Catalog'}
{/if}
</p>
</li>
{/block}