<?php
/**
 * Show error messages
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     3.3.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

if ( ! $messages ) return;
?>

<div class="ivan-message  with-icon error woo-msg-wrapper">
	<div class="ivan-message-inner">

		<div class="ivan-message-icon-holder">
			<div class="ivan-message-icon">
				<div class="ivan-message-icon-inner">
					<i class="fa fa-close fa-lg"></i>
				</div>
			</div>
		</div>
						
		<div class="ivan-message-text-holder">
			<div class="ivan-message-text">
				<div class="ivan-message-text-inner">
					<ul class="woocommerce-error">
						<?php foreach ( $messages as $message ) : ?>
							<li><?php echo wp_kses_post( $message ); ?></li>
						<?php endforeach; ?>
					</ul>
				</div>
			</div>
		</div>

	</div><!-- .message-inner -->
</div>