Elgg  Version master
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 }
if(!$items) $item
Definition: delete.php:13
Entity Annotation.
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(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$imprint
Definition: contents.php:18
$vars
Definition: theme.php:5
$annotation
Displays imprint contents.
Definition: contents.php:10