Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
input
email.php
Go to the documentation of this file.
1
<?php
12
$vars
[
'class'
] = (array)
elgg_extract
(
'class'
,
$vars
, []);
13
$vars
[
'class'
][] =
'elgg-input-email'
;
14
15
$defaults
= array(
16
'disabled'
=>
false
,
17
'autocapitalize'
=>
'off'
,
18
'autocorrect'
=>
'off'
,
19
'type'
=>
'email'
20
);
21
22
$vars
= array_merge(
$defaults
,
$vars
);
23
24
echo
elgg_format_element
(
'input'
,
$vars
);
$defaults
$defaults
Definition:
email.php:15
elgg_extract
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1246
elgg_format_element
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition:
output.php:215
$vars
$vars['class']
Definition:
email.php:12
echo
elgg echo
Translates a string.
Definition:
languages.js:43
Generated on Sat Dec 21 2024 00:00:50 for Elgg by
1.8.11