Elgg  Version 2.3
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 = ''
 
if($legendforeach ($fields as $field)
 

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.

$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',
])
elgg_extract_class(array $array, $existing=[])
Extract class names from an array with key "class", optionally merging into a preexisting set...
Definition: elgglib.php:1396
$vars['class']
Renders a set of fields wrapped in a <fieldset> tag.
Definition: fieldset.php:17

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.

if ($legend) foreach($fields as $field)

Definition at line 44 of file fieldset.php.