Elgg  Version 2.3
html.php
Go to the documentation of this file.
1 <?php
9 // Set the content type
10 elgg_set_http_header("Content-type: text/html; charset=UTF-8");
11 
13 
14 $attrs = "";
15 if (isset($vars['body_attrs'])) {
16  $attrs = elgg_format_attributes($vars['body_attrs']);
17  if ($attrs) {
18  $attrs = " $attrs";
19  }
20 }
21 ?>
22 <!DOCTYPE html>
23 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>">
24  <head>
25  <?php echo $vars["head"]; ?>
26  </head>
27  <body<?php echo $attrs ?>>
28  <?php echo $vars["body"]; ?>
29  </body>
30 </html>
elgg_set_http_header($header, $replace=true)
Set a response HTTP header.
Definition: elgglib.php:114
$lang
Definition: html.php:12
get_current_language()
Get the current system/user language or "en".
Definition: languages.php:47
clearfix elgg elgg elgg elgg page elgg page elgg head
Definition: admin.css.php:127
html
Definition: admin.css.php:36
$vars['entity']
elgg echo
Translates a string.
Definition: languages.js:48
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed HTML/XML attributes Returns a concatenated...
Definition: output.php:129
$attrs
Definition: html.php:14
body
Definition: admin.css.php:36