xssbook2/web/views/template/toast.php
2024-03-30 12:14:42 -04:00

19 lines
373 B
PHP

<?php /* Copyright (c) 2024 Freya Murphy */ ?>
<?php /* vi: syntax=php */ ?>
<?php
$params = array();
if ($detail) {
array_push($params, lang('api_column_' . $detail));
}
if ($hint) {
array_push($params, $hint);
}
$msg = lang($msg, sub: $params);
?>
<div class="toast error">
<?=ucfirst($msg)?>
<?=ilang('action_close', class: 'action-close-toast')?>
</div>