themes/bases/Campussuite2015/widgets/IconGroup/build/tpl.html.twig line 1

Open in your IDE?
  1. <ul class="csw
  2.     {% if _widget.format == 'stacked' -%}
  3.     cs-icon-group-stacked
  4.     {% else -%}
  5.     cs-icon-group
  6.     {% endif -%}
  7.     cs-icon-{{ _widget.size|default('sm') }}
  8.     cs-icon-{{ _widget.alignment|default('left') }}
  9.     cs-icon-{{ _widget.shape|default('default') }}
  10.     cs-icon-bg-{{ _widget.backgroundColor|default('default') }}
  11.     cs-icon-text-{{ _widget.color|default('default') }}
  12.     {% if _widget.borderColor is not empty -%}
  13.         cs-icon-border cs-icon-b-{{ _widget.borderColor|default('default') }}
  14.     {% endif -%}
  15. ">
  16. {% for icon in _widget.icons -%}
  17.     {% if icon.enabled is same as (true) %}
  18.     <li class="cs-icon-wrap{% if icon.customClass is not empty and 'custom' not in _widget.container.customClasses %} {{ icon.customClass }}{% endif %}">
  19.     {% if icon.link is not empty -%}
  20.     <a href="{{ icon.link }}" {% if icon.target is not empty -%} target="{{ icon.target }}" {% endif -%}>
  21.     {% endif -%}
  22.         {% if _widget.alignment == 'right' and _widget.format == 'stacked' -%}
  23.             {% if icon.text is not empty -%}
  24.             <span class="cs-icon-text">{{ icon.text }}</span> <span class="sr-only">{% if icon.target == "_blank" -%}(opens in new window){% endif -%}</span>
  25.             {% elseif icon.title is not empty -%}
  26.             <span class="sr-only">{{ icon.title }} {% if icon.target == "_blank" -%}(opens in new window){% endif -%}</span>
  27.             {% endif -%}
  28.             {% if 'custom' in _widget.container.customClasses %}
  29.                 <em class="cs-icon {{ icon.customClass }}" aria-hidden="true"></em>
  30.             {% else %}
  31.                 <em class="cs-icon fa fa-{{ icon.icon }}" aria-hidden="true"></em>
  32.             {% endif %}
  33.         {% else -%}
  34.             {% if 'custom' in _widget.container.customClasses %}
  35.                 <em class="cs-icon {{ icon.customClass }}" aria-hidden="true"></em>
  36.             {% else %}
  37.                 <em class="cs-icon fa fa-{{ icon.icon }}" aria-hidden="true"></em>
  38.             {% endif %}
  39.             {% if icon.text is not empty -%}
  40.             <span class="cs-icon-text">{{ icon.text }}</span> <span class="sr-only">{% if icon.target == "_blank" -%}(opens in new window){% endif -%}</span>
  41.             {% elseif icon.title is not empty -%}
  42.             <span class="sr-only">{{ icon.title }} {% if icon.target == "_blank" -%}(opens in new window){% endif -%}</span>
  43.             {% endif -%}
  44.         {% endif -%}
  45.     {% if icon.link is not empty -%}
  46.     </a>
  47.     {% endif -%}
  48.     </li>
  49.     {% endif %}
  50. {% endfor -%}
  51. </ul>