33 $attrs[
'class'][] =
"elgg-message-{$type}";
37 'error' =>
'exclamation-circle',
38 'help' =>
'question-circle',
39 'notice' =>
'info-circle',
40 'info' =>
'info-circle',
41 'warning' =>
'exclamation-triangle',
42 'success' =>
'check-circle',
76 unset(
$vars[
'title']);
77 unset(
$vars[
'icon_name']);
81 unset(
$vars[
'class']);
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
$type
Elgg message element (all unsupported vars will be passed as attributes to the container) ...
if(is_null($title)&&!empty($type)&&elgg_language_key_exists("messages:title:{$type}")) $header
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_view_image_block($image, $body, $vars=[])
Wrapper function for the image block display pattern.
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(empty($title)&&empty($body)) if(!empty($link)) if($type) $default_icons
elgg_view_icon($name, $vars=[])
View an icon glyph.
elgg echo
Translates a string.
if(empty($title)&&empty($body)) if(!empty($link)) $attrs
if(!empty($title)&&!empty($icon_name)) if(!empty($title)) if(!empty($menu)) if(!empty($header)) if(!empty($body)) $contents
if(empty($title)&&empty($body)) if(!empty($link)) if($type) $default_icon_name