Elgg  Version master
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, 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
$entity
Displays information about the author, the time and the access of the post.
Definition: contents.php:26