iframe.php 518 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Display a page in an embedded window
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. *
  8. * @uses $vars['src'] Source URL of the page
  9. */
  10. if (!isset($vars['src']) && isset($vars['value'])) {
  11. elgg_deprecated_notice('$vars[\'src\'] deprecated in output/iframe for $vars[\'src\']', 1.9);
  12. $src = $vars['value'];
  13. } else {
  14. $src = elgg_extract('src', $vars);
  15. }
  16. $src = elgg_normalize_url($src);
  17. $vars['src'] = elgg_format_url($src);
  18. $attributes = elgg_format_attributes($vars);
  19. echo "<iframe $attributes></iframe>";