Elgg  Version 3.0
html.php
Go to the documentation of this file.
1 <?php
10 // Set the content type
11 elgg_set_http_header("Content-type: text/html; charset=UTF-8");
12 
14 
16  'xmlns' => 'http://www.w3.org/1999/xhtml',
17  'xml:lang' => $lang,
18  'lang' => $lang,
19 ];
20 $html_attrs = elgg_extract('html_attrs', $vars, []);
22 
23 $body_attrs = elgg_extract('body_attrs', $vars, []);
24 ?>
25 <!DOCTYPE html>
26 <html <?= elgg_format_attributes($html_attrs) ?>>
27  <head>
28  <?= elgg_extract('head', $vars, '') ?>
29  </head>
30  <body <?= elgg_format_attributes($body_attrs) ?>>
31  <?= elgg_extract('body', $vars, '') ?>
32  </body>
33 </html>
elgg_set_http_header($header, $replace=true)
Set a response HTTP header.
Definition: elgglib.php:57
$lang
Definition: html.php:13
get_current_language()
Get the current system/user language or "en".
Definition: languages.php:47
$body_attrs
Definition: html.php:23
$default_html_attrs
Definition: html.php:15
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$vars['type']
Definition: save.php:11
$html_attrs
Definition: html.php:20