2020-05-29 13:41:58 +02:00
|
|
|
<?php
|
2021-10-04 13:06:12 +02:00
|
|
|
|
2020-05-29 13:41:58 +02:00
|
|
|
/**
|
|
|
|
* @var \App\View\AppView $this
|
|
|
|
* @var array $params
|
|
|
|
* @var string $message
|
|
|
|
*/
|
|
|
|
if (!isset($params['escape']) || $params['escape'] !== false) {
|
|
|
|
$message = h($message);
|
|
|
|
}
|
|
|
|
?>
|
2021-10-04 13:06:12 +02:00
|
|
|
<?php if (!empty($params['toast'])) : ?>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
UI.toast({
|
|
|
|
variant: 'success',
|
|
|
|
titleHtml: '<?= $message ?>'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
<?php else : ?>
|
|
|
|
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
|
|
|
<?= $message ?>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|