SmartUI Alerts

Success The page has been added.
Success Opps!!!

Warning!

Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML Output (Run Time: 0.0000s)

<div class="alert alert-success fade in">
    <button class="close" data-dismiss="alert"> × </button>
    <i class="fa fa-check"></i> <strong>Success</strong> The page has been added. 
</div>
<div class="alert alert-danger fade in"> <i class="fa fa-times fa-x"></i> <strong>Success</strong> Opps!!! </div>
<div class="alert alert-warning fade in alert-block">
    <h4 class="alert-heading">
        Warning!
    </h4>
    Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. 
</div>

SmartUI::print_alert()

Alert box. You can see full HTML documentation here

SmartUI::print_alert($message = '' [, $type = 'info', $options = array(), $return = false])

Usage

SmartUI::print_alert('<strong>Success</strong> The page has been added.', 'success');

$type

info, success, danger, warning

$options

Options available to configure your alert

$options_map = array(
    'closebutton' => true,
    'block' => false,
    'container' => 'div',
    'class' => array(),
    'fade_in' => true,
    'icon' => $type
);

$options[icon]

Icons associated with each type of alert

$icon_map = array(
    'info' => 'fa-info',
    'warning' => 'fa-warning',
    'danger' => 'fa-times',
    'success' => 'fa-check'
);