xssbook2/web/views/template/toast.php

20 lines
373 B
PHP
Raw Normal View History

2024-03-30 16:14:42 +00:00
<?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>