html.tpl.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * @file
  4. * html5_tools module implementation to display the basic html structure of a single
  5. * Drupal page.
  6. *
  7. * HTML5 Tools Variables:
  8. * - $rdf_header: The HTML5 + RDFA header if the rdf module is enabled, if not it is
  9. * an empty string to allow for simple print statement in the template file.
  10. * - $rdf_profile: The rdf profile string if the rdf module is enabled, if not it is
  11. * an empty string to allow for simple print statement in the template file.
  12. * - $html5shiv: An IE conditional comment for browsers below IE9, This already
  13. * contains the conditional comment tag, so you only need to print the variable.
  14. * The file contains the html5shiv, innerShiv, an a modified version of
  15. * Drupal.ajax.prototype.commands.insert to process html5 elements added on the
  16. * page via drupal ajax.
  17. * - $html_attributes: String of attributes for the html element. It can be
  18. * manipulated through the variable $html_attributes_array from preprocess
  19. * functions.
  20. * - $html_attributes_array: Array of html attribute values. It is flattened
  21. * into a string within the variable $html_attributes.
  22. *
  23. * Core Variables:
  24. * - $css: An array of CSS files for the current page.
  25. * - $language: (object) The language the site is being displayed in.
  26. * $language->language contains its textual representation.
  27. * $language->dir contains the language direction. It will either be 'ltr' or 'rtl'.
  28. * - $rdf_namespaces: All the RDF namespace prefixes used in the HTML document.
  29. * - $grddl_profile: A GRDDL profile allowing agents to extract the RDF data.
  30. * - $head_title: A modified version of the page title, for use in the TITLE
  31. * tag.
  32. * - $head_title_array: (array) An associative array containing the string parts
  33. * that were used to generate the $head_title variable, already prepared to be
  34. * output as TITLE tag. The key/value pairs may contain one or more of the
  35. * following, depending on conditions:
  36. * - title: The title of the current page, if any.
  37. * - name: The name of the site.
  38. * - slogan: The slogan of the site, if any, and if there is no title.
  39. * - $head: Markup for the HEAD section (including meta tags, keyword tags, and
  40. * so on).
  41. * - $styles: Style tags necessary to import all CSS files for the page.
  42. * - $scripts: Script tags necessary to load the JavaScript files and settings
  43. * for the page.
  44. * - $page_top: Initial markup from any modules that have altered the
  45. * page. This variable should always be output first, before all other dynamic
  46. * content.
  47. * - $page: The rendered page content.
  48. * - $page_bottom: Final closing markup from any modules that have altered the
  49. * page. This variable should always be output last, after all other dynamic
  50. * content.
  51. * - $classes String of classes that can be used to style contextually through
  52. * CSS.
  53. *
  54. * @see html5_tools_process_html()
  55. */
  56. ?><!doctype html<?php print $rdf_header; ?>>
  57. <html lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces; ?><?php print $html_attributes; ?>>
  58. <head<?php print $rdf_profile?>>
  59. <?php print $head; ?>
  60. <title><?php print $head_title; ?></title>
  61. <?php print $styles; ?>
  62. <?php print $scripts; ?>
  63. </head>
  64. <body class="<?php print $classes; ?>" <?php print $attributes;?>>
  65. <div id="skip-link">
  66. <a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
  67. </div>
  68. <?php print $page_top; ?>
  69. <?php print $page; ?>
  70. <?php print $page_bottom; ?>
  71. </body>
  72. </html>