custom/static-plugins/BaumarktTheme/src/Resources/views/storefront/utilities/alert.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/alert.html.twig' %}
  2.  {% block utilities_alert_icon %}
  3.      {% if icon != "false" %}
  4.          {% if type == "danger" %}
  5.              {% sw_icon 'x-block' %}
  6.          {% elseif type == "warning" %}
  7.              {% sw_icon 'warning' %}
  8.          {% elseif type == "info" %}
  9.              {% sw_icon 'info' %}
  10.          {% elseif type == "success" %}
  11.              {% sw_icon 'check-circle' style {'pack' : 'globus_icons', 'color' : 'transparent'} %}
  12.          {% else %}
  13.              {% sw_icon 'alert' %}
  14.          {% endif %}
  15.      {% endif %}
  16.  {% endblock %}
  17. {% block utilities_alert_content %}
  18.     <div class="alert-content">
  19.         {% if list|length > 1 %}
  20.             <ul class="alert-list">
  21.                 {% for entry in list|array_unique %}
  22.                     <li>{{ entry|sw_sanitize }}</li>
  23.                 {% endfor %}
  24.             </ul>
  25.         {% elseif list|length == 1 %}
  26.             {% for entry in list %}
  27.                 {{ entry|sw_sanitize }}
  28.             {% endfor %}
  29.         {% else %}
  30.             {{ content|sw_sanitize }}
  31.         {% endif %}
  32.     </div>
  33. {% endblock %}