Elgg  Version 3.0
Variables
field.php File Reference

Go to the source code of this file.

Variables

 $value = elgg_extract('value', $vars)
 Outputs a field with a label. More...
 
if(!$value$icon = elgg_extract('icon', $vars, '')
 
if($icon &&!preg_match('/^</', $icon)) if($icon $label ) = elgg_extract('label', $vars, '')
 
 $class = ['elgg-profile-field']
 
 $align = elgg_extract('align', $vars, 'vertical')
 
 $class [] = "elgg-profile-field-$align"
 

Variable Documentation

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

Definition at line 36 of file field.php.

$class = ['elgg-profile-field']

Definition at line 34 of file field.php.

$class[] = "elgg-profile-field-$align"

Definition at line 37 of file field.php.

if (!$value) $icon = elgg_extract('icon', $vars, '')

Definition at line 18 of file field.php.

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

Definition at line 29 of file field.php.

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

Outputs a field with a label.

$vars['label'] Label $vars['value'] Value $vars['class'] Additional classes $vars['icon'] Icon $vars['align'] 'horizontal'|'vertical' $vars['name'] Field name

Definition at line 13 of file field.php.