Blame view

src/Template/Element/Flash/default.ctp 287 Bytes
6c4edfa3   Alexandre   First Commit LabI...
1
2
<?php
$class = 'message';
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
3
if (!empty($params['class'])) {
6c4edfa3   Alexandre   First Commit LabI...
4
5
    $class .= ' ' . $params['class'];
}
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
6
7
8
if (!isset($params['escape']) || $params['escape'] !== false) {
    $message = h($message);
}
6c4edfa3   Alexandre   First Commit LabI...
9
?>
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
10
<div class="<?= h($class) ?>" onclick="this.classList.add('hidden');"><?= $message ?></div>