Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
elements
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
13
$lang
=
get_current_language
();
14
15
$default_html_attrs
= [
16
'xmlns'
=>
'http://www.w3.org/1999/xhtml'
,
17
'xml:lang'
=>
$lang
,
18
'lang'
=>
$lang
,
19
];
20
$html_attrs
=
elgg_extract
(
'html_attrs'
,
$vars
, []);
21
$html_attrs
= array_merge(
$default_html_attrs
,
$html_attrs
);
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
elgg_set_http_header($header, $replace=true)
Set a response HTTP header.
Definition:
elgglib.php:57
$lang
$lang
Definition:
html.php:13
get_current_language
get_current_language()
Get the current system/user language or "en".
Definition:
languages.php:47
$body_attrs
$body_attrs
Definition:
html.php:23
$default_html_attrs
$default_html_attrs
Definition:
html.php:15
elgg_extract
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
$vars['type']
Definition:
save.php:11
$html_attrs
$html_attrs
Definition:
html.php:20
Generated on Fri Feb 26 2021 00:00:23 for Elgg by
1.8.11