Elgg  Version 4.3
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 }
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
$entity
Displays information about the author, the time and the access of the post.
Definition: contents.php:26
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179