29 lines
1.3 KiB
PHP
29 lines
1.3 KiB
PHP
<?php
|
|
if ($type == 'errors_count') {
|
|
/* for the Menu counter */
|
|
?>
|
|
<div style="position: relative">
|
|
<span class='awaiting-mod count-<?php echo $message; ?>'>
|
|
<span class='sq_count pending-count'><?php echo $message; ?></span>
|
|
</span>
|
|
</div>
|
|
<?php } elseif ($type == 'sq_error') { ?>
|
|
<div class="sq_alert position-fixed fixed-top text-center text-white bg-danger m-0 p-3 border border-white sq-position-fixed sq-fixed-top sq-text-center sq-text-white sq-bg-danger sq-m-0 sq-p-3 sq-border sq-border-white" style="top: 32px !important; font-size: 16px !important; z-index: 999999;">
|
|
<?php echo $message; ?>
|
|
</div>
|
|
<script>
|
|
setTimeout(function () {
|
|
jQuery('.sq_alert').remove();
|
|
}, 3000);
|
|
</script>
|
|
<?php } elseif ($type == 'sq_success') { ?>
|
|
<div class="sq_alert position-fixed fixed-top text-center text-white bg-success m-0 p-3 border border-white sq-position-fixed sq-fixed-top sq-text-center sq-text-white sq-bg-success sq-m-0 sq-p-3 sq-border sq-border-white" style="top: 32px !important; font-size: 16px !important; z-index: 999999;">
|
|
<?php echo $message; ?>
|
|
</div>
|
|
<script>
|
|
setTimeout(function () {
|
|
jQuery('.sq_alert').remove();
|
|
}, 3000);
|
|
</script>
|
|
<?php } ?>
|