Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
user
elements
imprint
briefdescription.php
Go to the documentation of this file.
1
<?php
14
$entity
=
elgg_extract
(
'entity'
,
$vars
);
15
if
(!
$entity
instanceof
ElggUser
) {
16
return
;
17
}
18
19
$briefdescription
=
elgg_extract
(
'briefdescription'
,
$vars
);
20
if
(!isset(
$briefdescription
)) {
21
$briefdescription
=
$entity
->getProfileData(
'briefdescription'
);
22
}
23
24
if
(
elgg_is_empty
(
$briefdescription
) || !is_string(
$briefdescription
)) {
25
return
;
26
}
27
28
echo
elgg_view
(
'object/elements/imprint/element'
, [
29
'icon_name'
=>
elgg_extract
(
'briefdescription_icon'
,
$vars
,
false
),
30
'content'
=>
$briefdescription
,
31
'class'
=>
'elgg-listing-briefdescription'
,
32
]);
$briefdescription
if(!$entity instanceof ElggUser) $briefdescription
Definition:
briefdescription.php:19
$entity
$entity
Displays the briefdescription of the user.
Definition:
briefdescription.php:14
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
Definition:
theme.php:5
ElggUser
Definition:
ElggUser.php:28
Generated on Wed Dec 4 2024 00:00:23 for Elgg by
1.8.11