/var/www/html_us/wp-content/themes/elessi-theme/woocommerce/notices/error.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Show error messages
 *
 * @author  NasaTheme
 * @package Elessi-theme/WooCommerce
 * @version 8.6.0
 */

if (!defined('ABSPATH')) :
    exit;
endif;

if (empty(
$notices) || !is_array($notices)) :
    return;
endif;
?>

<ul class="woocommerce-error is-error" role="alert">
    <?php foreach ($notices as $notice) : ?>
        <li<?php echo wc_get_notice_data_attr($notice); ?>>
            <svg viewBox="0 0 512 512" height="17" width="17" ><path fill="currentColor" 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"/></svg>
            <?php echo wc_kses_notice($notice['notice']); ?>
        </li>
    <?php endforeach; ?>
</ul>