diff --git a/config/theme.yml b/config/theme.yml index 5a967e9e7..29918670e 100644 --- a/config/theme.yml +++ b/config/theme.yml @@ -135,6 +135,43 @@ global_settings: width: 170 height: 115 scope: [stores] + default_xs: + width: 120 + height: 120 + scope: [products, manufacturers, suppliers, categories] + default_s: + width: 160 + height: 160 + scope: [categories, products] + default_m: + width: 200 + height: 200 + scope: [stores, manufacturers, suppliers, products] + default_md: + width: 320 + height: 320 + scope: [categories, products] + default_xl: + width: 400 + height: 400 + scope: [stores, products] + product_main: + width: 720 + height: 720 + scope: [products] + category_cover: + width: 1000 + height: 200 + scope: [categories] + product_main_2x: + width: 1440 + height: 1440 + scope: [products] + category_cover_2x: + width: 2000 + height: 400 + scope: [categories] + theme_settings: rtl_generation: false diff --git a/templates/catalog/_partials/category-header.tpl b/templates/catalog/_partials/category-header.tpl index 6106947e4..d256412f0 100644 --- a/templates/catalog/_partials/category-header.tpl +++ b/templates/catalog/_partials/category-header.tpl @@ -24,5 +24,3 @@ {include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories} {/if} - - diff --git a/templates/catalog/_partials/miniatures/brand.tpl b/templates/catalog/_partials/miniatures/brand.tpl index abbb910cb..084f2b798 100644 --- a/templates/catalog/_partials/miniatures/brand.tpl +++ b/templates/catalog/_partials/miniatures/brand.tpl @@ -4,7 +4,11 @@ *} {block name='brand_miniature_item'}
  • -
    {$brand.name}
    +
    + + {$brand.name} + +

    {$brand.name}

    {$brand.text nofilter} diff --git a/templates/catalog/_partials/miniatures/product.tpl b/templates/catalog/_partials/miniatures/product.tpl index 88fb6ebed..fc2614da5 100644 --- a/templates/catalog/_partials/miniatures/product.tpl +++ b/templates/catalog/_partials/miniatures/product.tpl @@ -13,23 +13,91 @@ {block name='product_miniature_image'}
    {if $product.cover} - {if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name}{/if} + + {if isset($product.cover.bySize.default_md.sources.avif)} + + {/if} + + {if isset($product.cover.bySize.default_md.sources.webp)} + + {/if} + + {if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name}{/if} + {else} - + + {if isset($urls.no_picture_image.bySize.default_md.sources.avif)} + + {/if} + + {if isset($urls.no_picture_image.bySize.default_md.sources.webp)} + + {/if} + + {l s='No image available' d='Shop.Theme.Catalog'} + {/if} {block name='quick_view_touch'} diff --git a/templates/catalog/_partials/product-cover-thumbnails.tpl b/templates/catalog/_partials/product-cover-thumbnails.tpl index 59dd3ebc9..f459644a5 100644 --- a/templates/catalog/_partials/product-cover-thumbnails.tpl +++ b/templates/catalog/_partials/product-cover-thumbnails.tpl @@ -23,18 +23,47 @@ {/if} {block name='product_cover'} - {foreach from=$product.images item=image key=key} + {foreach from=$product.images item=image key=key name=productImages} {/foreach} {/block} @@ -54,19 +83,37 @@ {/if} aria-label="{l s='Product image %number%' d='Shop.Theme.Catalog' sprintf=['%number%' => $key]}" > - {$image.legend} + {if isset($image.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($image.bySize.default_xs.sources.webp)} + {/if} - loading="lazy" - > + + {if !empty($image)}{$image.legend}{else}{$product.name}{/if} +
  • {/foreach} @@ -75,12 +122,43 @@ {hook h='displayAfterProductThumbs' product=$product} {else} - + {if isset($urls.no_picture_image.bySize.default_md.sources.avif)} + + {/if} + + {if isset($urls.no_picture_image.bySize.default_md.sources.webp)} + + {/if} + + {l s='No image available' d='Shop.Theme.Catalog'} + {/if} diff --git a/templates/checkout/_partials/cart-detailed-product-line.tpl b/templates/checkout/_partials/cart-detailed-product-line.tpl index 861193e42..dc79a298e 100644 --- a/templates/checkout/_partials/cart-detailed-product-line.tpl +++ b/templates/checkout/_partials/cart-detailed-product-line.tpl @@ -10,10 +10,67 @@ {if $product.default_image} - {$product.name|escape:'quotes'} + + {if isset($product.default_image.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($product.default_image.bySize.default_xs.sources.webp)} + + {/if} + + {$product.name|escape:'quotes'} + {else} - + + {if isset($urls.no_picture_image.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($urls.no_picture_image.bySize.default_xs.sources.webp)} + + {/if} + + + {/if} diff --git a/templates/checkout/_partials/cart-summary-product-line.tpl b/templates/checkout/_partials/cart-summary-product-line.tpl index b211ecdac..40ba64089 100644 --- a/templates/checkout/_partials/cart-summary-product-line.tpl +++ b/templates/checkout/_partials/cart-summary-product-line.tpl @@ -6,9 +6,67 @@
    {if $product.default_image} - {$product.name} + + {if isset($product.default_image.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($product.default_image.bySize.default_xs.sources.webp)} + + {/if} + + {$product.name} + {else} - + + {if isset($urls.no_picture_image.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($urls.no_picture_image.bySize.default_xs.sources.webp)} + + {/if} + + + {/if}
    diff --git a/templates/cms/stores.tpl b/templates/cms/stores.tpl index d9fc334b6..7c4796ff1 100644 --- a/templates/cms/stores.tpl +++ b/templates/cms/stores.tpl @@ -16,18 +16,40 @@
    - {$store.image.legend} + {if isset($store.image.bySize.default_m.sources.avif)} + {/if} - > + + {if isset($store.image.bySize.default_m.sources.webp)} + + {/if} + + {$store.image.legend}

    {$store.name}