Elgg  Version 4.3
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'])) if(!empty($vars['confirm'])) $type = elgg_extract('type', $vars, 'button', false)
 $vars ['type'] = $type
 $text = elgg_extract('text', $vars)
 $icon = elgg_extract('icon', $vars, '')
if($icon &&!preg_match('/^</', $icon$icon_alt ) = elgg_extract('icon_alt', $vars, '')
if($icon_alt &&!preg_match('/^</', $icon_alt) switch )($type)

Variable Documentation

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

Definition at line 39 of file button.php.

if ($icon &&!preg_match('/^</', $icon) $icon_alt) = elgg_extract('icon_alt', $vars, '')

Definition at line 48 of file button.php.

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

Definition at line 29 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 $vars['confirm'] Confirmation dialog text | (bool) true

Definition at line 13 of file button.php.

$vars['type'] = $type

Definition at line 30 of file button.php.

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

Definition at line 57 of file button.php.