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']);
$type
Elgg message element (all unsupported vars will be passed as attributes to the container) ...
if(empty($title)&&empty($body)) if(!empty($link)) if(!empty($type)) $default_icons
elgg_view_image_block(string $image, string $body, array $vars=[])
Wrapper function for the image block display pattern.
if(empty($title)&&empty($body)) if(!empty($link)) if(!empty($type)) $default_icon_name
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if(is_null($title)&&!empty($type)&&elgg_language_key_exists("messages:title:{$type}")) $header
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_language_key_exists(string $key, string $language= 'en')
Check if a given language key exists.
elgg_view_icon(string $name, array $vars=[])
View an icon glyph.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
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