Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed HTML/XML attributes Returns a concatenated...
Definition: output.php:139
elgg_log($message, $level= 'NOTICE')
Display or log a message.
Definition: elgglib.php:1000
elgg_format_url($url)
Handles formatting of ampersands in urls.
Definition: output.php:91