custom/plugins/DreiwmBrandstetterPlugin/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 %}
  3.     <div role="alert"
  4.          class="alert {% if type %}alert-{{ type }}{% endif %}{% if dismissible %} alert-dismissible fade show{% endif %}{% if icon != "error" %} alert-has-icon{% endif %}">
  5.         {% block utilities_alert_icon %}
  6.             {% if icon != "false" %}
  7.                 {% if type == "danger" %}
  8.                     <span class="icon danger">
  9.                         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z" fill="#fff" /></svg>
  10.                     </span>
  11.                 {% elseif type == "warning" %}
  12.                     <span class="icon warning">
  13.                         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z" fill="#fff" /></svg>
  14.                     </span>
  15.                 {% elseif type == "info" %}
  16.                     <span class="icon info">
  17.                         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z" fill="#fff" /></svg>
  18.                     </span>
  19.                 {% elseif type == "success" %}
  20.                     <span class="icon success">
  21.                         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" fill="#fff" /></svg>
  22.                     </span>
  23.                 {% else %}
  24.                     {% sw_icon 'alert' %}
  25.                 {% endif %}
  26.             {% endif %}
  27.         {% endblock %}
  28.         {% block utilities_alert_content_container %}
  29.             <div class="alert-content-container">
  30.                 {% block utilities_alert_heading %}
  31.                     {% if heading %}
  32.                         <div class="alert-heading h5">
  33.                             {{ heading }}
  34.                         </div>
  35.                     {% endif %}
  36.                 {% endblock %}
  37.                 {% block utilities_alert_content %}
  38.                     <div class="alert-content">
  39.                         {% if list|length > 1 %}
  40.                             <ul class="alert-list">
  41.                                 {% for entry in list %}
  42.                                     <li>{{ entry|sw_sanitize }}</li>
  43.                                 {% endfor %}
  44.                             </ul>
  45.                         {% elseif list|length == 1 %}
  46.                             {% for entry in list %}
  47.                                 {{ entry|sw_sanitize }}
  48.                             {% endfor %}
  49.                         {% else %}
  50.                             {{ content|sw_sanitize }}
  51.                         {% endif %}
  52.                     </div>
  53.                 {% endblock %}
  54.                 {% block utilities_alert_dismissible %}
  55.                     {% if dismissible %}
  56.                         <button type="button"
  57.                                 class="close"
  58.                         {{ dataBsDismissAttr }}="alert"
  59.                         aria-label="Close">
  60.                         <span aria-hidden="true">&times;</span>
  61.                         </button>
  62.                     {% endif %}
  63.                 {% endblock %}
  64.             </div>
  65.         {% endblock %}
  66.     </div>
  67. {% endblock %}