page.tpl.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <div id='page'>
  2. <?php if ($page['user_menu']): ?>
  3. <style>
  4. body { padding-top: 60px; }
  5. @media (max-width: 979px) { body { padding-top: 0px; }}
  6. </style>
  7. <div class='navbar' id='main-menu'>
  8. <div class='navbar-inner'>
  9. <div class='container'>
  10. <a class='btn btn-navbar' data-target='.nav-collapse' data-toggle='collapse'>
  11. <span style='color: #fff'>
  12. <!-- Menu -->
  13. <span class='icon-bar'></span>
  14. <span class='icon-bar'></span>
  15. <span class='icon-bar'></span>
  16. </span>
  17. </a>
  18. <a class='brand' href='<?php print check_url($front_page); ?>'>
  19. <?php print $site_name; ?>
  20. </a>
  21. <div class='nav-collapse collapse'>
  22. <?php print render($menu_manager_menu_tree); ?>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <?php endif; ?>
  28. <div class='clearfix' id='header-wrapper'>
  29. <?php print render($page['header']); ?>
  30. </div>
  31. <?php $content_top_region = $page['help'] || $messages ?>
  32. <?php $content_region = $tabs || $title || $page['content']; ?>
  33. <?php if ($content_top_region || $content_region || $page['sidebar_second']): ?>
  34. <div class='clearfix' id='main-wrapper'>
  35. <?php if ($page['sidebar_first']): ?>
  36. <div class='sidebar span' id='sidebar-first'>
  37. <?php print render($page['sidebar_first']); ?>
  38. </div>
  39. <?php endif; ?>
  40. <?php if ($content_top_region || $content_region): ?>
  41. <div class='span' id='content-wrapper'>
  42. <?php if ($content_top_region): ?>
  43. <div id='content-top'>
  44. <?php if ($page['help']): ?>
  45. <?php print render($page['help']); ?>
  46. <?php endif; ?>
  47. <?php if ($messages): ?>
  48. <?php print $messages; ?>
  49. <?php endif; ?>
  50. </div>
  51. <?php endif; ?>
  52. <?php if ($content_region): ?>
  53. <div id='content'>
  54. <a id='main-content' name='main-content'></a>
  55. <?php if ($title || $page['content']): ?>
  56. <div id='content-inner'>
  57. <?php if (!empty($tabs['#primary'])): ?>
  58. <div class='clearfix' id='content-tabs'>
  59. <?php print render($tabs); ?>
  60. </div>
  61. <?php endif; ?>
  62. <?php print render($title_prefix); ?>
  63. <?php if ($title): ?>
  64. <div class='page-header'>
  65. <h1 id='page-title'><?php print $title; ?></h1>
  66. </div>
  67. <?php endif; ?>
  68. <?php print render($title_suffix); ?>
  69. <?php if ($breadcrumb): ?>
  70. <div id='breadcrumb'>
  71. <?php print $breadcrumb; ?>
  72. </div>
  73. <?php endif; ?>
  74. <?php if ($action_links): ?>
  75. <ul class='action-links'><?php print render($action_links); ?></ul>
  76. <?php endif; ?>
  77. <?php if ($page['content']): ?>
  78. <?php print render($page['content']); ?>
  79. <?php endif; ?>
  80. </div>
  81. <?php endif; ?>
  82. </div>
  83. <?php endif; ?>
  84. </div>
  85. <?php endif; ?>
  86. <?php if ($page['sidebar_second']): ?>
  87. <div class='sidebar' id='sidebar-second'>
  88. <?php print render($page['sidebar_second']); ?>
  89. </div>
  90. <?php endif; ?>
  91. </div>
  92. <?php endif; ?>
  93. </div>
  94. <div id='footer-wrapper'>
  95. <div id='footer'>
  96. <?php print render($page['footer']); ?>
  97. </div>
  98. </div>