src/bundles/UI/Builder/Bootstrap.php
public function build_alert( $alerts )
	{	
		return HTML::tag( 'div', function() use( $alerts ) 
		{
			// loop trough all alert types
			foreach( $alerts as $type => $items ) 
			{
				foreach( $items as $alert ) 
				{
					$alert = implode( "<br>\n", $alert );
					
					// close button
					$close = HTML::tag( 'button', '&times;' )
						->add_class( 'close' )
						->type( 'button' )
						->data( 'dismiss', 'alert' );
					
					// alert div
					echo HTML::tag( 'div', $close.$alert )
						->add_class( 'alert fade in' )
						->add_class( 'alert-'.$type );
				}
			}
		})->add_class( 'ui-alert-container' );
	}
public function build_alert( $alerts )
	{	
		return HTML::tag( 'div', function() use( $alerts ) 
		{
			// loop trough all alert types
			foreach( $alerts as $type => $items ) 
			{
				foreach( $items as $alert ) 
				{
					$alert = implode( "<br>\n", $alert );
					
					// close button
					$close = HTML::tag( 'button', '&times;' )
						->add_class( 'close' )
						->type( 'button' )
						->data( 'dismiss', 'alert' );
					
					// alert div
					echo HTML::tag( 'div', $close.$alert )
						->add_class( 'alert fade in' )
						->add_class( 'alert-'.$type );
				}
			}
		})->add_class( 'ui-alert-container' );
	}
public function build_alert ( $ alerts ) { return HTML :: tag ( 'div' , function ( ) use ( $ alerts ) { // loop trough all alert types foreach ( $ alerts as $ type => $ items ) { foreach ( $ items as $ alert ) { $ alert = implode ( "<br>\n" , $ alert ) ; // close button $ close = HTML :: tag ( 'button' , '&times;' ) -> add_class ( 'close' ) -> type ( 'button' ) -> data ( 'dismiss' , 'alert' ) ; // alert div echo HTML :: tag ( 'div' , $ close . $ alert ) -> add_class ( 'alert fade in' ) -> add_class ( 'alert-' . $ type ) ; } } } ) -> add_class ( 'ui-alert-container' ) ; }
Build the UI alerts

@param array 		$alerts
@return UI\HTML
Build the UI alerts