19 unset(
$vars[
'align']);
20 $vars[
'class'][] =
"elgg-fieldset-{$align}";
23 unset(
$vars[
'justify']);
25 $vars[
'class'][] =
"elgg-justify-{$justify}";
29 unset(
$vars[
'legend']);
31 $vars[
'class'][] =
'elgg-fieldset-has-legend';
36 unset(
$vars[
'fields']);
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
$vars['class']
Renders a set of fields wrapped in a <fieldset> tag.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!empty($legend)) $fields
if(!empty($justify)) $legend
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.