Blame view

src/Template/Element/Flash/default.ctp 373 Bytes
6c4edfa3   Alexandre   First Commit LabI...
1
<?php
66ad693c   Etienne Pallier   Evolution du fram...
2
3
4
5
6
/**
 * @var \App\View\AppView $this
 * @var array $params
 * @var string $message
 */
6c4edfa3   Alexandre   First Commit LabI...
7
$class = 'message';
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
8
if (!empty($params['class'])) {
6c4edfa3   Alexandre   First Commit LabI...
9
10
    $class .= ' ' . $params['class'];
}
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
11
12
13
if (!isset($params['escape']) || $params['escape'] !== false) {
    $message = h($message);
}
6c4edfa3   Alexandre   First Commit LabI...
14
?>
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
15
<div class="<?= h($class) ?>" onclick="this.classList.add('hidden');"><?= $message ?></div>