diff --git a/templates/catalog/_partials/category-header.tpl b/templates/catalog/_partials/category-header.tpl index 2887c7a6..f052640f 100644 --- a/templates/catalog/_partials/category-header.tpl +++ b/templates/catalog/_partials/category-header.tpl @@ -30,12 +30,12 @@ {if $category.description}
{$category.description nofilter}
{/if} - {if !empty($category.image.large.url)} + {if !empty($category.cover.large.url)}
- {if !empty($category.image.large.sources.avif)}{/if} - {if !empty($category.image.large.sources.webp)}{/if} - {if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if} + {if !empty($category.cover.large.sources.avif)}{/if} + {if !empty($category.cover.large.sources.webp)}{/if} + {if !empty($category.cover.legend)}{$category.cover.legend}{else}{$category.name}{/if}
{/if} 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}