/[drupal]/contributions/themes/salamander/page.tpl.php
ViewVC logotype

Contents of /contributions/themes/salamander/page.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.18 - (show annotations) (download) (as text)
Fri Nov 28 01:23:22 2008 UTC (11 months, 4 weeks ago) by florian
Branch: MAIN
CVS Tags: DRUPAL-6--1-4, HEAD
Changes since 1.17: +3 -3 lines
File MIME type: text/x-php
*** empty log message ***
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>">
3
4 <head>
5 <title><?php print $head_title ?></title>
6 <?php print $head ?>
7 <meta name="language" content="<?php print $language->language ?>" />
8 <?php print $styles ?>
9 <?php print $scripts ?>
10 <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
11 <!--[if lte IE 6]>
12 <script type="text/javascript">
13 $(document).ready(function(){
14 $(document).pngFix();
15 });
16 </script>
17 <![endif]-->
18 </head>
19
20 <body>
21 <div id="page">
22 <div id="masthead">
23 <div id="header" class="clear-block">
24
25 <div class="header-right">
26 <div class="header-left">
27
28 <?php print $search_box; ?>
29
30 <div id="logo-title">
31 <?php if ($logo): ?>
32 <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>">
33 <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" />
34 </a>
35 <?php endif; ?>
36 </div> <!-- /logo-title -->
37 <div id="name-and-slogan">
38 <?php if ($site_name): ?>
39 <h1 id="site-name">
40 <a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>">
41 <?php print $site_name; ?>
42 </a>
43 </h1>
44 <?php endif; ?>
45 <?php if ($site_slogan): ?>
46 <div id="site-slogan">
47 <?php print $site_slogan; ?>
48 </div>
49 <?php endif; ?>
50 </div> <!-- /name-and-slogan -->
51 <?php if ($header): ?>
52 <?php print $header; ?>
53 <?php endif; ?>
54 </div> <!-- /header-left -->
55 </div> <!-- /header-right -->
56 </div> <!-- /header -->
57 </div>
58
59 <div id="navigation" class="menu">
60 <?php if ($primary_links): ?>
61 <div id="primary" class="clear-block">
62 <?php print theme('links', $primary_links, array()); ?>
63 </div>
64 <?php endif; ?>
65 <?php if ($secondary_links): ?>
66 <div id="secondary" class="clear-block">
67 <?php print theme('links', $secondary_links, array()); ?>
68 </div>
69 <?php endif; ?>
70 </div> <!-- /navigation -->
71 <?php if ($breadcrumb): ?>
72 <div id="breadcrumb">
73 <?php print $breadcrumb; ?>
74 </div>
75 <?php endif; ?>
76
77 <?php
78 $section1count = 0;
79 $user1count = 0;
80 $user2count = 0;
81 $user3count = 0;
82
83 if ($user1)
84 {
85 $section1count++;
86 $user1count++;
87 }
88
89 if ($user2)
90 {
91 $section1count++;
92 $user2count++;
93 }
94
95 if ($user3)
96 {
97 $section1count++;
98 $user3count++;
99 }
100 ?>
101
102 <?php if ($section1count): ?>
103 <?php $section1width = 'width' . floor(99 / $section1count); ?>
104 <?php $block2div = ($user1count and ($user2count or $user3count)) ? " divider" : ""; ?>
105 <?php $block3div = ($user3count and ($user1count or $user2count)) ? " divider" : ""; ?>
106
107 <div class="clr" id="section1">
108
109 <table class="sections" cellspacing="0" cellpadding="0">
110 <tr valign="top">
111 <?php if ($user1): ?>
112 <td class="section <?php echo $section1width ?>">
113 <?php print $user1; ?>
114 </td>
115 <?php endif; ?>
116 <?php if ($user2): ?>
117 <td class="section <?php echo $section1width . $block2div; ?>">
118 <?php print $user2; ?>
119 </td>
120 <?php endif; ?>
121 <?php if ($user3): ?>
122 <td class="section <?php echo $section1width . $block3div; ?>">
123 <?php print $user3; ?>
124 </td>
125 <?php endif; ?>
126 </tr>
127 </table>
128
129 </div> <!-- /section1 -->
130 <?php endif; ?>
131
132 <div id="middlecontainer">
133 <table border="0" cellpadding="0" cellspacing="0" id="content">
134 <tr>
135 <?php if ($sidebar_left) { ?><td id="sidebar-left">
136 <?php print $sidebar_left ?>
137 </td><?php } ?>
138 <td valign="top">
139 <?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
140 <div id="main">
141 <?php if ($section1count > 0): ?>
142 <?php if ($breadcrumb): ?><?php print $breadcrumb; ?><?php endif; ?>
143 <?php endif; ?>
144 <?php if ($content_top):?><div id="content-top"><?php print $content_top; ?></div><?php endif; ?>
145 <h1 class="title"><?php print $title ?></h1>
146 <div class="tabs"><?php print $tabs ?></div>
147 <?php print $help ?>
148 <?php print $messages ?>
149 <?php print $content; ?>
150 <?php print $feed_icons; ?>
151 <?php if ($content_bottom): ?><div id="content-bottom"><?php print $content_bottom; ?></div><?php endif; ?>
152 </div>
153 </td>
154 <?php if ($sidebar_right) { ?><td id="sidebar-right">
155 <?php print $sidebar_right ?>
156 </td><?php } ?>
157 </tr>
158 </table>
159 </div>
160
161 <?php
162 $section2count = 0;
163 $user4count = 0;
164 $user5count = 0;
165 $user6count = 0;
166
167 if ($user4)
168 {
169 $section2count++;
170 $user4count++;
171 }
172
173 if ($user5)
174 {
175 $section2count++;
176 $user5count++;
177 }
178
179 if ($user6)
180 {
181 $section2count++;
182 $user6count++;
183 }
184 ?>
185
186 <?php if ($section2count): ?>
187 <?php $section2width = 'width' . floor(99 / $section2count); ?>
188 <?php $block2div = ($user4count and ($user5count or $user6count)) ? " divider" : ""; ?>
189 <?php $block3div = ($user6count and ($user4count or $user5count)) ? " divider" : ""; ?>
190
191 <div class="clr" id="section2">
192
193 <div id="bar"></div>
194
195 <table class="sections" cellspacing="0" cellpadding="0">
196 <tr valign="top">
197 <?php if ($user4): ?>
198 <td class="section <?php echo $section2width ?>">
199 <?php print $user4; ?>
200 </td>
201 <?php endif; ?>
202 <?php if ($user5): ?>
203 <td class="section <?php echo $section2width . $block2div; ?>">
204 <?php print $user5; ?>
205 </td>
206 <?php endif; ?>
207 <?php if ($user6): ?>
208 <td class="section <?php echo $section2width . $block3div; ?>">
209 <?php print $user6; ?>
210 </td>
211 <?php endif; ?>
212 </tr>
213 </table>
214
215 </div> <!-- /section2 -->
216 <?php endif; ?>
217
218 <div id="footer-wrapper" class="clear-block">
219 <div id="footer">
220 <?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')) ?><?php } ?>
221 <div class="legal1"><?php print xmll() ?></div>
222 <div class="legal2">Copyright &copy; <?php print date('Y') ?> <a href="/"><?php print $site_name ?></a> <?php print $footer_message ?></div>
223 </div>
224 <div class="footer-right">
225 <div class="footer-left">
226 </div> <!-- /footer-left -->
227 </div> <!-- /footer-right -->
228 </div> <!-- /footer-wrapper -->
229
230 <?php print $closure ?>
231
232 </div>
233
234 </body>
235 </html>

  ViewVC Help
Powered by ViewVC 1.1.2