Projet

Général

Profil

Paste
Télécharger (3,69 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / adaptivetheme / at_core / templates / html.tpl.php @ 74f6bef0

1
<?php
2
/**
3
 * @file
4
 * Adaptivetheme implementation to display the basic html structure of a single
5
 * Drupal page.
6
 *
7
 * Adaptivetheme Variables:
8
 * - $html_attributes: structure attributes, includes the lang and dir attributes
9
 *   by default, use $vars['html_attributes_array'] to add attributes in preprcess
10
 * - $polyfills: prints IE conditional polyfill scripts enabled via theme
11
 *   settings.
12
 * - $skip_link_target: prints an ID for the skip navigation target, set in
13
 *   theme settings.
14
 * - $is_mobile: Mixed, requires the Mobile Detect or Browscap module to return
15
 *   TRUE for mobile.  Note that tablets are also considered mobile devices.
16
 *   Returns NULL if the feature could not be detected.
17
 * - $is_tablet: Mixed, requires the Mobile Detect to return TRUE for tablets.
18
 *   Returns NULL if the feature could not be detected.
19
 *
20
 * Available Variables:
21
 * - $css: An array of CSS files for the current page.
22
 * - $language: (object) The language the site is being displayed in.
23
 *   $language->language contains its textual representation.
24
 *   $language->dir contains the language direction. It will either be 'ltr' or 'rtl'.
25
 * - $rdf_namespaces: All the RDF namespace prefixes used in the HTML document.
26
 * - $grddl_profile: A GRDDL profile allowing agents to extract the RDF data.
27
 * - $head_title: A modified version of the page title, for use in the TITLE
28
 *   tag.
29
 * - $head_title_array: (array) An associative array containing the string parts
30
 *   that were used to generate the $head_title variable, already prepared to be
31
 *   output as TITLE tag. The key/value pairs may contain one or more of the
32
 *   following, depending on conditions:
33
 *   - title: The title of the current page, if any.
34
 *   - name: The name of the site.
35
 *   - slogan: The slogan of the site, if any, and if there is no title.
36
 * - $head: Markup for the HEAD section (including meta tags, keyword tags, and
37
 *   so on).
38
 * - $styles: Style tags necessary to import all CSS files for the page.
39
 * - $scripts: Script tags necessary to load the JavaScript files and settings
40
 *   for the page.
41
 * - $page_top: Initial markup from any modules that have altered the
42
 *   page. This variable should always be output first, before all other dynamic
43
 *   content.
44
 * - $page: The rendered page content.
45
 * - $page_bottom: Final closing markup from any modules that have altered the
46
 *   page. This variable should always be output last, after all other dynamic
47
 *   content.
48
 * - $classes String of classes that can be used to style contextually through
49
 *   CSS.
50
 *
51
 * Notes:
52
 * - Skip link "nocontent" class is for exluding the element from inclusion in
53
 *   a Google Custom Search index - http://www.google.com/cse
54
 *
55
 * @see template_preprocess()
56
 * @see template_preprocess_html()
57
 * @see template_process()
58
 * @see adaptivetheme_preprocess_html()
59
 * @see adaptivetheme_process_html()
60
 */
61
?><!DOCTYPE html>
62
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7"<?php print $html_attributes; ?>><![endif]-->
63
<!--[if IE 7]><html class="lt-ie9 lt-ie8"<?php print $html_attributes; ?>><![endif]-->
64
<!--[if IE 8]><html class="lt-ie9"<?php print $html_attributes; ?>><![endif]-->
65
<!--[if gt IE 8]><!--><html<?php print $html_attributes . $rdf_namespaces; ?>><!--<![endif]-->
66
<head>
67
<?php print $head; ?>
68
<title><?php print $head_title; ?></title>
69
<?php print $styles; ?>
70
<?php print $scripts; ?>
71
<?php print $polyfills; ?>
72
</head>
73
<body class="<?php print $classes; ?>"<?php print $attributes; ?>>
74
  <div id="skip-link" class="nocontent">
75
    <a href="<?php print $skip_link_target; ?>" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
76
  </div>
77
  <?php print $page_top; ?>
78
  <?php print $page; ?>
79
  <?php print $page_bottom; ?>
80
</body>
81
</html>