summaryrefslogtreecommitdiff
path: root/includes/mobile/components/alert.php
blob: fbc3482bcfd0e3023541f2f1f7fbeed9af3a7a2b (plain)
1
2
3
4
5
6
7
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 }