Elgg  Version 3.0
Variables
fieldset.php File Reference

Go to the source code of this file.

Variables

 $vars ['class']
 Renders a set of fields wrapped in a <fieldset> tag. More...
 
 $align = elgg_extract('align', $vars, 'vertical')
 
 $vars ['class'][] = "elgg-fieldset-$align"
 
 $justify = elgg_extract('justify', $vars, '')
 
if($justify) $legend = elgg_extract('legend', $vars)
 
 $fields = (array) elgg_extract('fields', $vars, [])
 
 $fieldset = ''
 

Variable Documentation

$align = elgg_extract('align', $vars, 'vertical')

Definition at line 22 of file fieldset.php.

$fields = (array) elgg_extract('fields', $vars, [])

Definition at line 35 of file fieldset.php.

if ($legend) foreach ($fields as $field) $fieldset = ''

Definition at line 38 of file fieldset.php.

$justify = elgg_extract('justify', $vars, '')

Definition at line 26 of file fieldset.php.

if ($justify) $legend = elgg_extract('legend', $vars)

Definition at line 32 of file fieldset.php.

$vars['class']
Initial value:
'elgg-fieldset',
'clearfix',
])
$vars['class']
Renders a set of fields wrapped in a <fieldset> tag.
Definition: fieldset.php:17
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153

Renders a set of fields wrapped in a <fieldset> tag.

$vars['class'] Additional CSS classes $vars['align'] Field alignment (vertical|horizontal) If set to horizontal, fields will be rendered with inline display $vars['justify'] Text justification (left|right|center) $vars['legend'] Optional fieldset legend $vars['fields'] An array of field options Field options should be suitable for use in elgg_view_field()

Definition at line 17 of file fieldset.php.

$vars['class'][] = "elgg-fieldset-$align"

Definition at line 24 of file fieldset.php.