Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
annotation
elements
imprint
contents.php
Go to the documentation of this file.
1
<?php
10
$annotation
=
elgg_extract
(
'annotation'
,
$vars
);
11
if
(!
$annotation
instanceof
ElggAnnotation
) {
12
return
;
13
}
14
15
echo
elgg_view
(
'annotation/elements/imprint/byline'
,
$vars
);
16
echo
elgg_view
(
'annotation/elements/imprint/time'
,
$vars
);
17
18
$imprint
=
elgg_extract
(
'imprint'
,
$vars
);
19
if
(!empty(
$imprint
)) {
20
foreach
(
$imprint
as
$item
) {
21
echo
elgg_view
(
'object/elements/imprint/element'
, $item);
22
}
23
}
$item
if(!$items) $item
Definition:
delete.php:13
ElggAnnotation
Entity Annotation.
Definition:
ElggAnnotation.php:9
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
$annotation
$annotation
Displays imprint contents.
Definition:
contents.php:10
Generated on Wed Dec 4 2024 00:00:22 for Elgg by
1.8.11