Elgg  Version master
contents.php
Go to the documentation of this file.
1 <?php
12 $entity = elgg_extract('entity', $vars);
13 if (!$entity instanceof ElggUser) {
14  return;
15 }
16 
17 echo elgg_view('user/elements/imprint/location', $vars);
18 echo elgg_view('user/elements/imprint/briefdescription', $vars);
19 
20 $imprint = elgg_extract('imprint', $vars);
21 if (!empty($imprint)) {
22  foreach ($imprint as $item) {
23  echo elgg_view('object/elements/imprint/element', $item);
24  }
25 }
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