diff --git a/modules/productcomments/views/templates/hook/post-comment-modal.tpl b/modules/productcomments/views/templates/hook/post-comment-modal.tpl index 93367b52e..7de4ac83c 100644 --- a/modules/productcomments/views/templates/hook/post-comment-modal.tpl +++ b/modules/productcomments/views/templates/hook/post-comment-modal.tpl @@ -29,10 +29,67 @@ {block name='product_cover'}
- {if $product.cover} - {$product.cover.legend} + {if !empty($product.cover)} + + {if isset($product.cover.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($product.cover.bySize.default_xs.sources.webp)} + + {/if} + + {$product.cover.legend} {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}
{/block} diff --git a/templates/catalog/_partials/miniatures/pack-product.tpl b/templates/catalog/_partials/miniatures/pack-product.tpl index 6ba7e561e..78e0c5006 100644 --- a/templates/catalog/_partials/miniatures/pack-product.tpl +++ b/templates/catalog/_partials/miniatures/pack-product.tpl @@ -6,20 +6,67 @@
- {if !empty($product.default_image.medium)} - + {if isset($product.default_image.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($product.default_image.bySize.default_xs.sources.webp)} + + {/if} + + {$product.default_image.legend} + {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/catalog/_partials/miniatures/product.tpl b/templates/catalog/_partials/miniatures/product.tpl index fc2614da5..0a47a0188 100644 --- a/templates/catalog/_partials/miniatures/product.tpl +++ b/templates/catalog/_partials/miniatures/product.tpl @@ -50,8 +50,8 @@ width="{$product.cover.bySize.default_md.width}" height="{$product.cover.bySize.default_md.height}" loading="lazy" - alt="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name}{/if}" - title="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name}{/if}" + alt="{$product.cover.legend}" + title="{$product.cover.legend}" data-full-size-image-url="{$product.cover.bySize.home_default.url}" > diff --git a/templates/catalog/_partials/product-cover-thumbnails.tpl b/templates/catalog/_partials/product-cover-thumbnails.tpl index f459644a5..0904b584b 100644 --- a/templates/catalog/_partials/product-cover-thumbnails.tpl +++ b/templates/catalog/_partials/product-cover-thumbnails.tpl @@ -110,8 +110,8 @@ width="{$image.bySize.default_xs.width}" height="{$image.bySize.default_xs.height}" loading="lazy" - alt="{if !empty($image)}{$image.legend}{else}{$product.name}{/if}" - title="{if !empty($image.legend)}{$image.legend}{else}{$product.name}{/if}" + alt="{$image.legend}" + title="{$image.legend}" > diff --git a/templates/catalog/_partials/product-images-modal.tpl b/templates/catalog/_partials/product-images-modal.tpl index 409f6533a..530ee167b 100644 --- a/templates/catalog/_partials/product-images-modal.tpl +++ b/templates/catalog/_partials/product-images-modal.tpl @@ -13,12 +13,8 @@ class="js-modal-product-cover product-cover-modal" width="{$product.default_image.bySize.large_default.width}" src="{$product.default_image.bySize.large_default.url}" - {if !empty($product.default_image.legend)} - alt="{$product.default_image.legend}" - title="{$product.default_image.legend}" - {else} - alt="{$product.name}" - {/if} + alt="{$product.default_image.legend}" + title="{$product.default_image.legend}" height="{$product.default_image.bySize.large_default.height}" > {else} @@ -40,12 +36,8 @@ data-image-large-src="{$image.large.url}" class="thumb js-modal-thumb" src="{$image.medium.url}" - {if !empty($image.legend)} - alt="{$image.legend}" - title="{$image.legend}" - {else} - alt="{$product.name}" - {/if} + alt="{$image.legend}" + title="{$image.legend}" width="{$image.medium.width}" height="148" > diff --git a/templates/checkout/_partials/order-confirmation-table.tpl b/templates/checkout/_partials/order-confirmation-table.tpl index 5960887de..66b198c33 100644 --- a/templates/checkout/_partials/order-confirmation-table.tpl +++ b/templates/checkout/_partials/order-confirmation-table.tpl @@ -11,9 +11,66 @@
{if !empty($product.default_image)} - + + {if isset($product.default_image.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($product.default_image.bySize.default_xs.sources.webp)} + + {/if} + + {$product.default_image.legend} {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/customer/_partials/order-detail-no-return.tpl b/templates/customer/_partials/order-detail-no-return.tpl index 6b982e5af..f31ae85f8 100644 --- a/templates/customer/_partials/order-detail-no-return.tpl +++ b/templates/customer/_partials/order-detail-no-return.tpl @@ -18,13 +18,67 @@ {if $product.cover} - {if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if} + + {if isset($product.cover.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($product.cover.bySize.default_xs.sources.webp)} + + {/if} + + {$product.cover.legend} + {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} @@ -91,7 +145,7 @@
{if $product.cover} {if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if} {else} diff --git a/templates/customer/_partials/order-detail-return.tpl b/templates/customer/_partials/order-detail-return.tpl index 423025390..81e1a2e37 100644 --- a/templates/customer/_partials/order-detail-return.tpl +++ b/templates/customer/_partials/order-detail-return.tpl @@ -120,13 +120,67 @@
{if $product.cover} - {if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if} + + {if isset($product.cover.bySize.default_xs.sources.avif)} + + {/if} + + {if isset($product.cover.bySize.default_xs.sources.webp)} + + {/if} + + {$product.cover.legend} + {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}