Elgg  Version 3.0
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 
$src
Elgg image view.
Definition: img.php:9
elgg_normalize_url($url)
Definition: output.php:186
if(empty($src)) if(!isset($vars['alt'])) $vars['src']
Definition: img.php:18
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
Definition: elgglib.php:786
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