Elgg  Version 4.3
content.php
Go to the documentation of this file.
1 <?php
9 $content = elgg_extract('content', $vars, '');
10 if ($content === false) {
11  return;
12 }
13 
14 $annotation = elgg_extract('annotation', $vars);
15 if ($content === '' && $annotation instanceof ElggAnnotation) {
16  $content = $annotation->value;
17 }
18 
20  return;
21 }
22 
24  'class' => [
25  'elgg-listing-summary-content',
26  'elgg-content',
27  ]
28 ], $content);
if($content===false) $annotation
Definition: content.php:14
elgg_is_empty($value)
Check if a value isn&#39;t empty, but allow 0 and &#39;0&#39;.
Definition: input.php:179
$content
Outputs annotation summary content.
Definition: content.php:9
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:135
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24