Skip to content

Commit 3e9d660

Browse files
Update alert.php
1 parent a7fbf78 commit 3e9d660

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

components/alert.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
<?php
2-
//Alerts
1+
<?php
2+
if (!empty($config['alerts'])):
3+
foreach ($config['alerts'] as $alert):
4+
$type = $alert['type'];
5+
$message = $alert['message'];
6+
?>
7+
<div class="alert alert-<?php echo $type; ?>">
8+
<?php echo htmlspecialchars($message); ?>
9+
</div>
10+
<?php
11+
endforeach;
12+
endif;
313
?>

0 commit comments

Comments
 (0)