Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
user
elements
summary
content.php
Go to the documentation of this file.
1
<?php
9
$content
=
elgg_extract
(
'content'
,
$vars
,
''
);
10
if
(
$content
===
false
) {
11
return
;
12
}
13
14
$entity
=
elgg_extract
(
'entity'
,
$vars
);
15
if
(
$content
===
''
&&
$entity
instanceof
ElggUser
) {
16
if
(
elgg_view_exists
(
'user/status'
)) {
17
$content
=
elgg_view
(
'user/status'
, [
18
'entity'
=>
$entity
,
19
]);
20
}
21
}
22
23
if
(
elgg_is_empty
(
$content
)) {
24
return
;
25
}
26
27
echo
elgg_format_element
(
'div'
, [
'class'
=>
'elgg-listing-summary-content'
],
$content
);
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:254
$content
$content
Outputs annotation summary content.
Definition:
content.php:9
elgg_view
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
$entity
if($content===false) $entity
Definition:
content.php:14
$vars
$vars
Definition:
theme.php:5
elgg_format_element
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition:
output.php:145
elgg_view_exists
elgg_view_exists(string $view, string $viewtype= '', bool $recurse=true)
Returns whether the specified view exists.
Definition:
views.php:131
ElggUser
Definition:
ElggUser.php:28
Generated on Sat Dec 21 2024 00:02:53 for Elgg by
1.8.11