Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. <?php
  2. /**
  3. * @file
  4. * Zen theme's implementation to display a single Drupal page.
  5. *
  6. * Available variables:
  7. *
  8. * General utility variables:
  9. * - $base_path: The base URL path of the Drupal installation. At the very
  10. * least, this will always default to /.
  11. * - $directory: The directory the template is located in, e.g. modules/system
  12. * or themes/garland.
  13. * - $is_front: TRUE if the current page is the front page.
  14. * - $logged_in: TRUE if the user is registered and signed in.
  15. * - $is_admin: TRUE if the user has permission to access administration pages.
  16. *
  17. * Site identity:
  18. * - $front_page: The URL of the front page. Use this instead of $base_path,
  19. * when linking to the front page. This includes the language domain or
  20. * prefix.
  21. * - $logo: The path to the logo image, as defined in theme configuration.
  22. * - $site_name: The name of the site, empty when display has been disabled
  23. * in theme settings.
  24. * - $site_slogan: The slogan of the site, empty when display has been disabled
  25. * in theme settings.
  26. *
  27. * Navigation:
  28. * - $main_menu (array): An array containing the Main menu links for the
  29. * site, if they have been configured.
  30. * - $secondary_menu (array): An array containing the Secondary menu links for
  31. * the site, if they have been configured.
  32. * - $secondary_menu_heading: The title of the menu used by the secondary links.
  33. * - $breadcrumb: The breadcrumb trail for the current page.
  34. *
  35. * Page content (in order of occurrence in the default page.tpl.php):
  36. * - $title_prefix (array): An array containing additional output populated by
  37. * modules, intended to be displayed in front of the main title tag that
  38. * appears in the template.
  39. * - $title: The page title, for use in the actual HTML content.
  40. * - $title_suffix (array): An array containing additional output populated by
  41. * modules, intended to be displayed after the main title tag that appears in
  42. * the template.
  43. * - $messages: HTML for status and error messages. Should be displayed
  44. * prominently.
  45. * - $tabs (array): Tabs linking to any sub-pages beneath the current page
  46. * (e.g., the view and edit tabs when displaying a node).
  47. * - $action_links (array): Actions local to the page, such as 'Add menu' on the
  48. * menu administration interface.
  49. * - $feed_icons: A string of all feed icons for the current page.
  50. * - $node: The node object, if there is an automatically-loaded node
  51. * associated with the page, and the node ID is the second argument
  52. * in the page's path (e.g. node/12345 and node/12345/revisions, but not
  53. * comment/reply/12345).
  54. *
  55. * Regions:
  56. * - $page['help']: Dynamic help text, mostly for admin pages.
  57. * - $page['highlighted']: Items for the highlighted content region.
  58. * - $page['content']: The main content of the current page.
  59. * - $page['sidebar_first']: Items for the first sidebar.
  60. * - $page['sidebar_second']: Items for the second sidebar.
  61. * - $page['header']: Items for the header region.
  62. * - $page['footer']: Items for the footer region.
  63. * - $page['bottom']: Items to appear at the bottom of the page below the footer.
  64. *
  65. * @see template_preprocess()
  66. * @see template_preprocess_page()
  67. * @see zen_preprocess_page()
  68. * @see template_process()
  69. */
  70. ?>
  71. <div id="page-wrapper">
  72. <div id="container">
  73. <?php if ($page['header']): ?>
  74. <?php print render($page['header']); ?>
  75. <?php endif; ?>
  76. <div id="content-wrapper" class="clearfix">
  77. <div id="content">
  78. <?php print render($title_prefix); ?>
  79. <?php if ($title): ?>
  80. <h1 class="title" id="page-title"><?php print $title; ?></h1>
  81. <?php endif; ?>
  82. <?php print render($title_suffix); ?>
  83. <?php print render($page['content']); ?>
  84. </div>
  85. <?php if ($page['sidebar_first']): ?>
  86. <?php print render($page['sidebar_first']); ?>
  87. <?php endif; ?>
  88. </div>
  89. <?php if ($page['footer']): ?>
  90. <?php print render($page['footer']); ?>
  91. <?php endif; ?>
  92. </div>
  93. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement