| 1 |
<?php // $Id: page.tpl.php,v 1.7 2008/05/14 17:08:36 johnalbin Exp $ ?>
|
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>">
|
| 4 |
|
| 5 |
<head>
|
| 6 |
<title><?php print $head_title; ?></title>
|
| 7 |
<?php print $head; ?>
|
| 8 |
<?php print $styles; ?>
|
| 9 |
<!--[if IE]>
|
| 10 |
<?php if (file_exists($directory . '/ie.css')): ?>
|
| 11 |
<link rel="stylesheet" href="<?php print $base_path . $directory; ?>/ie.css" type="text/css">
|
| 12 |
<?php else: ?>
|
| 13 |
<link rel="stylesheet" href="<?php print $base_path . $zentheme_directory; ?>/ie.css" type="text/css">
|
| 14 |
<?php endif; ?>
|
| 15 |
<![endif]-->
|
| 16 |
<?php print $scripts; ?>
|
| 17 |
</head>
|
| 18 |
|
| 19 |
<?php $extra_class = dom_menu_body_class(); ?>
|
| 20 |
<body class="<?php print $body_classes.$extra_class; ?>">
|
| 21 |
|
| 22 |
<div id="page"><div id="page-inner">
|
| 23 |
|
| 24 |
|
| 25 |
<!-- These are classes that I added for the background image -->
|
| 26 |
<div id="fill">
|
| 27 |
<div id="top">
|
| 28 |
<div id="bottom">
|
| 29 |
|
| 30 |
<?php if ($primary_links): ?>
|
| 31 |
<div id="primary">
|
| 32 |
<?php print theme('links', $primary_links); ?>
|
| 33 |
</div> <!-- /#primary -->
|
| 34 |
<?php endif; ?>
|
| 35 |
|
| 36 |
<div id="header"><div id="header-inner" class="clear-block">
|
| 37 |
|
| 38 |
<?php if ($header): ?>
|
| 39 |
<div id="header-blocks" class="region region-header">
|
| 40 |
<?php print $header; ?>
|
| 41 |
</div> <!-- /#header-blocks -->
|
| 42 |
<?php endif; ?>
|
| 43 |
|
| 44 |
<?php if ($logo || $site_name || $site_slogan): ?>
|
| 45 |
<div id="logo-title" class="clear-block">
|
| 46 |
|
| 47 |
<?php if ($logo): ?>
|
| 48 |
<div id="logo"><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></div>
|
| 49 |
<?php endif; ?>
|
| 50 |
|
| 51 |
<?php if ($site_name): ?>
|
| 52 |
<?php
|
| 53 |
// Use an H1 only on the homepage
|
| 54 |
$tag = $is_front ? 'h1' : 'div';
|
| 55 |
?>
|
| 56 |
<<?php print $tag; ?> id='site-name'>
|
| 57 |
<a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home">
|
| 58 |
<strong><?php print $site_name; ?></strong>
|
| 59 |
</a>
|
| 60 |
</<?php print $tag; ?>>
|
| 61 |
<?php endif; ?>
|
| 62 |
|
| 63 |
<?php if ($site_slogan): ?>
|
| 64 |
<div id='site-slogan'><?php print $site_slogan; ?></div>
|
| 65 |
<?php endif; ?>
|
| 66 |
|
| 67 |
</div> <!-- /#logo-title -->
|
| 68 |
<?php endif; ?>
|
| 69 |
|
| 70 |
</div></div> <!-- /#header-inner, /#header -->
|
| 71 |
|
| 72 |
<div id="main"><div id="main-inner" class="clear-block<?php if ($search_box || $primary_links || $secondary_links || $navbar) { print ' with-navbar'; } ?>">
|
| 73 |
|
| 74 |
<div id="content"><div id="content-inner">
|
| 75 |
|
| 76 |
<?php if ($mission): ?>
|
| 77 |
<div id="mission"><?php print $mission; ?></div>
|
| 78 |
<?php endif; ?>
|
| 79 |
|
| 80 |
<?php if ($content_top): ?>
|
| 81 |
<div id="content-top" class="region region-content_top">
|
| 82 |
<?php print $content_top; ?>
|
| 83 |
</div> <!-- /#content-top -->
|
| 84 |
<?php endif; ?>
|
| 85 |
|
| 86 |
<?php if ( $content != NULL ): ?>
|
| 87 |
<?php if ($breadcrumb or $title or $tabs or $help or $messages): ?>
|
| 88 |
<div id="content-header">
|
| 89 |
<?php print $breadcrumb; ?>
|
| 90 |
<?php if ($title): ?>
|
| 91 |
<h1 class="title"><?php print $title; ?></h1>
|
| 92 |
<?php endif; ?>
|
| 93 |
<?php print $messages; ?>
|
| 94 |
<?php if ($tabs): ?>
|
| 95 |
<div class="tabs"><?php print $tabs; ?></div>
|
| 96 |
<?php endif; ?>
|
| 97 |
<?php print $help; ?>
|
| 98 |
</div> <!-- /#content-header -->
|
| 99 |
<?php endif; ?>
|
| 100 |
|
| 101 |
|
| 102 |
<?php if ($node->content['body']['#value']): ?><div id="content-area"><?php endif; ?>
|
| 103 |
<?php if (!$is_front): ?>
|
| 104 |
<?php print $content; ?>
|
| 105 |
<?php endif; ?>
|
| 106 |
<?php if ($node->content['body']['#value']): ?></div> <!-- /#content-area --><?php endif; ?>
|
| 107 |
|
| 108 |
<?php endif; ?>
|
| 109 |
|
| 110 |
<div id="content-blocks">
|
| 111 |
<div id="content-right" class="content-block">
|
| 112 |
<?php print $content_right; ?>
|
| 113 |
</div> <!-- /#content-right -->
|
| 114 |
<div id="content-left" class="content-block">
|
| 115 |
<?php print $content_left; ?>
|
| 116 |
</div> <!-- /#content-left -->
|
| 117 |
</div> <!-- /#content-blocks -->
|
| 118 |
|
| 119 |
<?php if ($feed_icons): ?>
|
| 120 |
<div class="feed-icons"><?php print $feed_icons; ?></div>
|
| 121 |
<?php endif; ?>
|
| 122 |
|
| 123 |
<?php if ($content_bottom): ?>
|
| 124 |
<div id="content-bottom" class="region region-content_bottom">
|
| 125 |
<?php print $content_bottom; ?>
|
| 126 |
</div> <!-- /#content-bottom -->
|
| 127 |
<?php endif; ?>
|
| 128 |
|
| 129 |
</div></div> <!-- /#content-inner, /#content -->
|
| 130 |
|
| 131 |
<?php if ($secondary_links || $navbar): ?>
|
| 132 |
<div id="navbar"><div id="navbar-inner" class="region region-navbar">
|
| 133 |
|
| 134 |
<a name="navigation" id="navigation"></a>
|
| 135 |
|
| 136 |
<?php if ($secondary_links): ?>
|
| 137 |
<div id="secondary">
|
| 138 |
<?php print theme('links', $secondary_links); ?>
|
| 139 |
</div> <!-- /#secondary -->
|
| 140 |
<?php endif; ?>
|
| 141 |
|
| 142 |
<?php print $navbar; ?>
|
| 143 |
|
| 144 |
</div></div> <!-- /#navbar-inner, /#navbar -->
|
| 145 |
<?php endif; ?>
|
| 146 |
|
| 147 |
<?php if ($left): ?>
|
| 148 |
<div id="sidebar-left"><div id="sidebar-left-inner" class="region region-left">
|
| 149 |
<?php print $left; ?>
|
| 150 |
</div></div> <!-- /#sidebar-left-inner, /#sidebar-left -->
|
| 151 |
<?php endif; ?>
|
| 152 |
|
| 153 |
<?php if ($right): ?>
|
| 154 |
<div id="sidebar-right"><div id="sidebar-right-inner" class="region region-right">
|
| 155 |
|
| 156 |
<?php if ($search_box): ?>
|
| 157 |
<div id="search-box">
|
| 158 |
<?php print $search_box; ?>
|
| 159 |
</div> <!-- /#search-box -->
|
| 160 |
<?php endif; ?>
|
| 161 |
|
| 162 |
<div id="user-name-block" class="block">
|
| 163 |
<?php if ($user->uid): ?>
|
| 164 |
<!-- Show if logged in -->
|
| 165 |
<h2 id="user-name" class="title">
|
| 166 |
<?php print $user->name ?>
|
| 167 |
</h2>
|
| 168 |
<?php endif; ?>
|
| 169 |
</div>
|
| 170 |
|
| 171 |
<?php print $right; ?>
|
| 172 |
</div></div> <!-- /#sidebar-right-inner, /#sidebar-right -->
|
| 173 |
<?php endif; ?>
|
| 174 |
|
| 175 |
</div></div> <!-- /#main-inner, /#main -->
|
| 176 |
|
| 177 |
|
| 178 |
<?php if ($lower_links): ?>
|
| 179 |
<div id="lower-links" class="region region-lower_links clear-block">
|
| 180 |
<?php print $lower_links; ?>
|
| 181 |
</div> <!-- /#lower-links -->
|
| 182 |
<?php endif; ?>
|
| 183 |
|
| 184 |
</div> <!-- /#bottom -->
|
| 185 |
</div> <!-- /#top -->
|
| 186 |
</div> <!-- /#fill -->
|
| 187 |
<!-- End of classes that I added for the background image -->
|
| 188 |
|
| 189 |
<div id="footer"><div id="footer-inner" class="region region-footer">
|
| 190 |
|
| 191 |
<div id="footer-message"><?php print $footer_message; ?></div>
|
| 192 |
|
| 193 |
<?php print $footer; ?>
|
| 194 |
|
| 195 |
</div></div> <!-- /#footer-inner, /#footer -->
|
| 196 |
|
| 197 |
</div></div> <!-- /#page-inner, /#page -->
|
| 198 |
|
| 199 |
<?php if ($closure_region): ?>
|
| 200 |
<div id="closure-blocks" class="region region-closure"><?php print $closure_region; ?></div>
|
| 201 |
<?php endif; ?>
|
| 202 |
|
| 203 |
<?php print $closure; ?>
|
| 204 |
|
| 205 |
</body>
|
| 206 |
</html>
|