2020-05-29 13:41:58 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @var \App\View\AppView $this
|
|
|
|
* @var array $params
|
|
|
|
* @var string $message
|
|
|
|
*/
|
|
|
|
$class = 'message';
|
|
|
|
if (!empty($params['class'])) {
|
|
|
|
$class .= ' ' . $params['class'];
|
|
|
|
}
|
|
|
|
if (!isset($params['escape']) || $params['escape'] !== false) {
|
|
|
|
$message = h($message);
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="alert <?= h($class) ?> alert-dismissible fade show" role="alert">
|
|
|
|
<?= $message ?>
|
2021-09-17 13:04:37 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
|
2020-05-29 13:41:58 +02:00
|
|
|
</button>
|
|
|
|
</div>
|