Elgg  Version 6.1
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 <?php
27 
28 $head = elgg_format_element('head', [], elgg_extract('head', $vars, ''));
30 
elgg_get_current_language()
Get the current system/user language or &#39;en&#39;.
Definition: languages.php:27
$html_attrs
Definition: html.php:20
$default_html_attrs
Definition: html.php:15
if(!empty($unknowns)) $body
Definition: html.php:79
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:256
elgg_set_http_header(string $header, bool $replace=true)
Set a response HTTP header.
Definition: elgglib.php:26
$body_attrs
Definition: html.php:23
$lang
Definition: html.php:13
$head
Definition: html.php:11
$vars['head']
Definition: html.php:24
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145