Elgg  Version master
contents.php
Go to the documentation of this file.
1 <?php
10 $relationship = elgg_extract('relationship', $vars);
11 if (!$relationship instanceof ElggRelationship) {
12  return;
13 }
14 
15 echo elgg_view('relationship/elements/imprint/time', $vars);
16 
17 $imprint = elgg_extract('imprint', $vars);
18 if (!empty($imprint)) {
19  foreach ($imprint as $item) {
20  echo elgg_view('object/elements/imprint/element', $item);
21  }
22 }
if(!$items) $item
Definition: delete.php:13
$relationship
Displays the imprint for the relationship.
Definition: contents.php:10
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