From c11507d628c0042dc5947319773e5e1e29353a43 Mon Sep 17 00:00:00 2001 From: Isabelle Date: Wed, 31 Dec 2025 14:14:38 +0100 Subject: [PATCH] feat(svg_icon): Add x icon; add svg_icon support for header heart icon --- falcon/_dev/img/x.svg | 20 +++++++++++++++++++ .../views/templates/hook/top.tpl | 19 ++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 falcon/_dev/img/x.svg create mode 100644 falcon/modules/is_favoriteproducts/views/templates/hook/top.tpl diff --git a/falcon/_dev/img/x.svg b/falcon/_dev/img/x.svg new file mode 100644 index 0000000..61979ba --- /dev/null +++ b/falcon/_dev/img/x.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/falcon/modules/is_favoriteproducts/views/templates/hook/top.tpl b/falcon/modules/is_favoriteproducts/views/templates/hook/top.tpl new file mode 100644 index 0000000..259802d --- /dev/null +++ b/falcon/modules/is_favoriteproducts/views/templates/hook/top.tpl @@ -0,0 +1,19 @@ +
+ +
+ {capture name="svg_output"}{svg_icon file='heart.svg'}{/capture} + {if $smarty.capture.svg_output} + {$smarty.capture.svg_output nofilter} + {else} + favorite + {/if} + + {$favoriteProductsCount} + +
+
+