Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
object
elements
imprint
contents.php
Go to the documentation of this file.
1
<?php
26
$entity
=
elgg_extract
(
'entity'
,
$vars
);
27
if
(!
$entity
instanceof
ElggEntity
) {
28
return
;
29
}
30
31
echo
elgg_view
(
'object/elements/imprint/byline'
,
$vars
);
32
echo
elgg_view
(
'object/elements/imprint/time'
,
$vars
);
33
echo
elgg_view
(
'object/elements/imprint/access'
,
$vars
);
34
35
$imprint
=
elgg_extract
(
'imprint'
,
$vars
);
36
if
(!empty(
$imprint
)) {
37
foreach
(
$imprint
as
$item
) {
38
echo
elgg_view
(
'object/elements/imprint/element'
, $item);
39
}
40
}
$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:254
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 Sat Dec 21 2024 00:02:53 for Elgg by
1.8.11