Elgg  Version 4.3
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
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
$imprint
Definition: contents.php:18
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179
$annotation
Displays imprint contents.
Definition: contents.php:10