Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
object
default.php
Go to the documentation of this file.
1
<?php
8
$entity
=
elgg_extract
(
'entity'
,
$vars
);
9
if
(!
$entity
instanceof
ElggEntity
) {
10
return
;
11
}
12
13
if
(!isset(
$vars
[
'icon'
])) {
14
$vars
[
'icon'
] =
true
;
15
}
16
17
if
(!isset(
$vars
[
'title'
]) && empty(
$entity
->getDisplayName())) {
18
$vars
[
'title'
] = get_class(
$entity
);
19
}
20
21
echo
elgg_view
(
'object/elements/summary'
,
$vars
);
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
elgg_view
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
$vars
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition:
default.php:25
$entity
$entity
Generic icon view.
Definition:
default.php:13
ElggEntity
Definition:
ElggEntity.php:52
Generated on Mon Oct 7 2024 00:02:51 for Elgg by
1.8.11