34 $animatedEnter =
"animated fadeInDown";
36 $animatedExit =
"animated fadeOutUp";
38 $placementFrom =
"top";
40 $placementAlign =
"center";
44 $urlTarget =
"_blank";
46 $allowDismiss =
"true";
48 $newestOnTop =
"false";
50 $progressBar =
"false";
60 $icon =
"fa fa-info-circle";
66 if (!isset($title) || (empty($title)))
70 if (!isset($text) || (empty($text)))
78 if (!isset($delay) || (empty($delay)))
84 if (empty($title)) { $title=
"ERROR!"; }
85 if (empty($text)) { $text=
"Something strange has happened. Text is empty. Sorry that there is no more Information available. (Code 0)"; }
87 if (empty($delay)) { $delay=
"null"; }
89 if (
$redirect ===
"null" && ($delay !==
"null"))
96 if (is_int($n_delay)){
97 $n_delay = $n_delay / 3;
98 $n_delay = round($n_delay);
102 if ($delay ===
"null")
111 $icon =
"fa fa-exclamation-triangle";
114 $icon =
"fa fa-flash";
117 $icon =
"fa fa-check-circle-o";
120 $icon =
"fa fa-lightbulb-o";
122 $animatedEnter =
"animated fadeInRight";
123 $animatedExit =
"animated fadeOutRight";
124 $placementFrom =
"top";
125 $placementAlign =
"right";
128 $icon =
"fa fa-info-circle";
134 <script type=\"text/javascript\">
137 title: '<h4><i class=\"$icon\"></i> $title</h4>',
146 allow_dismiss: '$allowDismiss',
147 newest_on_top: '$newestOnTop',
148 showProgressbar: $progressBar,
150 from: '$placementFrom',
151 align: '$placementAlign'
161 url_target: '$urlTarget',
164 enter: '$animatedEnter',
165 exit: '$animatedExit'
170 if (
$redirect !==
"null" && ($delay !==
"null"))
173 return \YAWK\sys::setTimeout(
"index.php?$redirect", $delay);
Throws a fancy Bootstrap Alert (success, info, warning or danger)
static draw($type, $title, $text, $redirect, $delay)
This class serves methods to create backup from files.