Elgg  Version master
briefdescription.php
Go to the documentation of this file.
1 <?php
14 $entity = elgg_extract('entity', $vars);
15 if (!$entity instanceof ElggUser) {
16  return;
17 }
18 
19 $briefdescription = elgg_extract('briefdescription', $vars);
20 if (!isset($briefdescription)) {
21  $briefdescription = $entity->getProfileData('briefdescription');
22 }
23 
25  return;
26 }
27 
28 echo elgg_view('object/elements/imprint/element', [
29  'icon_name' => elgg_extract('briefdescription_icon', $vars, false),
30  'content' => $briefdescription,
31  'class' => 'elgg-listing-briefdescription',
32 ]);
if(!$entity instanceof ElggUser) $briefdescription
$entity
Displays the briefdescription of the user.
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
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$vars
Definition: theme.php:5