Elgg  Version master
Variables
button.php File Reference

Go to the source code of this file.

Variables

 $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 = (string) elgg_extract('text', $vars)
 
if(!isset($vars['aria-label'])&&!isset($vars['aria-labelledby'])&&!isset($vars['title'])&&empty(elgg_strip_tags($text))) if(!elgg_is_empty($text)) $icon = (string) elgg_extract('icon', $vars)
 
if(!elgg_is_empty($icon)&&!str_starts_with($icon, '<')) $icon_alt = (string) elgg_extract('icon_alt', $vars)
 
if(!elgg_is_empty($icon_alt)&&!str_starts_with($icon_alt, '<')) switch ($type)
 

Variable Documentation

if (!isset($vars['aria-label'])&&!isset($vars['aria-labelledby'])&&!isset($vars['title'])&&empty(elgg_strip_tags($text))) if (!elgg_is_empty($text)) $icon = (string) elgg_extract('icon', $vars)

Definition at line 46 of file button.php.

if (!elgg_is_empty($icon)&&!str_starts_with($icon, '<')) $icon_alt = (string) elgg_extract('icon_alt', $vars)

Definition at line 55 of file button.php.

$text = (string) 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 30 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 12 of file button.php.

$vars['type'] = $type

Definition at line 31 of file button.php.

if (!elgg_is_empty($icon_alt)&&!str_starts_with($icon_alt, '<')) switch($type)

Definition at line 64 of file button.php.