Elgg  Version 6.2
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

◆ $icon

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.

◆ $icon_alt

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

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

◆ $type

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 [1/2]

$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 [2/2]

$vars[ 'type'] = $type

Definition at line 31 of file button.php.

◆ switch

if (!elgg_is_empty( $icon_alt) &&!str_starts_with( $icon_alt, '<')) switch($type) (   $type)
Examples
/root/Elgg/engine/lib/output.php.

Definition at line 64 of file button.php.