Elgg  Version master
attachments.php
Go to the documentation of this file.
1 <?php
2 
9 $attachments = elgg_extract('attachments', $vars);
10 if (!$attachments) {
11  return;
12 }
13 
14 echo elgg_format_element('div', ['class' => 'elgg-listing-full-attachments'], $attachments);
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
$vars
Definition: theme.php:5
$attachments
Outputs attachments.
Definition: attachments.php:9
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145