| ( ! ) Warning: Uninitialized string offset 0 in /var/www/html/lib/class.parsedown.php on line 1023 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0000 | 378232 | {main}( ) | .../smartui-alert.php:0 |
| 2 | 0.0007 | 397792 | Parsedown->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 |
| 3 | 0.0008 | 401784 | Parsedown->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 |
| 4 | 0.0009 | 410360 | Parsedown->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 | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0000 | 378232 | {main}( ) | .../smartui-alert.php:0 |
| 2 | 0.0007 | 397792 | Parsedown->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 |
| 3 | 0.0011 | 413240 | Parsedown->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 |
| 4 | 0.0012 | 414136 | Parsedown->parseLine( $text = '$options[icon]', $markers = ??? ) | .../class.parsedown.php:900 |
Alert box. You can see full HTML documentation here
SmartUI::print_alert($message = '' [, $type = 'info', $options = array(), $return = false])
SmartUI::print_alert('<strong>Success</strong> The page has been added.', 'success');
info, success, danger, warning
Options available to configure your alert
$options_map = array(
'closebutton' => true,
'block' => false,
'container' => 'div',
'class' => array(),
'fade_in' => true,
'icon' => $type
);
Icons associated with each type of alert
$icon_map = array(
'info' => 'fa-info',
'warning' => 'fa-warning',
'danger' => 'fa-times',
'success' => 'fa-check'
);