Elgg
Version 6.1
|
Go to the source code of this file.
Variables | |
$type = (string) elgg_extract('type', $vars, false) | |
Elgg message element (all unsupported vars will be passed as attributes to the container) More... | |
$title = elgg_extract('title', $vars) | |
$menu = elgg_extract('menu', $vars) | |
$body = elgg_extract('body', $vars, '') | |
$link = elgg_extract('link', $vars) | |
if(empty($title)&&empty($body)) if(!empty($link)) | $attrs |
if(empty($title)&&empty($body)) if(!empty($link)) if(!empty($type)) | $default_icons |
if(empty($title)&&empty($body)) if(!empty($link)) if(!empty($type)) | $default_icon_name = elgg_extract($type, $default_icons) |
$icon_name = elgg_extract('icon_name', $vars, $default_icon_name) | |
if(is_null($title)&&!empty($type)&&elgg_language_key_exists("messages:title:{$type}")) | $header = '' |
if(!empty($title)&&!empty($icon_name)) if(!empty($title)) if(!empty($menu)) if(!empty($header)) if(!empty($body)) | $contents = elgg_format_element('div', ['class' => 'elgg-inner'], $header . $body) |
$attrs |
Definition at line 28 of file message.php.
$body = elgg_extract('body', $vars, '') |
Definition at line 17 of file message.php.
if (!empty($title)&&!empty($icon_name)) if (!empty($title)) if (!empty($menu)) if (!empty($header)) if (!empty($body)) $contents = elgg_format_element('div', ['class' => 'elgg-inner'], $header . $body) |
Definition at line 73 of file message.php.
if (empty($title)&&empty($body)) if (!empty($link)) if (!empty($type)) $default_icon_name = elgg_extract($type, $default_icons) |
Definition at line 45 of file message.php.
Definition at line 36 of file message.php.
if (is_null($title)&&!empty($type)&&elgg_language_key_exists("messages:title:{$type}")) $header = '' |
Definition at line 52 of file message.php.
$icon_name = elgg_extract('icon_name', $vars, $default_icon_name) |
Definition at line 46 of file message.php.
$link = elgg_extract('link', $vars) |
Definition at line 18 of file message.php.
$menu = elgg_extract('menu', $vars) |
Definition at line 16 of file message.php.
$title = elgg_extract('title', $vars) |
Definition at line 15 of file message.php.
$type = (string) elgg_extract('type', $vars, false) |
Elgg message element (all unsupported vars will be passed as attributes to the container)
$vars['type'] The type of message (error, success, warning, help, notice, info) $vars['title'] Optional title text, will default to the type $vars['icon_name'] Optional iconname to override default icon $vars['menu'] Optional menu to show in the title bar $vars['body'] Content of the body $vars['link'] Optional call to action text added to the body $vars['class'] Optional additional class for message
Definition at line 14 of file message.php.