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

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

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


Revision 1.1 - (show annotations) (download) (as text)
Fri Feb 22 03:15:47 2008 UTC (21 months ago) by roopletheme
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
Initial Release for Drupal 5.0
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <!-- $Id: page.tpl.php 11 2008-02-21 13:24:51Z bill $ -->
4 <head>
5 <title><?php print $head_title ?></title>
6 <?php print $head ?>
7 <?php print $styles ?>
8 <?php print $scripts ?>
9 <style type="text/css" media="print">@import "<?php print base_path() . path_to_theme() ?>/print.css";</style>
10 <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
11 <?php
12 $sidebar_mode = theme_get_setting('tapestry_sidebarmode');
13 if (!$sidebar_mode) {
14 $sidebar_mode = 'center';
15 }
16
17 $outsidebar_loc = theme_get_setting('tapestry_outsidebar');
18 if (!$outsidebar_loc) {
19 $outsidebar_loc = 'left';
20 }
21
22 $page_width = theme_get_setting('tapestry_fixedwidth');
23 if (!$page_width) {
24 $page_width = 900;
25 }
26
27 $sidebar_count = 0;
28 if ($sidebar_left)
29 {
30 $sidebar_count++;
31 $left_sidebar_width = theme_get_setting('tapestry_leftsidebarwidth');
32 if (!$left_sidebar_width) {
33 $left_sidebar_width = 200;
34 }
35 } else {
36 $left_sidebar_width = 0;
37 }
38
39 if ($sidebar_right)
40 {
41 $sidebar_count++;
42 $right_sidebar_width = theme_get_setting('tapestry_rightsidebarwidth');
43 if (!$right_sidebar_width) {
44 $right_sidebar_width = 200;
45 }
46 } else {
47 $right_sidebar_width = 0;
48 }
49
50 if ($sidebar_outside)
51 {
52 $sidebar_count++;
53 $outside_sidebar_width = theme_get_setting('tapestry_outsidebarwidth');
54 if (!$outside_sidebar_width) {
55 $outside_sidebar_width = 200;
56 }
57 } else {
58 $outside_sidebar_width = 0;
59 }
60
61 $suckerfish_align = theme_get_setting('tapestry_suckerfishalign');
62 if (!$suckerfish_align) {
63 $suckerfish_align = 'right';
64 }
65
66 $main_content_side_margins = 10;
67 $main_content_width = $page_width - $left_sidebar_width - $right_sidebar_width - $outside_sidebar_width - ($main_content_side_margins * 2);
68
69 $inside_content_width = $page_width - $outside_sidebar_width;
70
71 $drop_shadow_width = $page_width + 24;
72 $round_container_width = $page_width - 38;
73 ?>
74 <style type="text/css">
75 #banner, #container, #headercontainer, #header-region-container, #footer-region-container, #suckerfish-container {
76 width: <?php print $page_width ?>px;
77 }
78 #page-right, #round-right {
79 width: <?php print $drop_shadow_width ?>px;
80 }
81 #sidebar-left {
82 width: <?php print $left_sidebar_width ?>px;
83 }
84
85 #sidebar-right {
86 width: <?php print $right_sidebar_width ?>px;
87 }
88 #sidebar-outside {
89 width: <?php print $outside_sidebar_width ?>px;
90 }
91 #inside-content {
92 width: <?php print $inside_content_width ?>px;
93 }
94 #mainContent {
95 width: <?php print $main_content_width ?>px;
96 padding-left: <?php print $main_content_side_margins ?>px;
97 padding-right: <?php print $main_content_side_margins ?>px;
98 }
99 #round-container {
100 width: <?php print $round_container_width ?>px;
101 }
102 <?php if ($sidebar_mode == 'left') { ?>
103 #sidebar-right {
104 float: left;
105 }
106 <?php } else if ($sidebar_mode == 'right') { ?>
107 #sidebar-left {
108 float: right;
109 }
110 <?php } ?>
111 <?php if ($outsidebar_loc == 'right') { ?>
112 #sidebar-outside {
113 float: right;
114 clear: right;
115 }
116
117 #inside-content {
118 float: left;
119 }
120 <?php } ?>
121 </style>
122 <?php if ($suckerfish_align == 'left') { ?>
123 <style type="text/css">
124 #suckerfishmenu {
125 float: left;
126 }
127 </style>
128 <?php } else if ($suckerfish_align == 'center') { ?>
129 <style type="text/css">
130 #suckerfish-container {
131 display: table-cell;
132 }
133 #suckerfishmenu {
134 margin: 0 auto;
135 display: table;
136 float: none;
137 }
138 </style>
139 <!--[if IE]>
140 <style type="text/css">
141 #suckerfish-container {
142 display: block;
143 text-align: center;
144 }
145 #suckerfishmenu {
146 display: inline;
147 zoom: 1;
148 float: none;
149 }
150 </style>
151 <![endif]-->
152 <?php } ?>
153
154 <?php if (theme_get_setting('tapestry_fontfamily')) { ?>
155 <style type="text/css">
156 body {
157 font-family : <?php print theme_get_setting('tapestry_fontfamily') ?>;
158 }
159 </style>
160 <?php } ?>
161
162 <?php if (theme_get_setting('tapestry_fontfamily') == 'Custom') { ?>
163 <?php if (theme_get_setting('tapestry_customfont')) { ?>
164 <style type="text/css">
165 body {
166 font-family : <?php print theme_get_setting('tapestry_customfont') ?>;
167 }
168 </style>
169 <?php } ?>
170 <?php } ?>
171
172 <!--[if lte IE 6]>
173 <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/css/ie6.css";</style>
174 <![endif]-->
175
176 <?php if ($suckerfish) { ?>
177 <?php if (theme_get_setting('tapestry_suckerfishmenus')) { ?>
178 <!--[if lte IE 6]>
179 <script type="text/javascript" src="<?php print $GLOBALS['base_url']."/"; print $directory; ?>/js/suckerfish.js"></script>
180 <![endif]-->
181 <?php } ?>
182 <?php } ?>
183
184 <?php $useicons = theme_get_setting('tapestry_useicons'); ?>
185 <?php if ($useicons) {
186 if (isset($_COOKIE["tapestryicons"])) {
187 $useicons = (($_COOKIE["tapestryicons"]) == "1");
188 }
189 }
190 ?>
191 <?php if ($useicons) { ?>
192 <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/css/icons.css";</style>
193 <?php if (theme_get_setting('tapestry_ie6icons')) { ?>
194 <!--[if lte IE 6]>
195 <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/css/icons-ie6.css";</style>
196 <![endif]-->
197 <?php } ?>
198 <?php } ?>
199
200 <?php if (theme_get_setting('tapestry_iepngfix')) { ?>
201 <!--[if lte IE 6]>
202 <script type="text/javascript">
203 $(document).ready(function(){
204 $(document).pngFix();
205 });
206 </script>
207 <![endif]-->
208 <?php } ?>
209
210 <script type="text/javascript" src="<?php print $GLOBALS['base_url']."/"; print $directory; ?>/js/pickstyle.js"></script>
211 <script type="text/javascript" src="<?php print $GLOBALS['base_url']."/"; print $directory; ?>/js/pickicons.js"></script>
212
213 </head>
214
215 <body>
216 <div id="leaderboard">
217 <?php if ($leaderboard) { ?><?php print $leaderboard ?><?php } ?>
218 </div>
219
220 <div id="header">
221 <div id="headercontainer" class="clear-block">
222 <?php if ($logo) { ?>
223 <div class="site-logo">
224 <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a>
225 </div>
226 <?php } ?>
227 <?php print $search_box; ?>
228 <?php if ($site_name) { ?>
229 <h1 class='site-name'><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1>
230 <?php } ?>
231 <?php if ($site_slogan) { ?>
232 <div class='site-slogan'><?php print $site_slogan ?></div>
233 <?php } ?>
234 <?php
235 $headerregioncount = 0;
236 if ($header_left) { $headerregioncount++; }
237 if ($header_center) { $headerregioncount++; }
238 if ($header_right) { $headerregioncount++; }
239 ?>
240 <?php if ($headerregioncount): ?>
241 <?php $headerregionwidth = 'width' . floor(99 / $headerregioncount); ?>
242 <div class="clear-block" style="line-height:0;"></div>
243 <div id="header-region-container" class="clear-block">
244 <div id="header-region" class="clear-block">
245 <?php if ($header_left): ?>
246 <div id="header-left" class="<?php echo $headerregionwidth ?>"><?php print $header_left; ?></div>
247 <?php endif; ?>
248 <?php if ($header_center): ?>
249 <?php if ($headerregioncount == 3) { ?>
250 <div id="header-center" class="width34"><?php print $header_center; ?></div>
251 <?php } else { ?>
252 <div id="header-center" class="<?php echo $headerregionwidth ?>"><?php print $header_center; ?></div>
253 <?php } ?>
254 <?php endif; ?>
255 <?php if ($header_right): ?>
256 <div id="header-right" class="<?php echo $headerregionwidth ?>"><?php print $header_right; ?></div>
257 <?php endif; ?>
258 </div>
259 <!-- /header-region -->
260 </div>
261 <!-- /header-region-container -->
262 <?php endif; ?>
263
264
265 <?php if ($suckerfish) { ?>
266 <div class="clear-block" style="line-height:0;"></div>
267 <div id="suckerfish-container"><div id="suckerfishmenu"><?php print $suckerfish ?></div></div>
268 <?php } ?>
269 </div>
270 </div>
271 <div id="header-bottom" class="clear-block"></div>
272
273
274 <div id="outer-container">
275 <div id="page-right">
276 <div id="page-left">
277
278 <?php if ($banner): ?>
279 <div id="banner">
280 <?php print $banner; ?>
281 </div>
282 <?php endif; ?>
283
284 <div id="container">
285
286
287 <?php if (theme_get_setting('tapestry_breadcrumb')): ?>
288 <?php if ($breadcrumb): ?>
289 <div id="breadcrumb">
290 <?php print $breadcrumb; ?>
291 </div>
292 <?php endif; ?>
293 <?php endif; ?>
294
295 <?php if ($primary_links): ?>
296 <div id="primary"> <?php print theme('menu_links', $primary_links); ?> </div>
297 <?php endif; ?>
298 <div class="clear-block"></div>
299
300 <div id="inside-content">
301
302 <?php
303 $region1count = 0;
304 if ($user1) { $region1count++; }
305 if ($user2) { $region1count++; }
306 if ($user3) { $region1count++; }
307 ?>
308 <?php if ($region1count): ?>
309 <?php $region1width = 'width' . floor(99 / $region1count); ?>
310 <div id="region1-container" class="clear-block">
311 <div id="region1">
312 <?php if ($user1): ?>
313 <div id="user1" class="<?php echo $region1width ?>"><?php print $user1; ?></div>
314 <?php endif; ?>
315 <?php if ($user2): ?>
316 <?php if ($region1count == 3) { ?>
317 <div id="user2" class="width34"><?php print $user2; ?></div>
318 <?php } else { ?>
319 <div id="user2" class="<?php echo $region1width ?>"><?php print $user2; ?></div>
320 <?php } ?>
321 <?php endif; ?>
322 <?php if ($user3): ?>
323 <div id="user3" class="<?php echo $region1width ?>"><?php print $user3; ?></div>
324 <?php endif; ?>
325 </div>
326 <!-- /region1 -->
327 </div>
328 <!-- /region1-container -->
329 <?php endif; ?>
330 <?php
331 $region2count = 0;
332 if ($user4) { $region2count++; }
333 if ($user5) { $region2count++; }
334 if ($user6) { $region2count++; }
335 ?>
336 <?php if ($region2count): ?>
337 <?php $region2width = 'width' . floor(99 / $region2count); ?>
338 <div id="region2-container" class="clear-block">
339 <div id="region2">
340 <?php if ($user4): ?>
341 <div id="user4" class="<?php echo $region2width ?>"><?php print $user4; ?></div>
342 <?php endif; ?>
343 <?php if ($user5): ?>
344 <?php if ($region2count == 3) { ?>
345 <div id="user5" class="width34"><?php print $user5; ?></div>
346 <?php } else { ?>
347 <div id="user5" class="<?php echo $region2width ?>"><?php print $user5; ?></div>
348 <?php } ?>
349 <?php endif; ?>
350 <?php if ($user6): ?>
351 <div id="user6" class="<?php echo $region2width ?>"><?php print $user6; ?></div>
352 <?php endif; ?>
353 </div>
354 <!-- /region2 -->
355 </div>
356 <!-- /region2-container -->
357 <?php endif; ?>
358 <?php
359 $region3count = 0;
360 if ($user7) { $region3count++; }
361 if ($user8) { $region3count++; }
362 if ($user9) { $region3count++; }
363 ?>
364 <?php if ($region3count): ?>
365 <?php $region3width = 'width' . floor(99 / $region3count); ?>
366 <div id="region3-container" class="clear-block">
367 <div id="region3">
368 <?php if ($user7): ?>
369 <div id="user7" class="<?php echo $region3width ?>"><?php print $user7; ?></div>
370 <?php endif; ?>
371 <?php if ($user8): ?>
372 <?php if ($region3count == 3) { ?>
373 <div id="user8" class="width34"><?php print $user8; ?></div>
374 <?php } else { ?>
375 <div id="user8" class="<?php echo $region3width ?>"><?php print $user8; ?></div>
376 <?php } ?>
377 <?php endif; ?>
378 <?php if ($user9): ?>
379 <div id="user9" class="<?php echo $region3width ?>"><?php print $user9; ?></div>
380 <?php endif; ?>
381 </div>
382 <!-- /region3 -->
383 </div>
384 <!-- /region3-container -->
385 <?php endif; ?>
386 <div class="clear-block">
387 <?php
388 $sidebar_mode = theme_get_setting('tapestry_sidebarmode');
389 if ($sidebar_mode == 'right') {
390 if ($sidebar_right) { ?><div id="sidebar-right"><?php print $sidebar_right ?></div><?php }
391 if ($sidebar_left) { ?><div id="sidebar-left"><?php print $sidebar_left ?></div><?php }
392 } else {
393 if ($sidebar_left) { ?><div id="sidebar-left"><?php print $sidebar_left ?></div><?php }
394 if ($sidebar_right) { ?><div id="sidebar-right"><?php print $sidebar_right ?></div><?php }
395 }
396 ?>
397 <div id="mainContent">
398 <?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
399
400
401 <?php $contenttopcountcount = 0;
402 if ($content_top_left) { $contenttopcountcount++; }
403 if ($content_top_right) { $contenttopcountcount++; }
404 ?>
405 <?php if ($contenttopcountcount ) { ?>
406 <?php $contenttopwidth = 'width' . floor(99 / $contenttopcountcount); ?>
407 <div id="content-top" class="clear-block">
408 <?php if ($content_top_left) { ?><div id="content-top-left" class="<?php echo $contenttopwidth ?>"><?php print $content_top_left ?></div><?php } ?>
409 <?php if ($content_top_right) { ?><div id="content-top-right" class="<?php echo $contenttopwidth ?>"><?php print $content_top_right ?></div><?php } ?>
410 </div>
411 <?php } ?>
412
413 <h1 class="title"><?php print $title ?></h1>
414 <div class="tabs"><?php print $tabs ?></div>
415 <?php print $help ?>
416 <?php print $messages ?>
417 <?php print $content; ?>
418
419 <?php $contentbottomcountcount = 0;
420 if ($content_bottom_left) { $contentbottomcountcount++; }
421 if ($content_bottom_right) { $contentbottomcountcount++; }
422 ?>
423 <?php if ($contentbottomcountcount ) { ?>
424 <?php $contentbottomwidth = 'width' . floor(99 / $contentbottomcountcount); ?>
425 <div id="content-bottom" class="clear-block">
426 <?php if ($content_bottom_left) { ?><div id="content-bottom-left" class="<?php echo $contentbottomwidth ?>"><?php print $content_bottom_left ?></div><?php } ?>
427 <?php if ($content_bottom_right) { ?><div id="content-bottom-right" class="<?php echo $contentbottomwidth ?>"><?php print $content_bottom_right ?></div><?php } ?>
428 </div>
429 <?php } ?>
430
431 <!-- end #mainContent --></div>
432 </div>
433
434
435 <?php
436 $region4count = 0;
437 if ($user10) { $region4count++; }
438 if ($user11) { $region4count++; }
439 if ($user12) { $region4count++; }
440 ?>
441 <?php if ($region4count): ?>
442 <?php $region4width = 'width' . floor(99 / $region4count); ?>
443 <div id="region4-container" class="clear-block">
444 <div id="region4">
445 <?php if ($user10): ?>
446 <div id="user10" class="<?php echo $region4width ?>"><?php print $user10; ?></div>
447 <?php endif; ?>
448 <?php if ($user11): ?>
449 <?php if ($region4count == 3) { ?>
450 <div id="user11" class="width34"><?php print $user11; ?></div>
451 <?php } else { ?>
452 <div id="user11" class="<?php echo $region4width ?>"><?php print $user11; ?></div>
453 <?php } ?>
454 <?php endif; ?>
455 <?php if ($user12): ?>
456 <div id="user12" class="<?php echo $region4width ?>"><?php print $user12; ?></div>
457 <?php endif; ?>
458 </div>
459 <!-- /region4 -->
460 </div>
461 <!-- /region4-container -->
462 <?php endif; ?>
463
464 </div> <!-- /inside-content -->
465 <?php if ($sidebar_outside) { ?>
466 <div id="sidebar-outside"><?php print $sidebar_outside ?></div>
467 <?php } ?>
468 <div class="clear-block" style="clear: both;"></div>
469 <div class="page-bottom clear-block"></div>
470
471 <?php
472 $region5count = 0;
473 if ($user13) { $region5count++; }
474 if ($user14) { $region5count++; }
475 if ($user15) { $region5count++; }
476 ?>
477 <?php if ($region5count): ?>
478 <div id="mastfoot" class="clear-block">
479 <?php $region5width = 'width' . floor(99 / $region5count); ?>
480 <div id="region5-container" class="clear-block">
481 <div id="region5">
482 <?php if ($user13): ?>
483 <div id="user13" class="<?php echo $region5width ?>"><?php print $user13; ?></div>
484 <?php endif; ?>
485 <?php if ($user14): ?>
486 <?php if ($region5count == 3) { ?>
487 <div id="user14" class="width34"><?php print $user14; ?></div>
488 <?php } else { ?>
489 <div id="user14" class="<?php echo $region5width ?>"><?php print $user14; ?></div>
490 <?php } ?>
491 <?php endif; ?>
492 <?php if ($user15): ?>
493 <div id="user15" class="<?php echo $region5width ?>"><?php print $user15; ?></div>
494 <?php endif; ?>
495 </div>
496 <!-- /region5 -->
497 </div>
498 <!-- /region5-container -->
499 </div>
500 <div id="mastfoot-bottom" class="clear-block"></div>
501 <?php endif; ?>
502
503 <div id="trailerboard">
504 <div id="footer">
505 <?php
506 $footerregioncount = 0;
507 if ($footer_left) { $footerregioncount++; }
508 if ($footer_center) { $footerregioncount++; }
509 if ($footer_right) { $footerregioncount++; }
510 ?>
511 <?php if ($footerregioncount): ?>
512 <?php $footerregionwidth = 'width' . floor(99 / $footerregioncount); ?>
513 <div id="footer-region-container" class="clear-block">
514 <div id="footer-region" class="clear-block">
515 <?php if ($footer_left): ?>
516 <div id="footer-left" class="<?php echo $footerregionwidth ?>"><?php print $footer_left; ?></div>
517 <?php endif; ?>
518 <?php if ($footer_center): ?>
519 <?php if ($footerregioncount == 3) { ?>
520 <div id="footer-center" class="width34"><?php print $footer_center; ?></div>
521 <?php } else { ?>
522 <div id="footer-center" class="<?php echo $footerregionwidth ?>"><?php print $footer_center; ?></div>
523 <?php } ?>
524 <?php endif; ?>
525 <?php if ($footer_right): ?>
526 <div id="footer-right" class="<?php echo $footerregionwidth ?>"><?php print $footer_right; ?></div>
527 <?php endif; ?>
528 </div>
529 <!-- /footer-region -->
530 </div>
531 <!-- /footer-region-container -->
532 <?php endif; ?>
533 <?php if ($footer_message) { ?><div id="footer-message"><?php print $footer_message ?></div><?php } ?>
534 <!-- end #footer --></div>
535 <?php
536 $style = theme_get_setting('tapestry_style');
537 if (!$style)
538 {
539 $style = 'gerberdaisy';
540 }
541 if (isset($_COOKIE["tapestrystyle"])) {
542 $style = $_COOKIE["tapestrystyle"];
543 }
544 $logoPath = base_path() . path_to_theme() . '/images/' . $style . '/roopletheme.png';
545 $logoRolloverPath = base_path() . path_to_theme() . '/images/' . $style . '/roopletheme-rollover.png';
546 ?>
547 <script type="text/javascript">
548 <!-- Hide Script
549 function move_in(img_name,img_src) {
550 document[img_name].src=img_src;
551 }
552
553 function move_out(img_name,img_src) {
554 document[img_name].src=img_src;
555 }
556 //End Hide Script-->
557 </script>
558 <a href="http://www.roopletheme.com" onmouseover="move_in('rtlogo','<?php print $logoRolloverPath ?>')" onmouseout="move_out('rtlogo','<?php print $logoPath ?>')" title="RoopleTheme!" target="_blank"><img class="rtlogo" src="<?php print $logoPath ?>" name="rtlogo" alt="RoopleTheme"/></a>
559 </div>
560
561 <!-- end #container --></div>
562 </div></div>
563
564 <div id="round-right">
565 <div id="round-left">
566 <div id="round-container">
567 </div></div></div>
568
569 </div>
570
571 <?php print $closure ?>
572 </body>
573 </html>

  ViewVC Help
Powered by ViewVC 1.1.2