diff --git a/templates/catalog/_partials/subcategories.tpl b/templates/catalog/_partials/subcategories.tpl index 25f4a9e6..fe867233 100644 --- a/templates/catalog/_partials/subcategories.tpl +++ b/templates/catalog/_partials/subcategories.tpl @@ -32,17 +32,29 @@
  • - {if !empty($subcategory.image.large.url)} + {if !empty($subcategory.thumbnail.large.url)} - {if !empty($subcategory.image.large.sources.avif)}{/if} - {if !empty($subcategory.image.large.sources.webp)}{/if} + {if !empty($subcategory.thumbnail.large.sources.avif)}{/if} + {if !empty($subcategory.thumbnail.large.sources.webp)}{/if} {$subcategory.name|escape:'html':'UTF-8'} + width="{$subcategory.thumbnail.large.width}" + height="{$subcategory.thumbnail.large.height}"/> + + {else} + + {if !empty($urls.no_picture_image.large.sources.avif)}{/if} + {if !empty($urls.no_picture_image.large.sources.webp)}{/if} + {$subcategory.name|escape:'html':'UTF-8'} {/if}