{# /***************************************************************************** File name: includes/amenity-icon-macro.html.twig Project: Villas3.com Copyright 2024 Michael J. Miller, All rights reserved Purpose: defines icon macro which is used to generate markup for showing an icon. It's used in icon editors. The arguments are: icon name of fontawesome icon icon_color color of icon (any html color can be specified) icon_color_alt secondary color used for duotone icons icon_style style of the icond (e.g. light, solid, duotone) ignore_default if no icon is specified and this is false, returns a small black solid circle - the default, if true, returns an empty icon. Revision History: Date Version Details -------- -------- -------------------------------------------- 8/26/25 3.0.2 Created to allow using ajax to get icon. ******************************************************************************/ #} {% macro icon(icon = "circle-small", icon_color = "#000000", icon_color_alt = "#000000", icon_style = 'regular', ignore_default = false ) %} {% if icon is empty %} {# generate an empty icon #} {% if ignore_default %}   {% else %} {# generate default icone - solid black doe #}   {% endif %} {% else %} {% if icon_style == 'duotone' %} {% else %}   {% endif %} {% endif %} {% endmacro %}