<?php
/**
 * ANGIE - The site restoration script for backup archives created by Akeeba Backup and Akeeba Solo
 *
 * @package   angie
 * @copyright Copyright (c)2009-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license   GNU General Public License version 3, or later
 */

defined('_AKEEBA') or die();

foreach ([
	         'error'   => 'failure',
	         'warning' => 'warning',
	         'success' => 'success',
	         'info'    => 'info',
         ] as $type => $class):
	$messages = AApplication::getInstance()->getMessageQueueFor($type);
	if (!empty($messages)):
		$class = "alert-$class";
		?>
        <div id="akeeba-backup-message-<?php echo $type?>" class="akeeba-backup-message akeeba-block--<?php echo $class ?> small">
			<?php foreach ($messages as $message): ?>
                <p><?php echo $message ?></p>
			<?php endforeach; ?>
        </div>
	<?php
	endif;
endforeach;
