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">
5 <title><?php print $head_title ?></title>
7 <style type="text/css" media="screen">
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"; ?>);
14 <?php print $styles ?>
18 $classes[] = 'layout-'. $layout;
20 $classes[] = preg_replace('/\d+-/', '', str_replace('/', '-', $_GET['q']));
23 $classes[] = arg(0) . '-' . arg(1);
25 $classes[] = 'page-'. str_replace('/', '-', $_GET['q']);
27 <body <?php print theme("onload_attribute"); ?> class="<?php print implode(' ', $classes) ?>">
29 <!-- Accessibility & Search engine optimization -->
31 <?php if ($site_name) : ?>
32 <h1><a href="<?php print url(); ?>/" title="Index Page"><?php print($site_name)?></a> <?php if ($mission != ""): ?> — <?php print($mission) ?><?php endif; ?></h1>
35 <?php print l(t('Skip to content'), $_GET['q'],array('title' =>'Skip directly to the content'),NULL,'main-content',FALSE) ?>
39 <div id="outer-wrapper">
41 <!-- START: BRANDING -->
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>
47 <?php if ($site_name) : ?>
48 <h1 id="site-name"><a href="<?php print url() ?>" title="Index Page"><?php print($site_name) ?></a></h1>
51 <?php if ($site_slogan) : ?>
52 <div id="site-slogan"><?php print($site_slogan) ?></div>
58 <!-- END: BRANDING -->
64 <!-- START: LEFT REGION -->
66 <?php if ($sidebar_left != '') { ?>
67 <div class="sidebar" id="sidebar-left">
69 <?php if ( $layout == "left" || "both" ): ?>
70 <!-- START: NAVIGATION -->
73 <h2 class="hide">Site Navigation</h2>
74 <?php if (is_array($primary_links)) : ?>
76 <?php foreach ($primary_links as $link): ?>
77 <li><?php print $link?></li>
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>
92 <!-- END: NAVIGATION -->
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>
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 ?>" />
112 <?php print(word_split($sidebar_left, 15)); ?>
116 <!-- END: LEFT REGION -->
119 <!-- START: CONTENT -->
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;?>
131 <?php if ($mission != ""): ?>
133 <?php print $mission ?>
137 <?php if ($title != ""): ?>
138 <h1 class="page-title"><?php print $title ?></h1>
141 <?php if ($tabs != ""): ?>
145 <?php if ($messages != ""): ?>
146 <div class="message"><?php print $messages ?></div>
149 <?php if ($help != ""): ?>
150 <div id="help"><?php print $help ?></div>
153 <div id="body-content">
154 <?php print $content ?>
160 <!-- END: CONTENT -->
162 </div><!-- end #content -->
163 </div><!-- end #container -->
165 <!-- START: SECONDARY CONTENT -->
166 <?php if ($sidebar_right != '') : ?>
168 <div class="sidebar" id="sidebar-right">
169 <?php if ( $layout == "right" ): ?>
170 <!-- START: NAVIGATION -->
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>
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>
193 <!-- END: NAVIGATION -->
196 <?php if ($search_box && $layout == "right" || "both" ): ?>
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 ?>" />
215 <?php print(word_split($sidebar_right, 30)); ?>
220 <div class="clearing"></div>
221 </div><!-- end #wrapper -->
225 <!-- END: SECONDARY CONTENT -->
228 <!-- START: NOTICES -->
231 <?php if ($footer_message) : ?>
232 <?php print $footer_message;?>
234 <?php print $closure;?>
237 <!-- END: NOTICES -->
239 </div><!-- end #outer-wrapper -->