Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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>
$lang
Definition: html.php:12
get_current_language()
Get the current system/user language or "en".
Definition: languages.php:47
body
Definition: admin.css.php:36
html
Definition: admin.css.php:36
$vars['entity']
elgg module widget elgg head
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:139
$attrs
Definition: html.php:14