Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
trash
elements
imprint
contents.php
Go to the documentation of this file.
1
<?php
20
$entity
=
elgg_extract
(
'entity'
,
$vars
);
21
if
(!
$entity
instanceof \
ElggEntity
) {
22
return
;
23
}
24
25
echo
elgg_view
(
'trash/elements/imprint/byline'
,
$vars
);
26
echo
elgg_view
(
'trash/elements/imprint/time'
,
$vars
);
27
echo
elgg_view
(
'trash/elements/imprint/actor'
,
$vars
);
28
echo
elgg_view
(
'trash/elements/imprint/type'
,
$vars
);
29
30
$imprint
=
elgg_extract
(
'imprint'
,
$vars
);
31
if
(!empty(
$imprint
)) {
32
foreach
(
$imprint
as
$item
) {
33
echo
elgg_view
(
'trash/elements/imprint/element'
, $item);
34
}
35
}
$item
if(!$items) $item
Definition:
delete.php:13
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
$imprint
$imprint
Definition:
contents.php:18
$vars
$vars
Definition:
theme.php:5
ElggEntity
Definition:
ElggEntity.php:52
$entity
$entity
Displays information about the author, the time and the access of the post.
Definition:
contents.php:26
Generated on Wed Dec 4 2024 00:00:22 for Elgg by
1.8.11