Elgg  Version 4.3
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 "en".
Definition: languages.php:29
$html_attrs
Definition: html.php:20
elgg_set_http_header($header, $replace=true)
Set a response HTTP header.
Definition: elgglib.php:26
$default_html_attrs
Definition: html.php:15
if(!empty($unknowns)) $body
Definition: html.php:79
$body_attrs
Definition: html.php:23
$lang
Definition: html.php:13
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:135
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:547
$head
Definition: html.php:11
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24