Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Throw an alert
- *
- * @param mixed $alert Content of the alert
- * @param string $type Type of the alert
- * @return mixed
- */
- function throw_alert($title, $text, $type)
- {
- echo "<div class='alert alert-{$type} alert-dismissible fade show' role='alert'><button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button><strong>{$title}</strong> {$text}</div>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement