Elgg
Version 6.2
|
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) |
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) |
Definition at line 33 of file button.php.
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>
@uses $vars['type'] Button type (submit|reset|image) @uses $vars['class'] Additional CSS class @uses $vars['text'] Text to include between <button> tags @uses $vars['icon'] Optional icon name @uses $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) | ( | $type | ) |
Definition at line 64 of file button.php.