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

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

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


Revision 1.5 - (show annotations) (download) (as text)
Tue Sep 9 10:42:12 2008 UTC (14 months, 2 weeks ago) by roopletheme
Branch: MAIN
CVS Tags: DRUPAL-5--1-7, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.4: +0 -0 lines
File MIME type: text/x-php
Complete overhaul, fixed numerous bugs.
1 <?php
2 // $Id: $
3 ?>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
6 <head>
7 <title><?php print $head_title ?></title>
8 <?php print $head ?><?php print $styles ?><?php print $scripts ?>
9 <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
10
11 <?php if (theme_get_setting('litejazz_width')) { ?>
12 <style type="text/css">
13 #page {
14 width : <?php print theme_get_setting('litejazz_fixedwidth') ?>px;
15 }
16 </style>
17 <?php }
18 else { ?>
19 <style type="text/css">
20 #page {
21 width: 95%;
22 }
23 </style>
24 <?php } ?>
25
26 <?php if ($left_sidebar_width = theme_get_setting('litejazz_leftsidebarwidth')) { ?>
27 <style type="text/css">
28 body.sidebar-left #main { margin-left: -<?php print $left_sidebar_width ?>px; }
29 body.sidebars #main { margin-left: -<?php print $left_sidebar_width ?>px; }
30 body.sidebar-left #squeeze { margin-left: <?php print $left_sidebar_width ?>px; }
31 body.sidebars #squeeze { margin-left: <?php print $left_sidebar_width ?>px; }
32 #sidebar-left { width: <?php print $left_sidebar_width ?>px; }
33 </style>
34 <?php } ?>
35 <?php if ($right_sidebar_width = theme_get_setting('litejazz_rightsidebarwidth')) { ?>
36 <style type="text/css">
37 body.sidebar-right #main { margin-right: -<?php print $right_sidebar_width ?>px; }
38 body.sidebars #main { margin-right: -<?php print $right_sidebar_width ?>px; }
39 body.sidebar-right #squeeze { margin-right: <?php print $right_sidebar_width ?>px; }
40 body.sidebars #squeeze { margin-right: <?php print $right_sidebar_width ?>px; }
41 #sidebar-right { width: <?php print $right_sidebar_width ?>px; }
42 </style>
43 <?php } ?>
44
45 <?php if (theme_get_setting('litejazz_fontfamily')) { ?>
46 <style type="text/css">
47 body {
48 font-family : <?php print theme_get_setting('litejazz_fontfamily') ?>;
49 }
50 </style>
51 <?php } ?>
52
53 <?php if (theme_get_setting('litejazz_fontfamily') == 'Custom') { ?>
54
55 <?php if (theme_get_setting('litejazz_customfont')) { ?>
56 <style type="text/css">
57 body {
58 font-family : <?php print theme_get_setting('litejazz_customfont') ?>;
59 }
60 </style>
61 <?php } ?>
62 <?php } ?>
63
64 <?php if (theme_get_setting('litejazz_iepngfix')) { ?>
65 <!--[if lte IE 6]>
66 <script type="text/javascript">
67 $(document).ready(function(){
68 $(document).pngFix();
69 });
70 </script>
71 <![endif]-->
72 <?php } ?>
73
74 <?php if (theme_get_setting('litejazz_usecustomlogosize')) { ?>
75 <style type="text/css">
76 img#logo {
77 width : <?php print theme_get_setting('litejazz_logowidth') ?>px;
78 height: <?php print theme_get_setting('litejazz_logoheight') ?>px;
79 }
80 </style>
81 <?php } ?>
82
83
84 <!--[if IE]>
85 <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/css/ie.css";</style>
86 <![endif]-->
87
88 <!--[if lte IE 6]>
89 <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/css/ie6.css";</style>
90 <![endif]-->
91
92 <?php if ($suckerfish) { ?>
93 <?php if (theme_get_setting('litejazz_suckerfish')) { ?>
94 <!--[if lte IE 6]>
95 <script type="text/javascript" src="<?php print $GLOBALS['base_url'] ."/"; print $directory; ?>/js/suckerfish.js"></script>
96 <![endif]-->
97 <?php } ?>
98 <?php } ?>
99
100 <script type="text/javascript" src="<?php print $GLOBALS['base_url'] ."/"; print $directory; ?>/js/pickstyle.js"></script>
101
102 </head>
103 <body<?php print phptemplate_body_class($sidebar_left, $sidebar_right); ?>>
104 <div id="page">
105 <div id="masthead">
106 <div id="header" class="clear-block">
107 <div class="header-right">
108 <div class="header-left"> <?php print $search_box; ?>
109 <div id="logo-title">
110 <?php if ($logo): ?>
111 <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>"> <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" /> </a>
112 <?php endif; ?>
113 </div>
114 <!-- /logo-title -->
115 <div id="name-and-slogan">
116 <?php if ($site_name): ?>
117 <h1 id='site-name'> <a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>"> <?php print $site_name; ?> </a> </h1>
118 <?php endif; ?>
119 <?php if ($site_slogan): ?>
120 <div id='site-slogan'> <?php print $site_slogan; ?> </div>
121 <?php endif; ?>
122 </div>
123 <!-- /name-and-slogan -->
124 <?php if ($header): ?>
125 <div style="clear:both"></div>
126 <?php print $header; ?>
127 <?php endif; ?>
128 </div>
129 <!-- /header-left -->
130 </div>
131 <!-- /header-right -->
132 </div>
133 <!-- /header -->
134 </div>
135 <div id="navigation" class="menu <?php if ($primary_links) {
136 print "withprimary";
137 }
138 if ($secondary_links) {
139 print " withsecondary";
140 } ?> ">
141 <?php if ($primary_links): ?>
142 <div id="primary" class="clear-block"> <?php print theme('menu_links', $primary_links); ?> </div>
143 <?php endif; ?>
144 <?php if ($secondary_links): ?>
145 <div id="secondary" class="clear-block"> <?php print theme('menu_links', $secondary_links); ?> </div>
146 <?php endif; ?>
147 </div>
148 <?php if ($suckerfish): ?>
149 <div id="suckerfishmenu" class="clear-block">
150 <?php print $suckerfish; ?>
151 </div>
152 <?php endif; ?>
153 <!-- /navigation -->
154 <?php
155 $section1count = 0;
156 if ($user1) {
157 $section1count++;
158 }
159 if ($user2) {
160 $section1count++;
161 }
162 if ($user3) {
163 $section1count++;
164 }
165 ?>
166 <?php if ($section1count): ?>
167 <?php $section1width = 'width'. floor(99 / $section1count); ?>
168 <div class="clear-block clr" id="section1">
169 <div class="sections">
170 <?php if ($user1): ?>
171 <div class="section <?php echo $section1width ?>"><?php print $user1; ?></div>
172 <?php endif; ?>
173 <?php if ($user2): ?>
174 <div class="section <?php echo $section1width ?>"><?php print $user2; ?></div>
175 <?php endif; ?>
176 <?php if ($user3): ?>
177 <div class="section <?php echo $section1width ?>"><?php print $user3; ?></div>
178 <?php endif; ?>
179 </div>
180 <div style="clear:both"></div>
181 </div>
182 <!-- /section1 -->
183 <?php endif; ?>
184 <div id="middlecontainer">
185 <?php if ($sidebar_left) { ?>
186 <div id="sidebar-left"><?php print $sidebar_left ?> </div>
187 <?php } ?>
188 <div id="main"><div id="squeeze">
189 <?php if (theme_get_setting('litejazz_breadcrumb')): ?>
190 <?php if ($breadcrumb): ?>
191 <div id="breadcrumb"> <?php print $breadcrumb; ?> </div>
192 <?php endif; ?>
193 <?php endif; ?>
194 <?php if ($mission) { ?>
195 <div id="mission"><?php print $mission ?></div>
196 <?php } ?>
197 <?php if ($content_top):?>
198 <div id="content-top"><?php print $content_top; ?></div>
199 <?php endif; ?>
200 <h1 class="title"><?php print $title ?></h1>
201 <div class="tabs"><?php print $tabs ?></div>
202 <?php print $help ?> <?php print $messages ?> <?php print $content; ?> <?php print $feed_icons; ?>
203 <?php if ($content_bottom): ?>
204 <div id="content-bottom"><?php print $content_bottom; ?></div>
205 <?php endif; ?>
206 </div></div>
207 <?php if ($sidebar_right) { ?>
208 <div id="sidebar-right"><?php print $sidebar_right ?> </div>
209 <?php } ?>
210 </div>
211 <div style="clear:both"></div>
212 <?php
213 $section2count = 0;
214 if ($user4) {
215 $section2count++;
216 }
217 if ($user5) {
218 $section2count++;
219 }
220 if ($user6) {
221 $section2count++;
222 }
223 ?>
224 <?php if ($section2count): ?>
225 <?php $section2width = 'width'. floor(99 / $section2count); ?>
226 <div class="clear-block clr" id="section2">
227 <div class="sections">
228 <?php if ($user4): ?>
229 <div class="section <?php echo $section2width ?>"><?php print $user4; ?></div>
230 <?php endif; ?>
231 <?php if ($user5): ?>
232 <div class="section <?php echo $section2width ?>"><?php print $user5; ?></div>
233 <?php endif; ?>
234 <?php if ($user6): ?>
235 <div class="section <?php echo $section2width ?>"><?php print $user6; ?></div>
236 <?php endif; ?>
237 </div>
238 <div style="clear:both"></div>
239 </div>
240 <!-- /section2 -->
241 <?php endif; ?>
242 <div id="footer">
243 <?php if ($footer_region) {
244 ?><div id="footer-region"><?php print $footer_region?></div><?php
245 } ?>
246 <div id="footer-message"><?php if ($footer_message) {
247 ?><?php print $footer_message ?><?php
248 } ?>
249 <br /><a href="http://www.roopletheme.com" title="RoopleTheme!"><img src="<?php print base_path() . path_to_theme() ."/roopletheme.png"; ?>" alt="RoopleTheme!"/></a>
250 </div>
251 </div>
252
253 <div id="footer-wrapper" class="clear-block">
254 <div class="footer-right">
255 <div class="footer-left"> </div>
256 <!-- /footer-left -->
257 </div>
258 <!-- /footer-right -->
259 </div>
260 <!-- /footer-wrapper -->
261 <?php print $closure ?> </div>
262 </body>
263 </html>

  ViewVC Help
Powered by ViewVC 1.1.2