Elgg  Version 6.1
contents.php
Go to the documentation of this file.
1 <?php
20 $entity = elgg_extract('entity', $vars);
21 if (!$entity instanceof \ElggEntity) {
22  return;
23 }
24 
25 echo elgg_view('trash/elements/imprint/byline', $vars);
26 echo elgg_view('trash/elements/imprint/time', $vars);
27 echo elgg_view('trash/elements/imprint/actor', $vars);
28 echo elgg_view('trash/elements/imprint/type', $vars);
29 
30 $imprint = elgg_extract('imprint', $vars);
31 if (!empty($imprint)) {
32  foreach ($imprint as $item) {
33  echo elgg_view('trash/elements/imprint/element', $item);
34  }
35 }
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:256
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