28 $attrs[
'class'][] =
"elgg-module-{$type}";
$type
Elgg module element.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!elgg_is_empty($type)) $header
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(!elgg_is_empty($title)) if($header!==null) if(!elgg_is_empty($body)) if(!elgg_is_empty($footer)) $contents