From ea6ebb4df1a5472ff37062ec1d22fe50dfd5f7c3 Mon Sep 17 00:00:00 2001 From: Isabelle Date: Wed, 31 Dec 2025 14:03:31 +0100 Subject: [PATCH] feat(standard-styling):add svg_icon support for favorite_products --- .../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} + +
+