Elgg  Version 1.11
iframe.php
Go to the documentation of this file.
1 <?php
11 if (!isset($vars['src']) && isset($vars['value'])) {
12  elgg_deprecated_notice('$vars[\'src\'] deprecated in output/iframe for $vars[\'src\']', 1.9);
13  $src = $vars['value'];
14 } else {
15  $src = elgg_extract('src', $vars);
16 }
17 
20 
22 echo "<iframe $attributes></iframe>";
elgg_normalize_url($url)
Definition: output.php:311
$src
Definition: iframe.php:18
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1246
elgg echo
Translates a string.
Definition: languages.js:43
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
Definition: elgglib.php:1006
$vars['src']
Definition: iframe.php:19
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
Definition: output.php:139
elgg_format_url($url)
Handles formatting of ampersands in urls.
Definition: output.php:105
$attributes
Definition: iframe.php:21