MCPcopy Create free account
hub / github.com/atomicon/codeigniter-theme / bootstrap_messages

Function bootstrap_messages

themes/default/functions.php:11–19  ·  view source on GitHub ↗
( $messages = array() )

Source from the content-addressed store, hash-verified

9if (!function_exists('bootstrap_messages'))
10{
11 function bootstrap_messages( $messages = array() )
12 {
13 foreach($messages as $message)
14 {
15 echo '<div class="alert alert-' .$message['type'] . '">';
16 echo htmlspecialchars($message['message']);
17 echo '</div>';
18 }
19 }
20}
21
22?>

Callers 1

index.phpFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected