Elgg  Version 3.0
button.php File Reference

Go to the source code of this file.


 $vars ['class'] = elgg_extract_class($vars, 'elgg-button')
 Renders a <button> More...
if(!isset($vars['text'])&&isset($vars['value'])) $type = elgg_extract('type', $vars, 'button', false)
 $vars ['type'] = $type
 $text = elgg_extract('text', $vars)
 $icon = elgg_extract('icon', $vars, '')
if($icon &&!preg_match('/^</', $iconswitch )($type)

Variable Documentation

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

Definition at line 29 of file button.php.

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

Definition at line 22 of file button.php.

if (!isset($vars['text'])&&isset($vars['value'])) $type = elgg_extract('type', $vars, 'button', false)

Definition at line 19 of file button.php.

$vars['class'] = elgg_extract_class($vars, 'elgg-button')

Renders a <button>

$vars['type'] Button type (submit|reset|image) $vars['class'] Additional CSS class $vars['text'] Text to include between <button> tags $vars['icon'] Optional icon name

Definition at line 12 of file button.php.

$vars['type'] = $type

Definition at line 20 of file button.php.

if ($icon &&!preg_match('/^</', $icon) switch) ($type)

Definition at line 38 of file button.php.