html.php 731 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Page shell for all HTML pages
  4. *
  5. * @uses $vars['head'] Parameters for the <head> element
  6. * @uses $vars['body_attrs'] Attributes of the <body> tag
  7. * @uses $vars['body'] The main content of the page
  8. */
  9. // Set the content type
  10. header("Content-type: text/html; charset=UTF-8");
  11. $lang = get_current_language();
  12. $attrs = "";
  13. if (isset($vars['body_attrs'])) {
  14. $attrs = elgg_format_attributes($vars['body_attrs']);
  15. if ($attrs) {
  16. $attrs = " $attrs";
  17. }
  18. }
  19. ?>
  20. <!DOCTYPE html>
  21. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>">
  22. <head>
  23. <?php echo $vars["head"]; ?>
  24. </head>
  25. <body<?php echo $attrs ?>>
  26. <?php echo $vars["body"]; ?>
  27. </body>
  28. </html>