Elgg  Version 3.0
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 
15  'class' => 'elgg-listing-full-attachments',
16 ], $attachments);
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
elgg echo
Translates a string.
Definition: languages.js:43
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:1131
$attachments
Outputs attachments.
Definition: attachments.php:9
$vars['type']
Definition: save.php:11