From 36ebaf2175a8f8bd5640a988495954112408008e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Mon, 16 Sep 2024 22:40:24 +0200 Subject: [PATCH 1/2] Use category cover --- templates/catalog/_partials/category-header.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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} From ccfb396095d2fb277455243ca1ea9e2c73bea36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Mon, 16 Sep 2024 22:49:37 +0200 Subject: [PATCH 2/2] Use category thumbnail --- templates/catalog/_partials/subcategories.tpl | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) 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 @@