aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2025-02-02 19:15:03 +0100
committerGravatar GitHub <noreply@github.com> 2025-02-02 19:15:03 +0100
commit1e8ef4bb7215417d425bb48cb2bec06f49e49bfc (patch)
tree228757761fe7dbd87cdd1246550606d7923147cd /app/layout
parent99d5c4852367eddca134f3aaf2370ce879dc6481 (diff)
Improve notifications: notificationName (#7287)
* notificationID * 3 first examples * fix * notificationID -> notificationName * Update lib/Minz/Request.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/layout.phtml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml
index 6d4668cd5..e4fb5f2ae 100644
--- a/app/layout/layout.phtml
+++ b/app/layout/layout.phtml
@@ -84,14 +84,16 @@
<?php
$msg = '';
$status = 'closed';
+ $notificationName = '';
$notif = Minz_Request::getNotification();
if (!empty($notif)) {
$msg = $notif['content'];
$status = $notif['type'];
+ $notificationName = $notif['notificationName'];
invalidateHttpCache();
}
?>
-<div role="dialog" id="notification" class="notification <?= $status ?>" aria-describedby="dialogMsg">
+<div role="dialog" id="notification" class="notification <?= $status ?> <?= $notificationName ?>" aria-describedby="dialogMsg">
<span class="msg" id="dialogMsg"><?= $msg ?></span>
<button class="close" title="<?= _t('gen.action.close') ?>"><?= _i('close') ?></button>
</div>