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

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

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


Revision 1.10 - (show annotations) (download) (as text)
Thu Oct 5 23:02:46 2006 UTC (3 years, 1 month ago) by kbahey
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-4-7
Changes since 1.9: +4 -7 lines
File MIME type: text/x-php
#54420 Porting to Drupal 4.7, by drawk, and me.
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html lang="<?php print $language ?>" xml:lang="<?php print $language ?>" xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title><?php print $head_title ?></title>
6 <?php print $head ?>
7 <style type="text/css" media="screen">
8 <!--
9 @import url(<?php print base_path() . path_to_theme() . "/basics.css" ?>);
10 @import url(<?php print base_path() . path_to_theme() . "/layout.css"; ?>);
11 @import url(<?php print base_path() . path_to_theme() . "/modules.css"; ?>);
12 // -->
13 </style>
14 <?php print $styles ?>
15 </head>
16 <?php
17 $classes = array();
18 $classes[] = 'layout-'. $layout;
19 if ($_GET['q']) {
20 $classes[] = preg_replace('/\d+-/', '', str_replace('/', '-', $_GET['q']));
21 }
22 if (arg(1)) {
23 $classes[] = arg(0) . '-' . arg(1);
24 }
25 $classes[] = 'page-'. str_replace('/', '-', $_GET['q']);
26 ?>
27 <body <?php print theme("onload_attribute"); ?> class="<?php print implode(' ', $classes) ?>">
28
29 <!-- Accessibility & Search engine optimization -->
30 <div class="hide">
31 <?php if ($site_name) : ?>
32 <h1><a href="<?php print url(); ?>/" title="Index Page"><?php print($site_name)?></a> <?php if ($mission != ""): ?> &mdash; <?php print($mission) ?><?php endif; ?></h1>
33 <?php endif;?>
34 <p>
35 <?php print l(t('Skip to content'), $_GET['q'],array('title' =>'Skip directly to the content'),NULL,'main-content',FALSE) ?>
36 </p>
37 </div>
38
39 <div id="outer-wrapper">
40
41 <!-- START: BRANDING -->
42
43 <div id="branding">
44 <?php if ($logo) : ?>
45 <div id="logo"><a href="<?php print url() ?>" title="Index Page"><img src="<?php print($logo) ?>" alt="<?php print($site_name) ?> Logo" /></a></div>
46 <?php else: ?>
47 <?php if ($site_name) : ?>
48 <h1 id="site-name"><a href="<?php print url() ?>" title="Index Page"><?php print($site_name) ?></a></h1>
49 <?php endif;?>
50 <?php endif;?>
51 <?php if ($site_slogan) : ?>
52 <div id="site-slogan"><?php print($site_slogan) ?></div>
53 <?php endif;?>
54 </div>
55
56 <hr class="hide" />
57
58 <!-- END: BRANDING -->
59
60 <div id="wrapper">
61 <div id="container">
62 <div id="content">
63
64 <!-- START: LEFT REGION -->
65
66 <?php if ($sidebar_left != '') { ?>
67 <div class="sidebar" id="sidebar-left">
68
69 <?php if ( $layout == "left" || "both" ): ?>
70 <!-- START: NAVIGATION -->
71
72 <div id="navigation">
73 <h2 class="hide">Site Navigation</h2>
74 <?php if (is_array($primary_links)) : ?>
75 <ul id="nav-primary">
76 <?php foreach ($primary_links as $link): ?>
77 <li><?php print $link?></li>
78 <?php endforeach; ?>
79 </ul>
80 <?php endif; ?>
81 <?php if (is_array($secondary_links) && (count($secondary_links) != 0)) : ?>
82 <ul id="nav-secondary">
83 <?php foreach ($secondary_links as $link): ?>
84 <li><?php print $link?></li>
85 <?php endforeach; ?>
86 </ul>
87 <?php endif; ?>
88 </div>
89
90 <hr class="hide" />
91
92 <!-- END: NAVIGATION -->
93 <?php endif; ?>
94
95 <?php if ($search_box && $layout == "left" ): ?>
96 <!-- START: SEARCH -->
97 <div class="block block-search" id="block-search">
98 <h2>Search this site</h2>
99 <div class="content">
100 <form action="<?php print $search_url ?>" method="post" id="search">
101 <input class="form-text" type="text" size="15" value="" name="edit[keys]" />
102 <input class="form-submit" type="submit" value="<?php print $search_button_text ?>" />
103 </form>
104 </div>
105 </div>
106
107 <hr class="hide" />
108
109 <!-- END: SEARCH -->
110 <?php endif; ?>
111
112 <?php print(word_split($sidebar_left, 15)); ?>
113 </div>
114 <?php } ?>
115
116 <!-- END: LEFT REGION -->
117
118
119 <!-- START: CONTENT -->
120
121 <div id="main-content">
122 <?php if (($_GET['q']) != variable_get('site_frontpage','node')): /* this prevents breadcrumb from showing up on homepage */ ?>
123 <?php if ($breadcrumb != ""): ?>
124 <div id="breadcrumbs">
125 <?php print $breadcrumb;?>
126 </div>
127 <hr class="hide" />
128 <?php endif; ?>
129 <?php endif; ?>
130
131 <?php if ($mission != ""): ?>
132 <div id="mission">
133 <?php print $mission ?>
134 </div>
135 <?php endif; ?>
136
137 <?php if ($title != ""): ?>
138 <h1 class="page-title"><?php print $title ?></h1>
139 <?php endif; ?>
140
141 <?php if ($tabs != ""): ?>
142 <?php print $tabs ?>
143 <?php endif; ?>
144
145 <?php if ($messages != ""): ?>
146 <div class="message"><?php print $messages ?></div>
147 <?php endif; ?>
148
149 <?php if ($help != ""): ?>
150 <div id="help"><?php print $help ?></div>
151 <?php endif; ?>
152
153 <div id="body-content">
154 <?php print $content ?>
155 </div>
156 </div>
157
158 <hr class="hide" />
159
160 <!-- END: CONTENT -->
161
162 </div><!-- end #content -->
163 </div><!-- end #container -->
164
165 <!-- START: SECONDARY CONTENT -->
166 <?php if ($sidebar_right != '') : ?>
167
168 <div class="sidebar" id="sidebar-right">
169 <?php if ( $layout == "right" ): ?>
170 <!-- START: NAVIGATION -->
171
172 <div id="navigation">
173 <h2 class="hide">Site Navigation</h2>
174 <?php if (is_array($primary_links)) : ?>
175 <ul id="nav-primary">
176 <?php foreach ($primary_links as $link): ?>
177 <li><?php print $link?></li>
178 <?php endforeach; ?>
179 </ul>
180 <?php endif; ?>
181
182 <?php if (is_array($secondary_links) && (count($secondary_links) != 0)) : ?>
183 <ul id="nav-secondary">
184 <?php foreach ($secondary_links as $link): ?>
185 <li><?php print $link?></li>
186 <?php endforeach; ?>
187 </ul>
188 <?php endif; ?>
189 </div>
190
191 <hr class="hide" />
192
193 <!-- END: NAVIGATION -->
194 <?php endif; ?>
195
196 <?php if ($search_box && $layout == "right" || "both" ): ?>
197
198 <!-- START: SEARCH -->
199 <div class="block block-search" id="block-search">
200 <h2>Search this site</h2>
201 <div class="content">
202 <form action="<?php print $search_url ?>" method="post" id="search">
203 <input class="form-text" type="text" size="15" value="" name="edit[keys]" />
204 <input class="form-submit" type="submit" value="<?php print $search_button_text ?>" />
205 </form>
206 </div>
207 </div>
208
209 <hr class="hide" />
210
211 <!-- END: SEARCH -->
212
213 <?php endif; ?>
214
215 <?php print(word_split($sidebar_right, 30)); ?>
216 </div>
217
218 <?php endif;?>
219
220 <div class="clearing"></div>
221 </div><!-- end #wrapper -->
222
223 <hr class="hide" />
224
225 <!-- END: SECONDARY CONTENT -->
226
227
228 <!-- START: NOTICES -->
229
230 <div id="notices">
231 <?php if ($footer_message) : ?>
232 <?php print $footer_message;?>
233 <?php endif; ?>
234 <?php print $closure;?>
235 </div>
236
237 <!-- END: NOTICES -->
238
239 </div><!-- end #outer-wrapper -->
240
241 </body>
242 </html>

  ViewVC Help
Powered by ViewVC 1.1.2