PageRenderTime 526ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/sites/all/themes/titan/page--front.tpl.php

https://bitbucket.org/hjain/trinet
PHP | 273 lines | 228 code | 44 blank | 1 comment | 64 complexity | 4f46d17b780568f806ffb906344e5d4d MD5 | raw file
Possible License(s): GPL-2.0, LGPL-3.0, AGPL-1.0
  1. <?php //if($is_front=='1' && $logged_in=="")
  2. // echo "<pre>";print_r($variables);exit;
  3. ?>
  4. <?php if($is_front=='1' && $logged_in=="0"): ?>
  5. <?php drupal_add_js(drupal_get_path('theme','titan').'/js/jquery.cycle.all.js');
  6. drupal_add_js(drupal_get_path('theme','titan').'/js/jqcycle.js');
  7. ?>
  8. <div id="header-wrapper">
  9. <div id="header">
  10. <div id="branding">
  11. <?php if ($logo): ?>
  12. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
  13. <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
  14. </a>
  15. <?php endif; ?>
  16. <?php if ($site_name): ?>
  17. <?php if ($title): ?>
  18. <div id="site-name"><strong>
  19. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><?php print $site_name; ?></a>
  20. </strong></div>
  21. <?php else: /* Use h1 when the content title is empty */ ?>
  22. <h1 id="site-name">
  23. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><?php print $site_name; ?></a>
  24. </h1>
  25. <?php endif; ?>
  26. <?php endif; ?>
  27. <?php if ($site_slogan): ?>
  28. <div id="site-slogan"><?php print $site_slogan; ?></div>
  29. <?php endif; ?>
  30. <div id="header_top">
  31. <?php print render($page['header_top']);?>
  32. </div>
  33. </div> <!-- /#branding -->
  34. </div> <!-- /#header -->
  35. </div> <!-- /#header-wrapper -->
  36. <!--
  37. <?php /*if ($page['header_menu']): */?>
  38. <div id="header-menu-wrapper">
  39. <div id="header-menu">
  40. </div>
  41. </div>-->
  42. <div id="main-wrapper">
  43. <div id="main" class="clearfix">
  44. <div id="content">
  45. <div class="inner">
  46. <?php if ($breadcrumb): ?><div id="breadcrumb" class="clearfix"><?php print $breadcrumb; ?></div><?php endif; ?>
  47. <?php if ($messages): ?><div id="messages"><?php print $messages; ?></div><?php endif; ?>
  48. <?php if ($tabs): ?>
  49. <?php if(isset($tabs['#primary']['2'])): ?>
  50. <?php unset($tabs['#primary']['2']); ?>
  51. <?php endif; ?>
  52. <?php if(isset($tabs['#primary']['3'])): ?>
  53. <?php unset($tabs['#primary']['3']); ?>
  54. <?php endif; ?>
  55. <div class="tabs"><?php print render($tabs); ?></div><?php endif; ?>
  56. <?php print render($page['help']); ?>
  57. <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
  58. <a id="main-content"></a>
  59. <ul class="slideshow"><li><img src="sites/default/files/office.jpg" width="650px" height="525px"/></li>
  60. <li><img src="sites/default/files/Official-Office-Wallpaper.jpg" width="650px" height="525px"/></li>
  61. <li><img src="sites/default/files/OfficeMeeting.jpg" width="650px" height="525px"/></li>
  62. <li><img src="sites/default/files/tv-the-office15.jpg" width="650px" height="525px"/></li></ul>
  63. <?php print render($page['content']); ?>
  64. <?php print $feed_icons; ?>
  65. </div> <!-- /.inner -->
  66. </div> <!-- /#content -->
  67. <?php if ($page['sidebar_first']): ?>
  68. <div id="sidebar">
  69. <div class="inner">
  70. <?php print render($page['sidebar_first']); ?>
  71. </div> <!-- /.inner -->
  72. </div> <!-- /#sidebar -->
  73. <?php endif; ?>
  74. </div> <!-- /#main -->
  75. </div> <!-- /#main-wrapper -->
  76. <div id="footer-wrapper">
  77. <div id="footer">
  78. <h2 class="element-invisible"><?php print t('Footer'); ?></h2>
  79. <?php if ($page['footer_column_first'] || $page['footer_column_second'] || $page['footer_column_third'] || $page['footer_column_fourth']): ?>
  80. <div id="footer-columns" class="clearfix columns-<?php print $footer_columns_number; ?>">
  81. <?php if ($page['footer_column_first']): ?>
  82. <div id="footer-column-first" class="column first">
  83. <?php print render($page['footer_column_first']); ?>
  84. </div> <!-- /#footer-column-first -->
  85. <?php endif; ?>
  86. <?php if ($page['footer_column_second']): ?>
  87. <div id="footer-column-second" class="column <?php if (!$page['footer_column_first']): ?> first<?php endif; ?><?php if (!$page['footer_column_third'] && !$page['footer_column_fourth']): ?> last<?php endif; ?>">
  88. <?php print render($page['footer_column_second']); ?>
  89. </div> <!-- /#footer-column-second -->
  90. <?php endif; ?>
  91. <?php if ($page['footer_column_third']): ?>
  92. <div id="footer-column-third" class="column <?php if (!$page['footer_column_first'] && !$page['footer_column_second']): ?> first<?php endif; ?><?php if (!$page['footer_column_fourth']): ?> last<?php endif; ?>">
  93. <?php print render($page['footer_column_third']); ?>
  94. </div> <!-- /#footer-column-third -->
  95. <?php endif; ?>
  96. <?php if ($page['footer_column_fourth']): ?>
  97. <div id="footer-column-fourth" class="column last <?php if (!$page['footer_column_first'] && !$page['footer_column_second'] && !$page['footer_column_third']): ?> first<?php endif; ?>">
  98. <?php print render($page['footer_column_fourth']); ?>
  99. </div> <!-- /#footer-column-fourth -->
  100. <?php endif; ?>
  101. </div><!-- /#footer-columns -->
  102. <?php endif; ?>
  103. <div id="closure" class="clearfix">
  104. <ul id="info">
  105. <li class="copyright"><?php print theme_get_setting('copyright_information'); ?></li>
  106. </ul>
  107. <?php if ($page['footer_menu']): ?>
  108. <div id="footer-menu">
  109. <?php print render($page['footer_menu']); ?>
  110. </div> <!-- /#footer-menu -->
  111. <?php endif; ?>
  112. </div> <!-- /#closure -->
  113. </div> <!-- /#footer -->
  114. </div> <!-- /#footer-wrapper -->
  115. <?php endif;?>
  116. <?php /*************************front page for logged in*********************************************/?>
  117. <?php if($is_front=='1' && $logged_in=="1"):?>
  118. <div id="header-wrapper">
  119. <div id="header">
  120. <div id="branding">
  121. <?php if ($logo): ?>
  122. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
  123. <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
  124. </a>
  125. <?php endif; ?>
  126. <?php if ($site_name): ?>
  127. <?php if ($title): ?>
  128. <div id="site-name"><strong>
  129. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><?php print $site_name; ?></a>
  130. </strong></div>
  131. <?php else: /* Use h1 when the content title is empty */ ?>
  132. <h1 id="site-name">
  133. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><?php print $site_name; ?></a>
  134. </h1>
  135. <?php endif; ?>
  136. <?php endif; ?>
  137. <?php if ($site_slogan): ?>
  138. <div id="site-slogan"><?php print $site_slogan; ?></div>
  139. <?php endif; ?>
  140. <div id="header_top">
  141. <?php print render($page['header_top']);?>
  142. </div>
  143. </div> <!-- /#branding -->
  144. </div> <!-- /#header -->
  145. </div> <!-- /#header-wrapper -->
  146. <?php if ($page['header_menu']): ?>
  147. <div id="header-menu-wrapper">
  148. <div id="header-menu">
  149. <?php print render($page['header_menu']); ?>
  150. </div>
  151. </div>
  152. <?php endif; ?>
  153. <div id="main-wrapper">
  154. <div id="main" class="clearfix">
  155. <div id="content">
  156. <div class="inner">
  157. <?php if ($breadcrumb): ?><div id="breadcrumb" class="clearfix"><?php print $breadcrumb; ?></div><?php endif; ?>
  158. <?php if ($messages): ?><div id="messages"><?php print $messages; ?></div><?php endif; ?>
  159. <?php if ($tabs): ?>
  160. <?php if(isset($tabs['#primary']['2'])): ?>
  161. <?php unset($tabs['#primary']['2']); ?>
  162. <?php endif; ?>
  163. <?php if(isset($tabs['#primary']['3'])): ?>
  164. <?php unset($tabs['#primary']['3']); ?>
  165. <?php endif; ?>
  166. <div class="tabs"><?php print render($tabs); ?></div><?php endif; ?>
  167. <?php print render($page['help']); ?>
  168. <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
  169. <a id="main-content"></a>
  170. <?php print render($page['content']); ?>
  171. <?php print $feed_icons; ?>
  172. </div> <!-- /.inner -->
  173. <?php if(isset($variables['show_announcement'])):?>
  174. <a href="#login-announce" id="fancyBoxLink" style="display:none">Click here to view latest announcement</a>
  175. <div style="display:none">
  176. <div id="login-announce">
  177. <?php print $_SESSION['title']; ?>
  178. </div></div>
  179. <?php endif;?>
  180. </div> <!-- /#content -->
  181. <?php if ($page['sidebar_first']): ?>
  182. <div id="sidebar">
  183. <div class="inner">
  184. <?php print render($page['sidebar_first']); ?>
  185. </div> <!-- /.inner -->
  186. </div> <!-- /#sidebar -->
  187. <?php endif; ?>
  188. </div> <!-- /#main -->
  189. </div> <!-- /#main-wrapper -->
  190. <div id="footer-wrapper">
  191. <div id="footer">
  192. <h2 class="element-invisible"><?php print t('Footer'); ?></h2>
  193. <?php if ($page['footer_column_first'] || $page['footer_column_second'] || $page['footer_column_third'] || $page['footer_column_fourth']): ?>
  194. <div id="footer-columns" class="clearfix columns-<?php print $footer_columns_number; ?>">
  195. <?php if ($page['footer_column_first']): ?>
  196. <div id="footer-column-first" class="column first">
  197. <?php print render($page['footer_column_first']); ?>
  198. </div> <!-- /#footer-column-first -->
  199. <?php endif; ?>
  200. <?php if ($page['footer_column_second']): ?>
  201. <div id="footer-column-second" class="column <?php if (!$page['footer_column_first']): ?> first<?php endif; ?><?php if (!$page['footer_column_third'] && !$page['footer_column_fourth']): ?> last<?php endif; ?>">
  202. <?php print render($page['footer_column_second']); ?>
  203. </div> <!-- /#footer-column-second -->
  204. <?php endif; ?>
  205. <?php if ($page['footer_column_third']): ?>
  206. <div id="footer-column-third" class="column <?php if (!$page['footer_column_first'] && !$page['footer_column_second']): ?> first<?php endif; ?><?php if (!$page['footer_column_fourth']): ?> last<?php endif; ?>">
  207. <?php print render($page['footer_column_third']); ?>
  208. </div> <!-- /#footer-column-third -->
  209. <?php endif; ?>
  210. <?php if ($page['footer_column_fourth']): ?>
  211. <div id="footer-column-fourth" class="column last <?php if (!$page['footer_column_first'] && !$page['footer_column_second'] && !$page['footer_column_third']): ?> first<?php endif; ?>">
  212. <?php print render($page['footer_column_fourth']); ?>
  213. </div> <!-- /#footer-column-fourth -->
  214. <?php endif; ?>
  215. </div><!-- /#footer-columns -->
  216. <?php endif; ?>
  217. <div id="closure" class="clearfix">
  218. <ul id="info">
  219. <li class="copyright"><?php print theme_get_setting('copyright_information'); ?></li>
  220. </ul>
  221. <?php if ($page['footer_menu']): ?>
  222. <div id="footer-menu">
  223. <?php print render($page['footer_menu']); ?>
  224. </div> <!-- /#footer-menu -->
  225. <?php endif; ?>
  226. </div> <!-- /#closure -->
  227. </div> <!-- /#footer -->
  228. </div> <!-- /#footer-wrapper -->
  229. <?php endif;?>