Elgg  Version master
imprint.php
Go to the documentation of this file.
1 <?php
8 $entity = elgg_extract('entity', $vars);
9 if (!$entity instanceof \ElggEntity) {
10  return;
11 }
12 
13 $imprint = elgg_view('trash/elements/imprint/contents', $vars);
15  return;
16 }
17 
18 echo elgg_format_element('div', [
19  'class' => 'elgg-listing-imprint',
20 ], $imprint);
$entity
Displays information about the author, the time and the access of the post.
Definition: imprint.php:8
elgg_is_empty($value)
Check if a value isn&#39;t empty, but allow 0 and &#39;0&#39;.
Definition: input.php:176
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
if(!$annotation instanceof ElggAnnotation) $imprint
Definition: imprint.php:13
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$vars
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145