From caf2614b87c020ffda90361c82eb615bc87f8dc0 Mon Sep 17 00:00:00 2001 From: Isabelle Date: Wed, 31 Dec 2025 14:25:08 +0100 Subject: [PATCH] feat(svg-icon): Add svg_icon support for favoriteproducts module --- .../views/templates/hook/button-product.tpl | 29 +++++++++++++++++++ .../views/templates/hook/button.tpl | 28 ++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 falcon/modules/is_favoriteproducts/views/templates/hook/button-product.tpl create mode 100644 falcon/modules/is_favoriteproducts/views/templates/hook/button.tpl diff --git a/falcon/modules/is_favoriteproducts/views/templates/hook/button-product.tpl b/falcon/modules/is_favoriteproducts/views/templates/hook/button-product.tpl new file mode 100644 index 0000000..f120e65 --- /dev/null +++ b/falcon/modules/is_favoriteproducts/views/templates/hook/button-product.tpl @@ -0,0 +1,29 @@ + +
+ +
+ {capture name="svg_output"}{svg_icon file='heart.svg' }{/capture} + {if $smarty.capture.svg_output} + {$smarty.capture.svg_output nofilter} + {else} + favorite + {/if} +
+
+ {capture name="svg_output"}{svg_icon file='heart.svg'}{/capture} + {if $smarty.capture.svg_output} + {$smarty.capture.svg_output nofilter} + {else} + favorite_border + {/if} +
+
+
diff --git a/falcon/modules/is_favoriteproducts/views/templates/hook/button.tpl b/falcon/modules/is_favoriteproducts/views/templates/hook/button.tpl new file mode 100644 index 0000000..7ee1699 --- /dev/null +++ b/falcon/modules/is_favoriteproducts/views/templates/hook/button.tpl @@ -0,0 +1,28 @@ + + +
+ {capture name="svg_output"}{svg_icon file='heart.svg'}{/capture} + {if $smarty.capture.svg_output} + {$smarty.capture.svg_output nofilter} + {else} + favorite + {/if} +
+
+ {capture name="svg_output"}{svg_icon file='heart.svg'}{/capture} + {if $smarty.capture.svg_output} + {$smarty.capture.svg_output nofilter} + {else} + favorite_border + {/if} + +
+