PageRenderTime 48ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/sites/all/themes/adaptivetheme/adaptivetheme_admin/templates/page.tpl.php

https://gitlab.com/endomorphosis/superchooseday
PHP | 211 lines | 127 code | 1 blank | 83 comment | 30 complexity | eb112b7dfcaf4ba18465c2358aed3401 MD5 | raw file
  1. <?php // $Id: page.tpl.php,v 1.1.2.4 2010/01/01 21:13:37 jmburnz Exp $
  2. // adaptivethemes.com
  3. /**
  4. * @file page.tpl.php
  5. * Theme implementation to display a single Drupal page for Genesis Subtheme.
  6. *
  7. * Available variables:
  8. *
  9. * General utility variables:
  10. * - $base_path: The base URL path of the Drupal installation. At the very
  11. * least, this will always default to /.
  12. * - $css: An array of CSS files for the current page.
  13. * - $directory: The directory the theme is located in, e.g. themes/garland or
  14. * themes/garland/minelli.
  15. * - $is_front: TRUE if the current page is the front page. Used to toggle the mission statement.
  16. * - $logged_in: TRUE if the user is registered and signed in.
  17. * - $is_admin: TRUE if the user has permission to access administration pages.
  18. *
  19. * Page metadata:
  20. * - $language: (object) The language the site is being displayed in.
  21. * $language->language contains its textual representation.
  22. * $language->dir contains the language direction. It will either be 'ltr' or 'rtl'.
  23. * - $head: Markup for the HEAD (including meta tags, keyword tags, and
  24. * so on).
  25. * - $head_title: A modified version of the page title, for use in the TITLE tag.
  26. * - $styles: Style tags necessary to import all CSS files for the page.
  27. * - $scripts: Script tags necessary to load the JavaScript files and settings
  28. * for the page.
  29. * - $section_class: A CSS class that uses .+ the 1st URL argument, allows for
  30. * themeing site sections based on path.
  31. * - $classes: A set of CSS classes (preprocess $body_classes + Genesis custom classes).
  32. * This contains flags indicating the current layout (multiple columns, single column),
  33. * the current path, whether the user is logged in, and so on.
  34. *
  35. * Site identity:
  36. * - $front_page: The URL of the front page. Use this instead of $base_path,
  37. * when linking to the front page. This includes the language domain or prefix.
  38. * - $site_logo: The preprocessed $logo varaible. Includes the path to the logo image,
  39. * as defined in theme configuration and wrapped in an anchor linking to the homepage.
  40. * - $site_name: The name of the site (preprocessed) wrapped in an anchor linking to the homepage.
  41. * Empty when display has been disabled in theme settings.
  42. * - $site_slogan: The slogan of the site, empty when display has been disabled
  43. * in theme settings.
  44. * - $mission: The text of the site mission, empty when display has been disabled
  45. * in theme settings.
  46. *
  47. * Navigation:
  48. * - $primary_menu: The preprocessed $primary_links (array), an array containing primary
  49. * navigation links for the site, if they have been configured.
  50. * - $secondary_menu: The preprocessed $secondary_links (array), an array containing secondary
  51. * navigation links for the site, if they have been configured.
  52. * - $search_box: HTML to display the search box, empty if search has been disabled.
  53. *
  54. * Page content (in order of occurrance in the default page.tpl.php):
  55. * - $leaderboard: Custom region for displaying content at the top of the page, useful
  56. * for displaying a banner.
  57. * - $header: The header blocks region for display content in the header.
  58. * - $secondary_content: Full width custom region for displaying content between the header
  59. * and the main content columns.
  60. * - $breadcrumb: The breadcrumb trail for the current page.
  61. * - $content_top: A custom region for displaying content above the main content.
  62. * - $title: The page title, for use in the actual HTML content.
  63. * - $help: Dynamic help text, mostly for admin pages.
  64. * - $messages: HTML for status and error messages. Should be displayed prominently.
  65. * - $tabs: Tabs linking to any sub-pages beneath the current page (e.g., the view
  66. * and edit tabs when displaying a node).
  67. * - $content: The main content of the current Drupal page.
  68. * - $content_bottom: A custom region for displaying content above the main content.
  69. * - $left: region for the left sidebar.
  70. * - $right: region for the right sidebar.
  71. * - $tertiary_content: Full width custom region for displaying content between main content
  72. * columns and the footer.
  73. *
  74. * Footer/closing data:
  75. * - $footer : The footer region.
  76. * - $footer_message: The footer message as defined in the admin settings.
  77. * - $feed_icons: A string of all feed icons for the current page.
  78. * - $closure: Final closing markup from any modules that have altered the page.
  79. * This variable should always be output last, after all other dynamic content.
  80. *
  81. * @see template_preprocess()
  82. * @see template_preprocess_page()
  83. * @see genesis_preprocess_page()
  84. */
  85. ?>
  86. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  87. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  88. <head>
  89. <title><?php print $head_title; ?></title>
  90. <?php print $head; ?>
  91. <?php print $styles; ?>
  92. <?php print $layout_settings; ?>
  93. <?php print $scripts; ?>
  94. </head>
  95. <body id="at-admin" class="<?php print $section_class . $classes; ?>">
  96. <div id="wrapper">
  97. <div id="skip-nav" class="element-invisible">
  98. <!-- NEVER use display:none to hide skip links - see http://drupal.org/node/472572 -->
  99. <a href="#main-content"><?php print t('Skip to main content'); ?></a>
  100. </div>
  101. <div id="header"><div class="header-inner clearfix">
  102. <?php if ($primary_menu): ?>
  103. <div id="primary"><div class="primary-inner">
  104. <h2 class="element-invisible"><?php print t('Main menu'); ?></h2>
  105. <?php print $primary_menu; ?> <!-- /primary links menu -->
  106. </div></div>
  107. <?php endif; ?>
  108. <?php if ($linked_site_logo or $linked_site_name or $site_slogan): ?>
  109. <div id="branding">
  110. <?php if ($linked_site_logo or $linked_site_name): ?>
  111. <?php if ($title): ?>
  112. <div class="logo-site-name"><strong>
  113. <?php if ($linked_site_logo): ?><span id="logo"><?php print $linked_site_logo; ?></span><?php endif; ?>
  114. <?php if ($linked_site_name): ?><span id="site-name"><?php print $linked_site_name; ?></span><?php endif; ?>
  115. </strong></div>
  116. <?php else: /* Use h1 when the content title is empty */ ?>
  117. <h1 class="logo-site-name">
  118. <?php if ($linked_site_logo): ?><span id="logo"><?php print $linked_site_logo; ?></span><?php endif; ?>
  119. <?php if ($linked_site_name): ?><span id="site-name"><?php print $linked_site_name; ?></span><?php endif; ?>
  120. </h1>
  121. <?php endif; ?>
  122. <?php endif; ?>
  123. <?php if ($site_slogan): ?>
  124. <div id="site-slogan"><?php print $site_slogan; ?></div> <!-- /slogan -->
  125. <?php endif; ?>
  126. </div> <!-- /branding -->
  127. <?php endif; ?>
  128. <?php if ($search_box): ?>
  129. <div id="search-box"<?php print $toggle_label ?>><?php print $search_box; ?></div> <!-- /search box -->
  130. <?php endif; ?>
  131. <?php if ($header): ?>
  132. <div id="header-region"><?php print $header; ?></div><!-- /header-region -->
  133. <?php endif; ?>
  134. <?php if ($admin_welcome): ?>
  135. <div id="user-date"><?php print $admin_welcome; ?></div> <!-- /admin welcome -->
  136. <?php endif; ?>
  137. <?php if ($admin_user_links): ?>
  138. <div id="user-menu">
  139. <h2 class="element-invisible"><?php print t('User menu'); ?></h2>
  140. <?php print $admin_user_links; ?>
  141. </div> <!-- /admin user link -->
  142. <?php endif; ?>
  143. </div></div> <!-- /header -->
  144. <div id="shadow"></div>
  145. <div id="container">
  146. <?php if ($breadcrumb): ?>
  147. <div id="breadcrumb">
  148. <h2 class="element-invisible"><?php print t('You are here:'); ?></h2>
  149. <?php print $breadcrumb; ?>
  150. </div> <!-- /breadcrumb -->
  151. <?php endif; ?>
  152. <?php if ($messages or $help): ?>
  153. <div id="messages-and-help">
  154. <h2 class="element-invisible"><?php print t('System messages:'); ?></h2>
  155. <?php if ($messages): print $messages; endif; ?>
  156. <?php if ($help): print $help; endif; ?>
  157. </div> <!-- /messages and help -->
  158. <?php endif; ?>
  159. <?php if ($secondary_content): ?>
  160. <div id="secondary-content"><?php print $secondary_content; ?></div> <!-- /secondary-content -->
  161. <?php endif; ?>
  162. <div id="columns"><div class="columns-inner clearfix">
  163. <div id="content-column"><div class="content-inner">
  164. <?php if ($content_top): ?>
  165. <div id="content-top"><?php print $content_top; ?></div> <!-- /content-top -->
  166. <?php endif; ?>
  167. <div id="main-content">
  168. <?php if ($title or $tabs): ?>
  169. <div id="main-content-header">
  170. <?php if ($title): ?><h1 id="page-title"><?php print $title; ?></h1><?php endif; ?> <!-- /page title -->
  171. <?php if ($tabs): ?>
  172. <div class="local-tasks"><?php print $tabs; ?></div> <!-- /tabs -->
  173. <?php endif; ?>
  174. </div>
  175. <?php endif; ?>
  176. <div id="content"><?php print $content; ?></div> <!-- /content -->
  177. </div> <!-- /main-content -->
  178. <?php if ($content_bottom): ?>
  179. <div id="content-bottom"><?php print $content_bottom; ?></div> <!-- /content-bottom -->
  180. <?php endif; ?>
  181. </div></div> <!-- /content-column -->
  182. <?php if ($left): ?>
  183. <div id="sidebar-first" class="sidebar"><?php print $left; ?></div> <!-- /sidebar-left -->
  184. <?php endif; ?>
  185. <?php if ($right): ?>
  186. <div id="sidebar-last" class="sidebar"><?php print $right; ?></div> <!-- /sidebar-right -->
  187. <?php endif; ?>
  188. </div></div> <!-- /columns -->
  189. <?php if ($tertiary_content): ?>
  190. <div id="tertiary-content"><?php print $tertiary_content; ?></div> <!-- /tertiary-content -->
  191. <?php endif; ?>
  192. <?php if ($footer or $footer_message or $feed_icons): ?>
  193. <div id="footer" class="clearfix">
  194. <?php if ($footer): ?>
  195. <div id="footer-region"><?php print $footer; ?></div> <!-- /footer-region -->
  196. <?php endif; ?>
  197. <?php if ($footer_message): ?>
  198. <div id="footer-message"><?php print $footer_message; ?></div> <!-- /footer-message -->
  199. <?php endif; ?>
  200. <?php if ($feed_icons): ?>
  201. <div id="feed-icons"><?php print $feed_icons; ?></div>
  202. <?php endif; ?>
  203. <?php print $attribution; ?>
  204. </div> <!-- /footer -->
  205. <?php endif; ?>
  206. </div> <!-- /container -->
  207. <?php print $closure ?>
  208. </div> <!-- /wrapper -->
  209. </body>
  210. </html>