Elgg  Version 1.9
html.php
Go to the documentation of this file.
1 <?php
9 // Set the content type
10 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>
get_current_language()
Detect the current language being used by the current site or logged in user.
Definition: languages.php:109
body
Definition: admin.php:36
$lang
Definition: html.php:12
clearfix elgg elgg elgg elgg page elgg page elgg head
Definition: admin.php:127
html
Definition: admin.php:36
elgg echo
Translates a string.
Definition: languages.js:43
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
Definition: output.php:118
$attrs
Definition: html.php:14
clearfix elgg elgg elgg elgg page header
Definition: admin.php:127
if(file_exists($welcome)) $vars
Definition: upgrade.php:93