Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
components
column
container.php
Go to the documentation of this file.
1
<?php
11
$item
=
elgg_extract
(
'item'
,
$vars
);
12
if
(!
$item
instanceof
ElggEntity
) {
13
return
;
14
}
15
16
$link
=
elgg_extract
(
'link'
,
$vars
,
true
);
17
18
$entity
=
$item
->getContainerEntity();
19
if
(!
$entity
) {
20
return
;
21
}
22
23
echo
$link
?
elgg_view_entity_url
(
$entity
) :
$entity
->getDisplayName();
$entity
$entity
Definition:
container.php:18
$link
if(!$item instanceof ElggEntity) $link
Definition:
container.php:16
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
$vars
$vars
Definition:
theme.php:5
$item
$item
Render a container element.
Definition:
container.php:11
ElggEntity
Definition:
ElggEntity.php:52
elgg_view_entity_url
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.
Definition:
views.php:1444
Generated on Wed Dec 4 2024 00:00:23 for Elgg by
1.8.11