Imported Upstream version 6.x+1.2
[drupal-theme-rahunas+rootcandy] / rootcandy / page.tpl.php
1 <?php
2 // $Id: page.tpl.php,v 1.23.2.16 2009/06/20 16:53:25 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     <?php if (!$hide_header) { ?>
30     <div id="toppanel">
31       <div id="panel">
32         <?php print $slider ?>
33       </div> <!-- /login -->
34       <div id="toppanel-head">
35         <div id="go-home">
36           <?php if (isset($go_home)) print $go_home; ?>
37         </div>
38         <div id="admin-links">
39           <?php print _rootcandy_admin_links() ?>
40         </div>
41         <?php if (!$hide_panel) { ?>
42         <div id="header-title" class="clearfix">
43           <ul id="toggle"><li><?php print $panel_navigation ?></li></ul>
44         </div>
45         <?php } ?>
46       </div>
47     </div>
48     <?php } ?>
49     <div id="page-wrapper"><div id="page-wrapper-content">
50       <?php print $header ?>
51       <div id="navigation" <?php if (!$hide_header) print 'class="header-on"' ?>>
52         <?php print _rootcandy_admin_navigation() ?>
53
54       <?php
55       if ($logo) {
56         print '<img src="'. check_url($logo) .'" alt="'. $site_name .'" id="logo" />';
57       }
58       ?>
59       </div>
60
61       <div id="breadcrumb" class="alone">
62         <?php if ($title): print '<h2 id="title">'. $title .'</h2>'; endif; ?>
63         <?php print $breadcrumb; ?>
64       </div>
65
66       <div id="content-wrap">
67         <div id="inside">
68           <?php if ((arg(0) == 'admin' AND (arg(2))) || $admin_left) { ?>
69             <div id ="sidebar-left">
70               <?php
71               print $admin_left;
72               ?>
73             </div>
74           <?php } ?>
75           <?php if ($admin_right) { ?>
76             <div id ="sidebar-right">
77               <?php
78               print $admin_right;
79               ?>
80             </div>
81           <?php } ?>
82           <div id="content">
83             <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">
84               <?php
85                 // TODO
86                 // $menu_sublinks = menu_navigation_links('navigation', 3);
87                 // if ($menu_sublinks) {
88                 //  print theme('links', $menu_sublinks, array('id' => 'rootcandy-menu'));
89                 // }
90               ?>
91               <?php if (isset($tabs) && $tabs): print '<div id="tabs-primary"><ul class="tabs primary">'. $tabs .'</ul></div><div class="level-1">'; endif; ?>
92               <?php if (isset($tabs2) && $tabs2): print '<div id="tabs-secondary"><ul class="tabs secondary">'. $tabs2 .'</ul></div><div class="level-2">'; endif; ?>
93               <?php
94                 //dashboard
95                 if (isset($dashboard)) {
96               ?>
97                 <div id="dashboard" class="clearfix">
98                   <div id="dashboard-left">
99                     <?php print $dashboard_left ?>
100                   </div>
101                   <div id="dashboard-right">
102                     <?php print $dashboard_right ?>
103                   </div>
104                 </div>
105               <?php
106                 }
107                 else {
108                   print $help;
109                   print $messages;
110                 }
111               ?>
112               <?php
113                 if (!$hide_content) {
114                   print $content;
115                 }
116               ?>
117               <?php if (isset($tabs2) && $tabs2): print '</div>'; endif; ?>
118               <?php if (isset($tabs) && $tabs): print '</div>'; endif; ?>
119             </div><br class="clear" /></div></div></div></div></div></div></div></div>
120           </div>
121         </div>
122       </div>
123       <?php if ($footer) { ?>
124         <div id="footer">
125           <?php print $footer; ?>
126         </div>
127       <?php } ?>
128     </div></div>
129     <!-- /layout -->
130     <?php print $closure ?>
131   </body>
132 </html>