Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
output
tag.php
Go to the documentation of this file.
1
<?php
11
$value
=
elgg_extract
(
'value'
,
$vars
);
12
if
(
elgg_is_empty
(
$value
)) {
13
return
;
14
}
15
16
$href
=
elgg_extract
(
'href'
,
$vars
);
17
$vars
[
'rel'
] =
'tag'
;
18
19
if
(
$href
) {
20
unset(
$vars
[
'value'
]);
21
22
$vars
[
'text'
] =
$value
;
23
$vars
[
'encode_text'
] =
true
;
24
25
echo
elgg_view
(
'output/url'
,
$vars
);
26
}
else
{
27
echo
elgg_view
(
'output/text'
,
$vars
);
28
}
$value
$value
Elgg single tag output.
Definition:
tag.php:11
elgg_is_empty
elgg_is_empty($value)
Check if a value isn't empty, but allow 0 and '0'.
Definition:
input.php:176
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
$vars
$vars['class']
Elgg tag input.
Definition:
tag.php:11
$href
if(elgg_is_empty($value)) $href
Definition:
tag.php:16
Generated on Wed Dec 4 2024 00:00:23 for Elgg by
1.8.11