Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
output
email.php
Go to the documentation of this file.
1
<?php
9
$value
=
elgg_extract
(
'value'
,
$vars
);
10
unset(
$vars
[
'value'
]);
11
12
if
(empty(
$value
)) {
13
return
;
14
}
15
16
$vars
[
'href'
] =
"mailto:{$value}"
;
17
$vars
[
'encode_text'
] =
true
;
18
$vars
[
'text'
] =
elgg_extract
(
'text'
,
$vars
,
$value
);
19
$vars
[
'allowed_schemes'
] = [
'mailto'
];
20
21
echo
elgg_view
(
'output/url'
,
$vars
);
$vars
$vars['class']
Elgg email input Displays an email input field.
Definition:
email.php:9
$value
$value
Elgg email output Displays an email address that was entered using an email input field...
Definition:
email.php:9
elgg_extract
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:256
elgg_view
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
Generated on Wed Dec 4 2024 00:00:23 for Elgg by
1.8.11