root / drupal7 / sites / all / themes / bootstrap / templates / system / html.tpl.php @ 7547bb19
1 | 87dbc3bf | Benjamin Luce | <?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 | caf16a48 | Assos Assos | * - $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 | 87dbc3bf | Benjamin Luce | * - $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 | caf16a48 | Assos Assos | * @ingroup templates
|
55 | 87dbc3bf | Benjamin Luce | */
|
56 | caf16a48 | Assos Assos | ?><!DOCTYPE html> |
57 | <html<?php print $html_attributes;?><?php print $rdf_namespaces;?>> |
||
58 | <head>
|
||
59 | <link rel="profile" href="<?php print $grddl_profile; ?>" /> |
||
60 | 87dbc3bf | Benjamin Luce | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
61 | <?php print $head; ?> |
||
62 | <title><?php print $head_title; ?></title> |
||
63 | <?php print $styles; ?> |
||
64 | <!-- HTML5 element support for IE6-8 -->
|
||
65 | <!--[if lt IE 9]>
|
||
66 | 4eeb3b46 | Assos Assos | <script src="https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
|
67 | 87dbc3bf | Benjamin Luce | <![endif]-->
|
68 | <?php print $scripts; ?> |
||
69 | </head>
|
||
70 | caf16a48 | Assos Assos | <body<?php print $body_attributes; ?>> |
71 | 87dbc3bf | Benjamin Luce | <div id="skip-link"> |
72 | <a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a> |
||
73 | </div>
|
||
74 | <?php print $page_top; ?> |
||
75 | <?php print $page; ?> |
||
76 | <?php print $page_bottom; ?> |
||
77 | </body>
|
||
78 | </html> |