/sites/all/themes/corporateclean/page.tpl.php

https://bitbucket.org/agiza/farming-drupal · PHP · 251 lines · 199 code · 52 blank · 0 comment · 30 complexity · 08de92444f73257470cc070e331230b9 MD5 · raw file

  1. <!-- #header -->
  2. <div id="header">
  3. <!-- #header-inside -->
  4. <div id="header-inside" class="container_12 clearfix">
  5. <!-- #header-inside-left -->
  6. <div id="header-inside-left" class="grid_12">
  7. <?php if ($logo): ?>
  8. <a href="<?php print check_url($front_page); ?>"
  9. title="<?php print t('Home'); ?>"><img src="<?php print $logo; ?>"
  10. alt="<?php print t('Home'); ?>" /> </a>
  11. <?php endif; ?>
  12. <?php if ($site_name || $site_slogan): ?>
  13. <div class="clearfix">
  14. <?php if ($site_name): ?>
  15. <span id="site-name"><a
  16. href="<?php print check_url($front_page); ?>"
  17. title="<?php print t('Home'); ?>"><?php print $site_name; ?> </a> </span>
  18. <?php endif; ?>
  19. <?php if ($site_slogan): ?>
  20. <span id="slogan"><?php print $site_slogan; ?> </span>
  21. <?php endif; ?>
  22. </div>
  23. <?php endif; ?>
  24. </div>
  25. <!-- EOF: #header-inside-left -->
  26. <!-- #header-inside-right -->
  27. <div id="header-inside-right" class="grid_4">
  28. <?php print render($page['search_area']); ?>
  29. </div>
  30. <!-- EOF: #header-inside-right -->
  31. </div>
  32. <!-- EOF: #header-inside -->
  33. </div>
  34. <!-- EOF: #header -->
  35. <!-- #header-menu -->
  36. <div
  37. id="header-menu">
  38. <!-- #header-menu-inside -->
  39. <div id="header-menu-inside" class="container_12 clearfix">
  40. <div class="grid_12">
  41. <div id="navigation" class="clearfix">
  42. <?php if ($page['navigation']) :?>
  43. <?php print drupal_render($page['navigation']); ?>
  44. <?php else :
  45. if (module_exists('i18n_menu')) {
  46. $main_menu_tree = i18n_menu_translated_tree(variable_get('menu_main_links_source', 'main-menu'));
  47. } else {
  48. $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu'));
  49. }
  50. print drupal_render($main_menu_tree);
  51. endif; ?>
  52. </div>
  53. </div>
  54. </div>
  55. <!-- EOF: #header-menu-inside -->
  56. </div>
  57. <!-- EOF: #header-menu -->
  58. <!-- #banner -->
  59. <div id="banner">
  60. <?php if (isset($_COOKIE['slider'])):if ($_COOKIE['slider']=='hidden'):?>
  61. <script type="text/javascript">
  62. jQuery(window).load(function() {
  63. jQuery('#banner').slideToggle(1);
  64. });
  65. </script>
  66. <?php endif; endif;?>
  67. <?php print render($page['banner']); ?>
  68. <?php if (theme_get_setting('slideshow_display','corporateclean')): ?>
  69. <?php if ($is_front): ?>
  70. <?php endif; ?>
  71. <?php endif; ?>
  72. </div>
  73. <!-- EOF: #banner -->
  74. <!-- #content -->
  75. <div id="content">
  76. <?php if (isset($_COOKIE['slider'])): if (theme_get_setting('slideshow_display','corporateclean')): ?>
  77. <?php if ($_COOKIE['slider']=='show'):?>
  78. <div id="bouton_slider">cacher le slider</div>
  79. <?php endif; ?>
  80. <?php if ($_COOKIE['slider']=='hidden'):?>
  81. <div id="bouton_slider">montrer le slider</div>
  82. <script type="text/javascript">
  83. jQuery(document).ready(function () {
  84. jQuery("#bouton_slider").css('cursor','s-resize');
  85. });
  86. </script>
  87. <?php endif; ?>
  88. <?php endif; ?>
  89. <?php endif; ?>
  90. <?php if (!isset($_COOKIE['slider'])): setcookie('slider',"show");?>
  91. <div id="bouton_slider">cacher le slider</div>
  92. <?php endif; ?>
  93. <!-- #content-inside -->
  94. <div id="content-inside" class="container_12 clearfix">
  95. <?php if ($page['sidebar_first']) :?>
  96. <!-- #sidebar-first -->
  97. <div id="sidebar-first" class="grid_4">
  98. <?php print render($page['sidebar_first']); ?>
  99. </div>
  100. <!-- EOF: #sidebar-first -->
  101. <?php endif; ?>
  102. <?php if ($page['sidebar_first'] && $page['sidebar_second']) { ?>
  103. <div class="grid_4">
  104. <?php } elseif ($page['sidebar_first'] || $page['sidebar_second']) { ?>
  105. <div id="main" class="grid_8">
  106. <?php } else { ?>
  107. <div id="main" class="grid_12">
  108. <?php } ?>
  109. <?php if (theme_get_setting('breadcrumb_display','corporateclean')): print $breadcrumb; endif; ?>
  110. <?php if ($page['highlighted']): ?>
  111. <div id="highlighted">
  112. <?php print render($page['highlighted']); ?>
  113. </div>
  114. <?php endif; ?>
  115. <?php if ($messages): ?>
  116. <div id="console" class="clearfix">
  117. <?php print $messages; ?>
  118. </div>
  119. <?php endif; ?>
  120. <?php if ($page['help']): ?>
  121. <div id="help">
  122. <?php print render($page['help']); ?>
  123. </div>
  124. <?php endif; ?>
  125. <?php if ($action_links): ?>
  126. <ul class="action-links">
  127. <?php print render($action_links); ?>
  128. </ul>
  129. <?php endif; ?>
  130. <?php print render($title_prefix); ?>
  131. <?php if ($title): ?>
  132. <h1>
  133. <?php print $title ?>
  134. </h1>
  135. <?php endif; ?>
  136. <?php print render($title_suffix); ?>
  137. <?php if ($tabs): ?>
  138. <?php print render($tabs); ?>
  139. <?php endif; ?>
  140. <?php print render($page['content']); ?>
  141. <?php print $feed_icons; ?>
  142. </div>
  143. <!-- EOF: #main -->
  144. <?php if ($page['sidebar_second']) :?>
  145. <!-- #sidebar-second -->
  146. <div id="sidebar-second" class="grid_4">
  147. <?php print render($page['sidebar_second']); ?>
  148. </div>
  149. <!-- EOF: #sidebar-second -->
  150. <?php endif; ?>
  151. </div>
  152. <!-- EOF: #content-inside -->
  153. </div>
  154. <!-- EOF: #content -->
  155. <!-- #footer -->
  156. <div id="footer">
  157. <!-- #footer-inside -->
  158. <div id="footer-inside" class="container_12 clearfix">
  159. <div class="footer-area grid_4">
  160. <?php print render($page['footer_first']); ?>
  161. </div>
  162. <!-- EOF: .footer-area -->
  163. <div class="footer-area grid_4">
  164. <?php print render($page['footer_second']); ?>
  165. </div>
  166. <!-- EOF: .footer-area -->
  167. <div class="footer-area grid_4">
  168. <?php print render($page['footer_third']); ?>
  169. </div>
  170. <!-- EOF: .footer-area -->
  171. </div>
  172. <!-- EOF: #footer-inside -->
  173. </div>
  174. <!-- EOF: #footer -->
  175. <!-- #footer-bottom -->
  176. <div id="footer-bottom">
  177. <!-- #footer-bottom-inside -->
  178. <div id="footer-bottom-inside" class="container_12 clearfix">
  179. <!-- #footer-bottom-left -->
  180. <div id="footer-bottom-left" class="grid_12">
  181. <?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('class' => array('secondary-menu', 'links', 'clearfix')))); ?>
  182. <?php print render($page['footer']); ?>
  183. </div>
  184. <!-- #footer-bottom-right -->
  185. <div id="footer-bottom-right" class="grid_4">
  186. <?php print render($page['footer_bottom_right']); ?>
  187. </div>
  188. <!-- EOF: #footer-bottom-right -->
  189. </div>
  190. <!-- EOF: #footer-bottom-inside -->
  191. <!-- #credits -->
  192. <!-- <div id="credits" class="container_12 clearfix">
  193. <div class="grid_12">
  194. <p>Ported to Drupal by <a href="http://www.drupalizing.com">Drupalizing</a>, a Project of <a href="http://www.morethanthemes.com">More than (just) Themes</a>. Designed by <a href="http://www.kaolti.com/">Zsolt Kacso</a></p>
  195. </div>
  196. </div> -->
  197. <!-- EOF: #credits -->
  198. </div>
  199. <!-- EOF: #footer -->