<ul class="csw
{% if _widget.format == 'stacked' -%}
cs-icon-group-stacked
{% else -%}
cs-icon-group
{% endif -%}
cs-icon-{{ _widget.size|default('sm') }}
cs-icon-{{ _widget.alignment|default('left') }}
cs-icon-{{ _widget.shape|default('default') }}
cs-icon-bg-{{ _widget.backgroundColor|default('default') }}
cs-icon-text-{{ _widget.color|default('default') }}
{% if _widget.borderColor is not empty -%}
cs-icon-border cs-icon-b-{{ _widget.borderColor|default('default') }}
{% endif -%}
">
{% for icon in _widget.icons -%}
{% if icon.enabled is same as (true) %}
<li class="cs-icon-wrap{% if icon.customClass is not empty and 'custom' not in _widget.container.customClasses %} {{ icon.customClass }}{% endif %}">
{% if icon.link is not empty -%}
<a href="{{ icon.link }}" {% if icon.target is not empty -%} target="{{ icon.target }}" {% endif -%}>
{% endif -%}
{% if _widget.alignment == 'right' and _widget.format == 'stacked' -%}
{% if icon.text is not empty -%}
<span class="cs-icon-text">{{ icon.text }}</span> <span class="sr-only">{% if icon.target == "_blank" -%}(opens in new window){% endif -%}</span>
{% elseif icon.title is not empty -%}
<span class="sr-only">{{ icon.title }} {% if icon.target == "_blank" -%}(opens in new window){% endif -%}</span>
{% endif -%}
{% if 'custom' in _widget.container.customClasses %}
<em class="cs-icon {{ icon.customClass }}" aria-hidden="true"></em>
{% else %}
<em class="cs-icon fa fa-{{ icon.icon }}" aria-hidden="true"></em>
{% endif %}
{% else -%}
{% if 'custom' in _widget.container.customClasses %}
<em class="cs-icon {{ icon.customClass }}" aria-hidden="true"></em>
{% else %}
<em class="cs-icon fa fa-{{ icon.icon }}" aria-hidden="true"></em>
{% endif %}
{% if icon.text is not empty -%}
<span class="cs-icon-text">{{ icon.text }}</span> <span class="sr-only">{% if icon.target == "_blank" -%}(opens in new window){% endif -%}</span>
{% elseif icon.title is not empty -%}
<span class="sr-only">{{ icon.title }} {% if icon.target == "_blank" -%}(opens in new window){% endif -%}</span>
{% endif -%}
{% endif -%}
{% if icon.link is not empty -%}
</a>
{% endif -%}
</li>
{% endif %}
{% endfor -%}
</ul>