-
Notifications
You must be signed in to change notification settings - Fork 0
/
messages.php
38 lines (34 loc) · 1.35 KB
/
messages.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php if ($errors || $warnings || $infos || $success): ?>
<?php foreach ($errors as $value): ?>
<div class="alert alert-danger" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<p><?php echo xss($value); ?></p>
</div>
<?php endforeach; ?>
<?php foreach ($warnings as $value): ?>
<div class="alert alert-warning" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<p><?php echo xss($value); ?></p>
</div>
<?php endforeach; ?>
<?php foreach ($infos as $value): ?>
<div class="alert alert-info" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<p><?php echo xss($value); ?></p>
</div>
<?php endforeach; ?>
<?php foreach ($success as $value): ?>
<div class="alert alert-success" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<p><?php echo xss($value); ?></p>
</div>
<?php endforeach; ?>
<?php endif; ?>