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

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

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


Revision 1.6 - (show annotations) (download) (as text)
Tue Oct 21 17:11:45 2008 UTC (13 months ago) by stevelockwood
Branch: MAIN
CVS Tags: DRUPAL-6--1-6, HEAD
Changes since 1.5: +5 -3 lines
File MIME type: text/x-php
DRUPAL-6--1-6:
--------------
Bug in additional stylesheets fixed
Body classes include a reference to the node so you can define node-specific css
Bug in content links (incorrect html) fixed
"No promoted content" setting added so you can have a default front page but without the default Drupal welcome message
Block ID should now display properly - if that option is selected
1 <?php
2 /* Flexible 2 page template
3 */
4
5 $boxstart = '<div class="b0"><div class="b1"><div class="b2"><div class="b3"><div class="b4"><div class="b5"><div class="b6"><div class="b7"><div class="b8"><div class="b9">';
6 $boxend = '</div></div></div></div></div></div></div></div></div></div>';
7
8 $css_rules = theme_get_setting('css_rules');
9
10 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
11 <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>">
12
13 <head>
14 <title><?php print $head_title; ?></title>
15 <?php print $head; ?>
16 <?php print $styles; ?>
17 <?php print $scripts; ?>
18 <?php if ($css_rules): ?>
19 <style type="text/css">
20 <?php print $css_rules ?>
21 </style>
22 <?php endif; ?>
23 </head>
24
25 <body class="<?php print $body_classes; ?> path_<?php print str_replace('/','_',drupal_get_path_alias($_GET['q'])) ?>">
26 <div id="body_outer" class="<?php print theme_get_setting('css_body_outer') ?>"><?php print $boxstart; ?>
27 <!-- HEADER OUTER -->
28 <div id="header_outer" class="<?php print theme_get_setting('css_header_outer') ?>"><?php print $boxstart; ?>
29 <!-- ACCESSIBILITY -->
30 <a id="top"></a>
31 <div id="accessibility" class="<?php print theme_get_setting('css_accessibility') ?>"><?php print $boxstart; ?>
32 <ul>
33 <li><a href="#content-link"><?php print t('Skip to content') ?></a></li>
34 <?php if ($navigation_link): ?>
35 <li><a href="#navigation-link"><?php print t('Skip to navigation') ?></a></li>
36 <?php endif; ?>
37 <?php if ($search_link): ?>
38 <li><a href="#search-link"><?php print t('Skip to search') ?></a></li>
39 <?php endif; ?>
40 <?php if ($access_guide): ?>
41 <li><?php print $access_guide; ?></li>
42 <?php endif; ?>
43 </ul>
44 <?php if ($modes && ($modelocation == 'accessibility')): ?>
45 <div class="modes"> - <?php print $modes; ?></div>
46 <?php endif; ?>
47 <?php print $boxend; ?></div>
48
49 <!-- HEADER TOP -->
50 <?php if ($header_top): ?>
51 <div id="header_top" class="<?php print theme_get_setting('css_header_top') ?>"><?php print $boxstart; ?>
52 <?php print $header_top ?>
53 <?php print $boxend; ?></div>
54 <?php endif; ?>
55
56 <!-- HEADER INNER -->
57 <?php if ($logo || $site_name || $site_slogan): ?>
58 <div id="header_inner" class="<?php print theme_get_setting('css_header_inner') ?>"><?php print $boxstart; ?>
59 <!-- LOGO -->
60 <?php if ($logo): ?>
61 <div id="logo" class="<?php print theme_get_setting('css_logo') ?>"><?php print $boxstart; ?>
62 <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo-image" /></a>
63 <?php print $boxend; ?></div>
64 <?php endif; ?>
65 <!-- SITE NAME -->
66 <?php if ($site_name): ?>
67 <div id="site_name" class="<?php print theme_get_setting('css_site_name') ?>"><?php print $boxstart; ?>
68 <h1><a href="<?php print $base_path; ?>" title="<?php print $site_name; ?>"><?php print $site_name; ?></a></h1>
69 <?php print $boxend; ?></div>
70 <?php endif; ?>
71 <!-- SITE SLOGAN -->
72 <?php if ($site_slogan): ?>
73 <div id="site_slogan" class="<?php print theme_get_setting('css_site_slogan') ?>"><?php print $boxstart; ?>
74 <?php print $site_slogan; ?>
75 <?php print $boxend; ?></div>
76 <?php endif; ?>
77 <?php print $boxend; ?></div>
78 <?php endif; ?>
79
80 <!-- HEADER BOTTOM -->
81 <?php if ($header_bottom): ?>
82 <div id="header_bottom" class="<?php print theme_get_setting('css_header_bottom') ?>"><?php print $boxstart; ?>
83 <?php print $header_bottom ?>
84 <?php print $boxend; ?></div>
85 <?php endif; ?>
86 <?php print $boxend; ?></div>
87
88 <!-- CONTENT OUTER -->
89 <div id="content_outer" class="<?php print theme_get_setting('css_content_outer') ?>"><?php print $boxstart; ?>
90 <!-- LEFT -->
91 <?php if ($left || ($modes && ($modelocation == 'left'))): ?>
92 <div id="left" class="<?php print theme_get_setting('css_left') ?>"><?php print $boxstart; ?>
93 <?php if ($modes && ($modelocation == 'left')): ?>
94 <div class="modes"><?php print $modes; ?></div>
95 <?php endif; ?>
96 <?php print $left ?>
97 <?php print $boxend; ?></div>
98 <?php endif; ?>
99
100 <!-- CENTRE -->
101 <div id="centre" class="<?php print theme_get_setting('css_centre') ?>"><?php print $boxstart; ?>
102
103 <?php if ($modes && ($modelocation == 'centre')): ?>
104 <div class="modes"><?php print $modes; ?></div>
105 <?php endif; ?>
106
107 <!-- CONTENT TOP -->
108 <?php if ($content_top): ?>
109 <div id="content_top" class="<?php print theme_get_setting('css_content_top') ?>"><?php print $boxstart; ?>
110 <?php print $content_top ?>
111 <?php print $boxend; ?></div>
112 <?php endif; ?>
113
114 <!-- CONTENT INNER -->
115 <?php if ($mission || $breadcrumb || $title || $messages || $tabs || $help || $content): ?>
116 <div id="content_inner" class="<?php print theme_get_setting('css_content_inner') ?>"><?php print $boxstart; ?>
117 <!-- MISSION -->
118 <?php if ($mission): ?>
119 <div id="mission" class="<?php print theme_get_setting('css_mission') ?>"><?php print $boxstart; ?>
120 <?php print $mission ?>
121 <?php print $boxend; ?></div>
122 <?php endif; ?>
123 <!-- BREADCRUMB -->
124 <?php if ($breadcrumb): ?>
125 <div id="breadcrumb" class="<?php print theme_get_setting('css_breadcrumb') ?>"><?php print $boxstart; ?>
126 <?php print $breadcrumb ?>
127 <?php print $boxend; ?></div>
128 <?php endif; ?>
129 <!-- CONTENT LINK -->
130 <a id="content-link" ></a>
131 <a class="top-link" href="#top"><?php print ('Skip to top of page'); ?></a>
132 <!-- TITLE -->
133 <?php if ($title): ?>
134 <div id="title" class="<?php print theme_get_setting('css_title') ?>"><?php print $boxstart; ?>
135 <h2><?php print $title ?></h2>
136 <?php print $boxend; ?></div>
137 <?php endif; ?>
138 <!-- MESSAGES -->
139 <?php if ($messages): ?>
140 <div id="messages" class="<?php print theme_get_setting('css_messages') ?>"><?php print $boxstart; ?>
141 <?php print $messages ?>
142 <?php print $boxend; ?></div>
143 <?php endif; ?>
144 <!-- TABS -->
145 <?php if ($tabs): ?>
146 <div id="tabs" class="<?php print theme_get_setting('css_tabs') ?>"><?php print $boxstart; ?>
147 <?php print $tabs ?>
148 <?php print $boxend; ?></div>
149 <?php endif; ?>
150 <!-- HELP -->
151 <?php if ($help): ?>
152 <div id="help" class="<?php print theme_get_setting('css_help') ?>"><?php print $boxstart; ?>
153 <?php print $help ?>
154 <?php print $boxend; ?></div>
155 <?php endif; ?>
156
157 <!-- CONTENT -->
158 <?php if ($content): ?>
159 <div id="content" class="<?php print theme_get_setting('css_content') ?>"><?php print $boxstart; ?>
160 <?php if (!drupal_is_front_page() || !theme_get_setting('no_promoted_content')) { ?>
161 <?php print $content; ?>
162 <?php } ?>
163 <?php print $boxend; ?></div>
164 <?php endif; ?>
165
166 <?php print $boxend; ?></div>
167 <?php endif; ?>
168
169 <!-- CONTENT BOTTOM -->
170 <?php if ($content_bottom): ?>
171 <div id="content_bottom" class="<?php print theme_get_setting('css_content_bottom') ?>"><?php print $boxstart; ?>
172 <?php print $content_bottom ?>
173 <?php print $boxend; ?></div>
174 <?php endif; ?>
175
176 <?php print $boxend; ?></div>
177
178 <!-- RIGHT -->
179 <?php if ($right || (modes && ($modelocation == 'right'))): ?>
180 <div id="right" class="<?php print theme_get_setting('css_right') ?>"><?php print $boxstart; ?>
181 <?php if ($modes && ($modelocation == 'right')): ?>
182 <div class="modes"><?php print $modes; ?></div>
183 <?php endif; ?>
184 <?php print $right ?>
185 <?php print $boxend; ?></div>
186 <?php endif; ?>
187
188 <!-- need this for the parent div to be resized correctly in Firefox -->
189 <div class="clearboth"></div>
190
191 <?php print $boxend; ?></div>
192
193 <!-- FOOTER -->
194 <?php if ($footer_top || $footer_message || $footer_bottom || ($modelocation == 'footer')): ?>
195 <div id="footer_outer" class="<?php print theme_get_setting('css_footer_outer') ?>"><?php print $boxstart; ?>
196 <!-- FOOTER TOP -->
197 <?php if ($footer_top): ?>
198 <div id="footer_top" class="<?php print theme_get_setting('css_footer_top') ?>"><?php print $boxstart; ?>
199 <?php print $footer_top ?>
200 <?php print $boxend; ?></div>
201 <?php endif; ?>
202 <!-- FOOTER MESSAGE -->
203 <?php if ($footer_message): ?>
204 <div id="footer_message" class="<?php print theme_get_setting('css_footer_message') ?>"><?php print $boxstart; ?>
205 <?php print $footer_message ?>
206 <?php print $boxend; ?></div>
207 <?php endif; ?>
208 <!-- FOOTER BOTTOM -->
209 <?php if ($footer_bottom): ?>
210 <div id="footer_bottom" class="<?php print theme_get_setting('css_footer_bottom') ?>"><?php print $boxstart; ?>
211 <?php print $footer_bottom ?>
212 <?php print $boxend; ?></div>
213 <?php endif; ?>
214 <?php if ($modes && ($modelocation == 'footer')): ?>
215 <div class="modes"><?php print $modes; ?></div>
216 <?php endif; ?>
217 <?php print $boxend; ?></div>
218 <?php endif; ?>
219
220 <?php print $boxend; ?></div>
221 <?php if ($validators):
222 $uri = 'xxxxx'; ?>
223 <div class="validators">
224 <a href="http://validator.w3.org/check?uri=referer"><img
225 src="http://www.w3.org/Icons/valid-xhtml10-blue"
226 alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
227 <a href="http://jigsaw.w3.org/css-validator/check/referer">
228 <img style="border:0;width:88px;height:31px"
229 src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
230 alt="Valid CSS!" />
231 </a>
232 </div>
233 <?php endif; ?>
234
235 <?php print $closure; ?>
236 </body>
237
238 </html>

  ViewVC Help
Powered by ViewVC 1.1.2