28 $attrs[
'class'][] =
"elgg-module-$type";
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
$type
Elgg module element.
if(!elgg_is_empty($type)) $header
if(!elgg_is_empty($footer)) $contents
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg echo
Translates a string.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.