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

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

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


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

  ViewVC Help
Powered by ViewVC 1.1.2