Elgg  Version 1.9
img.php
Go to the documentation of this file.
1 <?php
9 if (!isset($vars['alt'])) {
10  elgg_log("The view output/img requires that the alternate text be set.", 'NOTICE');
11 }
12 
13 $vars['src'] = elgg_normalize_url($vars['src']);
14 $vars['src'] = elgg_format_url($vars['src']);
15 
17 echo "<img $attributes/>";
elgg_normalize_url($url)
Definition: output.php:290
$attributes
Definition: img.php:16
if(!isset($vars['alt'])) $vars['src']
Elgg image view.
Definition: img.php:13
elgg echo
Translates a string.
Definition: languages.js:43
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
Definition: output.php:118
elgg_log($message, $level= 'NOTICE')
Display or log a message.
Definition: elgglib.php:1083
elgg_format_url($url)
Handles formatting of ampersands in urls.
Definition: output.php:105