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-fw fa-check"></i> <strong>Success</strong> The page has been added. 
</div>
<div class="alert alert-danger fade in"> <i class="fa fa-fw 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>

( ! ) Warning: Uninitialized string offset 0 in /var/www/html/lib/class.parsedown.php on line 1023
Call Stack
#TimeMemoryFunctionLocation
10.0000378232{main}( ).../smartui-alert.php:0
20.0007397792Parsedown->parse( $text = '# SmartUI::print_alert()\r\nAlert box. You can see full HTML documentation [here](general-elements.php)\r\n```php\r\nSmartUI::print_alert($message = \'\' [, $type = \'info\', $options = array(), $return = false])\r\n```\r\n\r\n## Usage\r\n```php\r\nSmartUI::print_alert(\'<strong>Success</strong> The page has been added.\', \'success\');\r\n```\r\n\r\n## $type\r\n```info```, ```success```, ```danger```, ```warning```\r\n\r\n## $options\r\nOptions available to configure your alert\r\n```php\r\n$options_map = array(\r\n \'closebutton\' => true,\r\n \'b'... ).../smartui-alert.php:48
30.0008401784Parsedown->findBlocks( $lines = [0 => '# SmartUI::print_alert()', 1 => 'Alert box. You can see full HTML documentation [here](general-elements.php)', 2 => '```php', 3 => 'SmartUI::print_alert($message = \'\' [, $type = \'info\', $options = array(), $return = false])', 4 => '```', 5 => '', 6 => '## Usage', 7 => '```php', 8 => 'SmartUI::print_alert(\'<strong>Success</strong> The page has been added.\', \'success\');', 9 => '```', 10 => '', 11 => '## $type', 12 => '```info```, ```success```, ```danger```, ```warning```', 13 => '', 14 => '## $options', 15 => 'Options available to configure your alert', 16 => '```php', 17 => '$options_map = array(', 18 => ' \'closebutton\' => true,', 19 => ' \'block\' => false,', 20 => ' \'container\' => \'div\',', 21 => ' \'class\' => array(),', 22 => ' \'fade_in\' => true,', 23 => ' \'icon\' => $type', 24 => ');', 25 => '```', 26 => '### $options[icon]', 27 => 'Icons associated with each type of alert', 28 => '```php', 29 => '$icon_map = array(', 30 => ' \'info\' => \'fa-info\',', 31 => ' \'warning\' => \'fa-warning\',', 32 => ' \'danger\' => \'fa-times\',', 33 => ' \'success\' => \'fa-check\'', 34 => ');', 35 => '```'], $blockContext = ??? ).../class.parsedown.php:73
40.0009410360Parsedown->parseLine( $text = '$options[icon]', $markers = ??? ).../class.parsedown.php:534

( ! ) Warning: Uninitialized string offset 0 in /var/www/html/lib/class.parsedown.php on line 1023
Call Stack
#TimeMemoryFunctionLocation
10.0000378232{main}( ).../smartui-alert.php:0
20.0007397792Parsedown->parse( $text = '# SmartUI::print_alert()\r\nAlert box. You can see full HTML documentation [here](general-elements.php)\r\n```php\r\nSmartUI::print_alert($message = \'\' [, $type = \'info\', $options = array(), $return = false])\r\n```\r\n\r\n## Usage\r\n```php\r\nSmartUI::print_alert(\'<strong>Success</strong> The page has been added.\', \'success\');\r\n```\r\n\r\n## $type\r\n```info```, ```success```, ```danger```, ```warning```\r\n\r\n## $options\r\nOptions available to configure your alert\r\n```php\r\n$options_map = array(\r\n \'closebutton\' => true,\r\n \'b'... ).../smartui-alert.php:48
30.0011413240Parsedown->compile( $blocks = [1 => ['name' => 'h1', 'content type' => 'line', 'content' => 'SmartUI::print_alert()'], 2 => ['name' => 'p', 'content type' => 'line', 'content' => 'Alert box. You can see full HTML documentation [here](general-elements.php)'], 3 => ['name' => 'pre', 'content type' => 'blocks', 'content' => [...]], 4 => ['name' => 'h2', 'content type' => 'line', 'content' => 'Usage'], 5 => ['name' => 'pre', 'content type' => 'blocks', 'content' => [...]], 6 => ['name' => 'h2', 'content type' => 'line', 'content' => '$type'], 7 => ['name' => 'p', 'content type' => 'line', 'content' => '```info```, ```success```, ```danger```, ```warning```'], 8 => ['name' => 'h2', 'content type' => 'line', 'content' => '$options'], 9 => ['name' => 'p', 'content type' => 'line', 'content' => 'Options available to configure your alert'], 10 => ['name' => 'pre', 'content type' => 'blocks', 'content' => [...]], 11 => ['name' => 'h3', 'content type' => 'line', 'content' => '$options[icon]'], 12 => ['name' => 'p', 'content type' => 'line', 'content' => 'Icons associated with each type of alert'], 13 => ['name' => 'pre', 'content type' => 'blocks', 'content' => [...]]] ).../class.parsedown.php:76
40.0012414136Parsedown->parseLine( $text = '$options[icon]', $markers = ??? ).../class.parsedown.php:900

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'
);