2026-02-28 10:19:10 +01:00
|
|
|
{#
|
|
|
|
|
# Info Notice (Bootstrap 5 Override)
|
|
|
|
|
#
|
|
|
|
|
# Displays WooCommerce info/neutral notices as Bootstrap 5 alerts.
|
|
|
|
|
#
|
|
|
|
|
# Expected context:
|
|
|
|
|
# notices - Array of notice objects, each with:
|
|
|
|
|
# notice - Notice HTML content (pre-sanitized via wc_kses_notice)
|
|
|
|
|
# data - Optional data attributes string
|
|
|
|
|
#
|
|
|
|
|
# WooCommerce PHP equivalent: notices/notice.php
|
|
|
|
|
#
|
|
|
|
|
# @package WcBootstrap
|
|
|
|
|
# @since 0.1.0
|
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
|
{% if notices is defined and notices|length > 0 %}
|
|
|
|
|
{% for notice in notices %}
|
|
|
|
|
<div class="alert alert-info alert-dismissible fade show woocommerce-info"
|
2026-03-01 01:02:43 +01:00
|
|
|
{{ notice.data|default('')|wp_kses_post }}
|
2026-02-28 10:19:10 +01:00
|
|
|
role="status">
|
|
|
|
|
<i class="bi bi-info-circle me-2" aria-hidden="true"></i>
|
|
|
|
|
{{ notice.notice|raw }}
|
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="{{ __('Close') }}"></button>
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|