Imported drupal-5.5
[drupal.git] / themes / garland / page.tpl.php
blob2562513a761fdee1fb6b2e1523f14fdaab5d36fb
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language ?>" lang="<?php print $language ?>">
4 <head>
5 <title><?php print $head_title ?></title>
6 <?php print $head ?>
7 <?php print $styles ?>
8 <?php print $scripts ?>
9 <style type="text/css" media="print">@import "<?php print base_path() . path_to_theme() ?>/print.css";</style>
10 <!--[if lt IE 7]>
11 <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/fix-ie.css";</style>
12 <![endif]-->
13 </head>
14 <body<?php print phptemplate_body_class($sidebar_left, $sidebar_right); ?>>
16 <!-- Layout -->
17 <div id="header-region" class="clear-block"><?php print $header; ?></div>
19 <div id="wrapper">
20 <div id="container" class="clear-block">
22 <div id="header">
23 <div id="logo-floater">
24 <?php
25 // Prepare header
26 $site_fields = array();
27 if ($site_name) {
28 $site_fields[] = check_plain($site_name);
30 if ($site_slogan) {
31 $site_fields[] = check_plain($site_slogan);
33 $site_title = implode(' ', $site_fields);
34 $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
35 $site_html = implode(' ', $site_fields);
37 if ($logo || $site_title) {
38 print '<h1><a href="'. check_url($base_path) .'" title="'. $site_title .'">';
39 if ($logo) {
40 print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
42 print $site_html .'</a></h1>';
45 </div>
47 <?php if (isset($primary_links)) : ?>
48 <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
49 <?php endif; ?>
50 <?php if (isset($secondary_links)) : ?>
51 <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
52 <?php endif; ?>
54 </div> <!-- /header -->
56 <?php if ($sidebar_left): ?>
57 <div id="sidebar-left" class="sidebar">
58 <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
59 <?php print $sidebar_left ?>
60 </div>
61 <?php endif; ?>
63 <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
64 <?php if ($breadcrumb): print $breadcrumb; endif; ?>
65 <?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>
67 <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
68 <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
69 <?php if ($tabs): print $tabs .'</div>'; endif; ?>
71 <?php if (isset($tabs2)): print $tabs2; endif; ?>
73 <?php if ($help): print $help; endif; ?>
74 <?php if ($messages): print $messages; endif; ?>
75 <?php print $content ?>
76 <span class="clear"></span>
77 <?php print $feed_icons ?>
78 <div id="footer"><?php print $footer_message ?></div>
79 </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
81 <?php if ($sidebar_right): ?>
82 <div id="sidebar-right" class="sidebar">
83 <?php if (!$sidebar_left && $search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
84 <?php print $sidebar_right ?>
85 </div>
86 <?php endif; ?>
88 </div> <!-- /container -->
89 </div>
90 <!-- /layout -->
92 <?php print $closure ?>
93 </body>
94 </html>