File "messages.php"

Full Path: /home/romayxjt/public_html/wp-content/plugins/vikbooking/libraries/html/system/messages.php
File size: 886 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/** 
 * @package   	VikBooking - Libraries
 * @subpackage 	html.system
 * @author    	E4J s.r.l.
 * @copyright 	Copyright (C) 2018 E4J s.r.l. All Rights Reserved.
 * @license  	http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link 		https://vikwp.com
 */

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

$queue = !empty($displayData['queue']) ? $displayData['queue'] : array();
$class = !empty($displayData['class']) ? $displayData['class'] : 'notice';

foreach ($queue as $state)
{
	$state->type    = !empty($state->type) && $state->type != 'notice' ? $state->type : 'info';
	$state->message = (array) $state->message;
	?>
	<div class="<?php echo $class; ?> is-dismissible <?php echo $class; ?>-<?php echo $state->type; ?>">
		<?php
		foreach ($state->message as $text)
		{
			?>
			<p><?php echo $text; ?></p>
			<?php
		}
		?>
	</div>
	<?php
}