e4585193ab06d302ab5c1918f6996bdd123208b6
[drupal-theme-rahunas+rootcandy] / rootcandy / page.tpl.php
1 <?php
2 // $Id: page.tpl.php,v 1.23.2.9 2009/03/09 00:00:43 sign Exp $
3
4 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
5   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>">
7   <head>
8     <title><?php print $head_title ?></title>
9     <?php print $head ?>
10     <?php print $styles ?>
11     <?php print $scripts ?>
12   </head>
13   <?php
14   // get admin links into the region
15   if (arg(0) == 'admin' AND arg(2)) {
16     $menu = menu_navigation_links('navigation', 2);
17     $menu_links = _rootcandy_links($menu, array('id' => 'rootcandy-menu'));
18     if ($language->direction) {
19       $admin_right = $menu_links . $admin_right;
20     }
21     else {
22       $admin_left = $menu_links . $admin_left;
23     }
24   }
25   ?>
26   <body<?php print rootcandy_body_class($admin_left, $admin_right); ?>>
27
28 <!-- Layout -->
29     <div id="page-wrapper"><div id="page-wrapper-content">
30       <?php if (!$hide_header) { ?>
31       <div id="header">
32         <div id="go-home">
33           <?php if (isset($go_home)) print $go_home; ?>
34         </div>
35         <div id="admin-links">
36           <?php print _rootcandy_admin_links() ?>
37         </div>
38         <div id="header-title" class="clearfix">
39           <?php print check_plain($site_name) ?>
40         </div>
41       </div>
42       <?php } ?>
43       <?php print $header ?>
44       <div id="navigation">
45         <?php print _rootcandy_admin_navigation() ?>
46
47       <?php
48       if ($logo) {
49         print '<img src="'. check_url($logo) .'" alt="'. $site_name .'" id="logo" />';
50       }
51       ?>
52       </div>
53
54       <div id="breadcrumb" class="alone">
55         <?php if ($title): print '<h2 id="title">'. $title .'</h2>'; endif; ?>
56         <?php print $breadcrumb; ?>
57       </div>
58   
59       <div id="content-wrap">
60         <div id="inside">
61           <?php if ((arg(0) == 'admin' AND (arg(2))) || $admin_left) { ?>
62             <div id ="sidebar-left">
63               <?php
64               print $admin_left;
65               ?>
66             </div>
67           <?php } ?>
68           <?php if ($admin_right) { ?>
69             <div id ="sidebar-right">
70               <?php
71               print $admin_right;
72               ?>
73             </div>
74           <?php } ?>
75           <div id="content">
76             <div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl"><div class="tr"><div class="content-in">
77               <?php
78                 // TODO
79                 // $menu_sublinks = menu_navigation_links('navigation', 3);
80                 // if ($menu_sublinks) {
81                 //  print theme('links', $menu_sublinks, array('id' => 'rootcandy-menu'));
82                 // }
83               ?>
84               <?php if (isset($tabs) && $tabs): print '<div id="tabs-primary"><ul class="tabs primary">'. $tabs .'</ul></div><div class="level-1">'; endif; ?>
85               <?php if (isset($tabs2) && $tabs2): print '<div id="tabs-secondary"><ul class="tabs secondary">'. $tabs2 .'</ul></div><div class="level-2">'; endif; ?>
86               <?php
87                 //dashboard
88                 if (isset($dashboard)) {
89               ?>
90                 <div id="dashboard" class="clearfix">
91                   <div id="dashboard-left">
92                     <?php print $dashboard_left ?>
93                   </div>
94                   <div id="dashboard-right">
95                     <?php print $dashboard_right ?>
96                   </div>
97                 </div>
98               <?php
99                 }
100                 else {
101                   print $help;
102                   print $messages;
103                 }
104               ?>
105               <?php
106                 if (!$hide_content) {
107                   print $content;
108                 }
109               ?>
110               <?php if (isset($tabs2) && $tabs2): print '</div>'; endif; ?>
111               <?php if (isset($tabs) && $tabs): print '</div>'; endif; ?>
112             </div><br class="clear" /></div></div></div></div></div></div></div></div>
113           </div>
114         </div>
115       </div>
116       <?php if ($footer) { ?>
117         <div id="footer">
118           <?php print $footer; ?>
119         </div>
120       <?php } ?>
121     </div></div>
122     <!-- /layout -->
123     <?php print $closure ?>
124   </body>
125 </html>