Project

General

Profile

Download (5.52 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/**
3
 * @file
4
 * Zen theme's 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. $language->dir
11
 *   contains the language direction. It will either be 'ltr' or 'rtl'.
12
 * - $html_attributes: String of attributes for the html element. It can be
13
 *   manipulated through the variable $html_attributes_array from preprocess
14
 *   functions.
15
 * - $html_attributes_array: Array of html attribute values. It is flattened
16
 *   into a string within the variable $html_attributes.
17
 * - $rdf_namespaces: All the RDF namespace prefixes used in the HTML document.
18
 * - $grddl_profile: A GRDDL profile allowing agents to extract the RDF data.
19
 * - $head_title: A modified version of the page title, for use in the TITLE
20
 *   tag.
21
 * - $head_title_array: (array) An associative array containing the string parts
22
 *   that were used to generate the $head_title variable, already prepared to be
23
 *   output as TITLE tag. The key/value pairs may contain one or more of the
24
 *   following, depending on conditions:
25
 *   - title: The title of the current page, if any.
26
 *   - name: The name of the site.
27
 *   - slogan: The slogan of the site, if any, and if there is no title.
28
 * - $head: Markup for the HEAD section (including meta tags, keyword tags, and
29
 *   so on).
30
 * - $default_mobile_metatags: TRUE if default mobile metatags for responsive
31
 *   design should be displayed.
32
 * - $styles: Style tags necessary to import all CSS files for the page.
33
 * - $scripts: Script tags necessary to load the JavaScript files and settings
34
 *   for the page.
35
 * - $skip_link_anchor: The HTML ID of the element that the "skip link" should
36
 *   link to. Defaults to "main-menu".
37
 * - $skip_link_text: The text for the "skip link". Defaults to "Jump to
38
 *   Navigation".
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. It should be placed within the <body> tag. When selecting through CSS
48
 *   it's recommended that you use the body tag, e.g., "body.front". It can be
49
 *   manipulated through the variable $classes_array from preprocess functions.
50
 *   The default values can contain one or more of the following:
51
 *   - front: Page is the home page.
52
 *   - not-front: Page is not the home page.
53
 *   - logged-in: The current viewer is logged in.
54
 *   - not-logged-in: The current viewer is not logged in.
55
 *   - node-type-[node type]: When viewing a single node, the type of that node.
56
 *     For example, if the node is a Blog entry, this would be "node-type-blog".
57
 *     Note that the machine name of the content type will often be in a short
58
 *     form of the human readable label.
59
 *   The following only apply with the default sidebar_first and sidebar_second
60
 *   block regions:
61
 *     - two-sidebars: When both sidebars have content.
62
 *     - no-sidebars: When no sidebar content exists.
63
 *     - one-sidebar and sidebar-first or sidebar-second: A combination of the
64
 *       two classes when only one of the two sidebars have content.
65
 * - $body_background_url: from zen_dataportal theme-settings.php
66
 * - $inline_styles: an array of custom styles for specific elements from zen_dataportal
67
 *    theme-settings.php
68
 *
69
 * @see template_preprocess()
70
 * @see template_preprocess_html()
71
 * @see zen_preprocess_html()
72
 * @see template_process()
73
 */
74
?><!DOCTYPE html>
75
<!--[if IEMobile 7]><html class="iem7" <?php print $html_attributes; ?>><![endif]-->
76
<!--[if lte IE 6]><html class="lt-ie9 lt-ie8 lt-ie7" <?php print $html_attributes; ?>><![endif]-->
77
<!--[if (IE 7)&(!IEMobile)]><html class="lt-ie9 lt-ie8" <?php print $html_attributes; ?>><![endif]-->
78
<!--[if IE 8]><html class="lt-ie9" <?php print $html_attributes; ?>><![endif]-->
79
<!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html <?php print $html_attributes . $rdf_namespaces; ?>><!--<![endif]-->
80

    
81
<head profile="<?php print $grddl_profile; ?>">
82
  <?php print $head; ?>
83
  <title><?php print $head_title; ?></title>
84

    
85
  <?php if ($default_mobile_metatags): ?>
86
    <meta name="MobileOptimized" content="width">
87
    <meta name="HandheldFriendly" content="true">
88
    <meta name="viewport" content="width=device-width">
89
  <?php endif; ?>
90
  <meta http-equiv="cleartype" content="on">
91

    
92
  <?php print $styles; ?>
93
  <?php print '<style type="text/css">'. "\n" . implode("\n", $inline_styles) . "\n</style>;" ?>
94
  <?php print $scripts; ?>
95
  <?php if ($add_respond_js): ?>
96
    <!--[if lt IE 9]>
97
    <script src="<?php print $base_path . $path_to_zen; ?>/js/html5-respond.js"></script>
98
    <![endif]-->
99
  <?php elseif ($add_html5_shim): ?>
100
    <!--[if lt IE 9]>
101
    <script src="<?php print $base_path . $path_to_zen; ?>/js/html5.js"></script>
102
    <![endif]-->
103
  <?php endif; ?>
104
</head>
105
<body class="<?php print $classes; ?>" <?php print $attributes;?>>
106
  <?php if ($skip_link_text && $skip_link_anchor): ?>
107
    <p id="skip-link">
108
      <a href="#<?php print $skip_link_anchor; ?>" class="element-invisible element-focusable"><?php print $skip_link_text; ?></a>
109
    </p>
110
  <?php endif; ?>
111
  <?php print $page_top; ?>
112
  <?php print $page; ?>
113
  <?php print $page_bottom; ?>
114
</body>
115
</html>
(2-2/3)