Elgg  Version 5.1
img.php
Go to the documentation of this file.
1 <?php
10 if (empty($src)) {
11  return;
12 }
13 
14 if (!isset($vars['alt'])) {
15  elgg_log('The view output/img requires that the alternate text be set.', 'NOTICE');
16 }
17 
19 
20 echo elgg_format_element('img', $vars);
$src
Elgg image view.
Definition: img.php:9
if(empty($src)) if(!isset($vars['alt'])) $vars['src']
Definition: img.php:18
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_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
Definition: elgglib.php:86
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145
elgg_normalize_url(string $url)
Definition: output.php:163