Project

General

Profile

Paste
Download (3.4 KB) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / themes / bootstrap / templates / system / html.tpl.php @ 1f623f01

1
<?php
2
/**
3
 * @file
4
 * Default theme implementation to display the basic html structure of a single
5
 * Drupal page.
6
 *
7
 * Variables:
8
 * - $css: An array of CSS files for the current page.
9
 * - $language: (object) The language the site is being displayed in.
10
 *   $language->language contains its textual representation.
11
 *   $language->dir contains the language direction. It will either be 'ltr' or
12
 *   'rtl'.
13
 * - $html_attributes:  String of attributes for the html element. It can be
14
 *   manipulated through the variable $html_attributes_array from preprocess
15
 *   functions.
16
 * - $html_attributes_array: An array of attribute values for the HTML element.
17
 *   It is flattened into a string within the variable $html_attributes.
18
 * - $body_attributes:  String of attributes for the BODY element. It can be
19
 *   manipulated through the variable $body_attributes_array from preprocess
20
 *   functions.
21
 * - $body_attributes_array: An array of attribute values for the BODY element.
22
 *   It is flattened into a string within the variable $body_attributes.
23
 * - $rdf_namespaces: All the RDF namespace prefixes used in the HTML document.
24
 * - $grddl_profile: A GRDDL profile allowing agents to extract the RDF data.
25
 * - $head_title: A modified version of the page title, for use in the TITLE
26
 *   tag.
27
 * - $head_title_array: (array) An associative array containing the string parts
28
 *   that were used to generate the $head_title variable, already prepared to be
29
 *   output as TITLE tag. The key/value pairs may contain one or more of the
30
 *   following, depending on conditions:
31
 *   - title: The title of the current page, if any.
32
 *   - name: The name of the site.
33
 *   - slogan: The slogan of the site, if any, and if there is no title.
34
 * - $head: Markup for the HEAD section (including meta tags, keyword tags, and
35
 *   so on).
36
 * - $styles: Style tags necessary to import all CSS files for the page.
37
 * - $scripts: Script tags necessary to load the JavaScript files and settings
38
 *   for the page.
39
 * - $page_top: Initial markup from any modules that have altered the
40
 *   page. This variable should always be output first, before all other dynamic
41
 *   content.
42
 * - $page: The rendered page content.
43
 * - $page_bottom: Final closing markup from any modules that have altered the
44
 *   page. This variable should always be output last, after all other dynamic
45
 *   content.
46
 * - $classes String of classes that can be used to style contextually through
47
 *   CSS.
48
 *
49
 * @see bootstrap_preprocess_html()
50
 * @see template_preprocess()
51
 * @see template_preprocess_html()
52
 * @see template_process()
53
 *
54
 * @ingroup templates
55
 */
56
?><!DOCTYPE html>
57
<html<?php print $html_attributes;?><?php print $rdf_namespaces;?>>
58
<head>
59
  <link rel="profile" href="<?php print $grddl_profile; ?>" />
60
  <meta charset="utf-8">
61
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
62
  <?php print $head; ?>
63
  <title><?php print $head_title; ?></title>
64
  <?php print $styles; ?>
65
  <!-- HTML5 element support for IE6-8 -->
66
  <!--[if lt IE 9]>
67
    <script src="https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
68
  <![endif]-->
69
  <?php print $scripts; ?>
70
</head>
71
<body<?php print $body_attributes; ?>>
72
  <div id="skip-link">
73
    <a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
74
  </div>
75
  <?php print $page_top; ?>
76
  <?php print $page; ?>
77
  <?php print $page_bottom; ?>
78
</body>
79
</html>