PageRenderTime 40ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 1ms

/profiles/drupal_commons/themes/commons_environs/page.tpl.php

https://gitlab.com/endomorphosis/aegir
PHP | 168 lines | 142 code | 25 blank | 1 comment | 14 complexity | 94964a0b397232c1f91e3ae99b478802 MD5 | raw file
  1. <?php
  2. // $Id: page.tpl.php 6635 2010-03-01 00:39:49Z chris $
  3. $curr_contexts = context_active_contexts();
  4. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>">
  6. <head>
  7. <title><?php print $head_title; ?></title>
  8. <?php print $head; ?>
  9. <?php print $styles; ?>
  10. <?php print $setting_styles; ?>
  11. <!--[if IE 8]>
  12. <?php print $ie8_styles; ?>
  13. <![endif]-->
  14. <!--[if IE 7]>
  15. <?php print $ie7_styles; ?>
  16. <![endif]-->
  17. <!--[if lte IE 6]>
  18. <?php print $ie6_styles; ?>
  19. <![endif]-->
  20. <?php print $local_styles; ?>
  21. <?php print $scripts; ?>
  22. </head>
  23. <body id="<?php print $body_id; ?>" class="<?php print $body_classes; ?>">
  24. <div id="left-background"> </div><div id="right-background"> </div>
  25. <div id="page" class="page">
  26. <div id="page-inner" class="page-inner">
  27. <div id="skip">
  28. <a href="#main-content-area"><?php print t('Skip to Main Content Area'); ?></a>
  29. </div>
  30. <!-- header-top row: width = grid_width -->
  31. <?php print theme('grid_row', $header_top, 'header-top', 'full-width', $grid_width); ?>
  32. <!-- header-group row: width = grid_width -->
  33. <div id="header-group-wrapper" class="header-group-wrapper full-width">
  34. <div id="header-group" class="header-group row <?php print $grid_width; ?>">
  35. <div id="header-group-inner" class="header-group-inner inner clearfix">
  36. <?php print theme('grid_block', theme('links', $secondary_links), 'secondary-menu'); ?>
  37. <?php print theme('grid_block', $search_box, 'search-box'); ?>
  38. <div id="header-region" class="header-region block">
  39. <div id="header-region-inner" class="header-region-inner inner">
  40. <?php print $header; ?>
  41. </div><!-- /header-region-inner -->
  42. </div><!-- /header-region -->
  43. <?php if ($logo || $site_name || $site_slogan): ?>
  44. <div id="header-site-info" class="header-site-info block">
  45. <?php print '<img src="' . base_path() . path_to_theme() . '/images/border-orange-left.png" class="border-orange-left"/>' ?>
  46. <?php print '<img src="' . base_path() . path_to_theme() . '/images/border-orange-right.png" class="border-orange-right"/>' ?>
  47. <div id="header-site-info-inner" class="header-site-info-inner inner">
  48. <?php if ($logo): ?>
  49. <div id="logo">
  50. <a href="<?php print check_url($front_page); ?>" title="<?php print t('Home'); ?>"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a>
  51. </div>
  52. <?php endif; ?>
  53. <?php if ($site_name || $site_slogan): ?>
  54. <div id="site-name-wrapper" class="clearfix">
  55. <?php if ($site_name): ?>
  56. <span id="site-name"><a href="<?php print check_url($front_page); ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></span>
  57. <?php endif; ?>
  58. <?php if ($site_slogan): ?>
  59. <span id="slogan"><?php print $site_slogan; ?></span>
  60. <?php endif; ?>
  61. </div><!-- /site-name-wrapper -->
  62. <?php endif; ?>
  63. </div><!-- /header-site-info-inner -->
  64. </div><!-- /header-site-info -->
  65. <?php endif; ?>
  66. </div><!-- /header-group-inner -->
  67. </div><!-- /header-group -->
  68. </div><!-- /header-group-wrapper -->
  69. <div id="nav-group-wrapper" class="nav-group-wrapper full-width">
  70. <div id="nav-group" class="nav-group row <?php print $grid_width; ?>">
  71. <?php print theme('grid_block', $primary_links_tree, 'primary-menu'); ?>
  72. </div>
  73. </div><!--/nav-group-->
  74. <?php if ($help || $messages): ?>
  75. <div class="row <?php print $grid_width; ?>">
  76. <?php print theme('grid_block', $help, 'content-help');?>
  77. <?php print theme('grid_block', $messages, 'content-messages');?>
  78. </div>
  79. <?php endif;?>
  80. <!-- preface-top row: width = grid_width -->
  81. <?php print theme('grid_row', $preface_top, 'preface-top', 'full-width', $grid_width); ?>
  82. <!-- main row: width = grid_width -->
  83. <div id="main-wrapper" class="main-wrapper full-width">
  84. <div id="main" class="main row <?php print $grid_width; ?>">
  85. <div id="main-inner" class="main-inner inner clearfix">
  86. <?php print theme('grid_row', $sidebar_first, 'sidebar-first', 'nested', $sidebar_first_width); ?>
  87. <!-- main group: width = grid_width - sidebar_first_width -->
  88. <div id="main-group" class="main-group row nested <?php print $main_group_width; ?>">
  89. <div id="main-group-inner" class="main-group-inner inner">
  90. <?php print theme('grid_row', $preface_bottom, 'preface-bottom', 'nested'); ?>
  91. <div id="main-content" class="main-content row nested">
  92. <div id="main-content-inner" class="main-content-inner inner">
  93. <?php if ($title && !$is_front): ?>
  94. <h1 class="title"><?php print $title; ?></h1>
  95. <?php endif; ?>
  96. <?php print theme('grid_block', $breadcrumb, 'breadcrumbs'); ?>
  97. <?php print theme('grid_block', $tabs, 'content-tabs'); ?>
  98. <!-- content group: width = grid_width - (sidebar_first_width + sidebar_last_width) -->
  99. <div id="content-group" class="content-group row nested <?php print $content_group_width; ?>">
  100. <div id="content-group-inner" class="content-group-inner inner">
  101. <?php if ($content_top): ?>
  102. <div id="content-top" class="content-top row nested">
  103. <div id="content-top-inner" class="content-top-inner inner">
  104. <?php print $content_top; ?>
  105. </div><!-- /content-top-inner -->
  106. </div><!-- /content-top -->
  107. <?php endif; ?>
  108. <div id="content-region" class="content-region row nested">
  109. <div id="content-region-inner" class="content-region-inner inner">
  110. <a name="main-content-area" id="main-content-area"></a>
  111. <div id="content-inner" class="content-inner block">
  112. <div id="content-inner-inner" class="content-inner-inner inner">
  113. <?php if ($content): ?>
  114. <div id="content-content" class="content-content">
  115. <?php print $content; ?>
  116. <?php print $feed_icons; ?>
  117. </div><!-- /content-content -->
  118. <?php endif; ?>
  119. </div><!-- /content-inner-inner -->
  120. </div><!-- /content-inner -->
  121. </div><!-- /content-region-inner -->
  122. </div><!-- /content-region -->
  123. <?php print theme('grid_row', $content_bottom, 'content-bottom', 'nested'); ?>
  124. </div><!-- /content-group-inner -->
  125. </div><!-- /content-group -->
  126. <?php print theme('grid_row', $sidebar_last, 'sidebar-last', 'nested', $sidebar_last_width); ?>
  127. </div><!-- /main-content-inner -->
  128. </div><!-- /main-content -->
  129. <?php print theme('grid_row', $postscript_top, 'postscript-top', 'nested'); ?>
  130. </div><!-- /main-group-inner -->
  131. </div><!-- /main-group -->
  132. </div><!-- /main-inner -->
  133. </div><!-- /main -->
  134. </div><!-- /main-wrapper -->
  135. <!-- postscript-bottom row: width = grid_width -->
  136. <?php print theme('grid_row', $postscript_bottom, 'postscript-bottom', 'full-width', $grid_width); ?>
  137. <!-- footer row: width = grid_width -->
  138. <?php print theme('grid_row', $footer . $footer_message, 'footer', 'full-width', $grid_width); ?>
  139. </div><!-- /page-inner -->
  140. </div><!-- /page -->
  141. <?php print $closure; ?>
  142. </body>
  143. </html>