summaryrefslogtreecommitdiff
path: root/includes/mobile/components
diff options
context:
space:
mode:
Diffstat (limited to 'includes/mobile/components')
-rw-r--r--includes/mobile/components/alert.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/mobile/components/alert.php b/includes/mobile/components/alert.php
new file mode 100644
index 0000000..fbc3482
--- /dev/null
+++ b/includes/mobile/components/alert.php
@@ -0,0 +1,8 @@
+<?php function c_alert(string $html_message, string $type, ?string $icon = null): void { ?>
+<div class="alert alert-<?= htmlentities($type) ?>">
+<?php if ($icon !== null): ?>
+<i class="glyphicon glyphicon-<?= htmlentities($icon) ?>"></i>
+<?php endif; ?>
+<?= $html_message ?>
+</div>
+<?php }