| 1 |
<?php
|
| 2 |
// $Id: page.tpl.php,v 1.7 2009/01/12 00:12:12 troy Exp $
|
| 3 |
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| 4 |
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $language->language ?>" xml:lang="<?php echo $language->language ?>" dir="<?php echo $language->dir ?>" id="html-main">
|
| 5 |
|
| 6 |
<head>
|
| 7 |
<title><?php echo $head_title ?></title>
|
| 8 |
<?php echo $head ?>
|
| 9 |
<?php echo $styles ?>
|
| 10 |
<?php echo $scripts ?>
|
| 11 |
<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
|
| 12 |
</head>
|
| 13 |
|
| 14 |
<body class="body-main">
|
| 15 |
|
| 16 |
|
| 17 |
<!-- / make-it-center --><div class="make-it-center">
|
| 18 |
|
| 19 |
<div class="top-menu clear-block">
|
| 20 |
<?php if ($mission): ?>
|
| 21 |
<span class="mission"><?php echo $mission ?></span>
|
| 22 |
<?php endif; ?>
|
| 23 |
|
| 24 |
<!-- >>>>>>>> REMOVE THIS IF YOU WANT TO GET RID OF TOP LINKS (RSS, LOGIN, REGISTER | PROFILE) start-->
|
| 25 |
|
| 26 |
<div id="top-links">
|
| 27 |
<ul class="top-links-ul">
|
| 28 |
<?php if (!$user->uid): ?>
|
| 29 |
<li><?php echo l(t("Log in"), "user");?></li>
|
| 30 |
<?php if ($registration_enabled): ?>
|
| 31 |
<li><?php echo l(t("Create new account"), "user/register");?></li>
|
| 32 |
<?php endif; ?>
|
| 33 |
<?php else: ?>
|
| 34 |
<li><?php echo t("You are logged in as <strong>!user</strong>", array('!user' => l($user->name, "user"))); ?> | <?php echo l(t("Edit"), "user/" . $user->uid . "/edit");?></li>
|
| 35 |
<li><?php echo l(t("Log out"), "logout"); ?></li>
|
| 36 |
<?php endif; ?>
|
| 37 |
|
| 38 |
<?php if ($feed_icons): ?>
|
| 39 |
<li><a href="<?php echo url("rss.xml"); ?>"><img src="<?php echo base_path() . path_to_theme() ?>/images/rss.gif" alt="RSS" /></a></li>
|
| 40 |
<?php endif; ?>
|
| 41 |
|
| 42 |
|
| 43 |
</ul>
|
| 44 |
</div>
|
| 45 |
|
| 46 |
<!-- <<<<<<<< REMOVE THIS IF YOU WANT TO GET RID OF TOP LINKS (RSS, LOGIN, REGISTER) end -->
|
| 47 |
|
| 48 |
</div>
|
| 49 |
|
| 50 |
<!-- logo-container -->
|
| 51 |
<div id="logo-container">
|
| 52 |
<div id="money-bg" class="clear-block">
|
| 53 |
<div id="logo<?php if ($logo && !$site_name && !$site_slogan): ?>-no-padding<?php endif; ?>">
|
| 54 |
|
| 55 |
<?php if ($logo): ?>
|
| 56 |
<div id="logo-picture">
|
| 57 |
<a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a>
|
| 58 |
</div>
|
| 59 |
<?php endif; ?>
|
| 60 |
|
| 61 |
|
| 62 |
<?php if ($site_name): ?>
|
| 63 |
<!-- if logo picture is defined, text is aligned to left -->
|
| 64 |
|
| 65 |
<h1 <?php if ($logo && !$site_slogan): ?>class="logo-picture-true-slogan-false"<?php endif; ?> <?php if ($logo): ?>class="logo-picture-true"<?php endif; ?>><a href="<?php echo $front_page; ?>" title="<?php echo t('Home') ?>"><?php echo $site_name ?></a></h1>
|
| 66 |
<?php endif; ?>
|
| 67 |
|
| 68 |
<?php if ($site_slogan): ?>
|
| 69 |
<!-- if logo defined, text is aligned to left -->
|
| 70 |
<strong <?php if ($logo): ?>class="logo-picture-true"<?php endif; ?>><?php echo $site_slogan; ?></strong>
|
| 71 |
<?php endif; ?>
|
| 72 |
</div>
|
| 73 |
</div>
|
| 74 |
</div>
|
| 75 |
<!-- /logo-container -->
|
| 76 |
|
| 77 |
|
| 78 |
<!-- primary menu -->
|
| 79 |
<div class="rws-primary-menu clear-block">
|
| 80 |
<?php if ($search_box): ?>
|
| 81 |
<div id="search-box">
|
| 82 |
<?php print $search_box; ?>
|
| 83 |
</div><!-- /search-box -->
|
| 84 |
<?php endif; ?>
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
<?php if (isset($primary_links)) : ?>
|
| 89 |
<?php echo theme('links', $primary_links, array('class' => 'links primary-links')) ?>
|
| 90 |
<?php endif; ?>
|
| 91 |
|
| 92 |
|
| 93 |
<!-- admin edit -->
|
| 94 |
<?php if ($is_admin): ?>
|
| 95 |
<?php echo l(t("Edit menu"), "admin/build/menu-customize/primary-links", array("attributes" => array("class" => "edit-this-link"))); ?>
|
| 96 |
<?php endif; ?>
|
| 97 |
<!-- admin edit -->
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
<!-- admin panel -->
|
| 102 |
<?php if ($is_admin): ?>
|
| 103 |
<ul id="rws-uni-tabs" class="clear-block">
|
| 104 |
<li><?php echo l(t("Administer"), "admin"); ?></li>
|
| 105 |
<li><?php echo l(t("Blocks"), "admin/build/block"); ?></li>
|
| 106 |
<li><?php echo l(t("Menus"), "admin/build/menu"); ?></li>
|
| 107 |
<li><?php echo l(t("Modules"), "admin/build/modules"); ?></li>
|
| 108 |
<li><?php echo l(t("Translation"), "admin/build/translate/search"); ?></li>
|
| 109 |
</ul>
|
| 110 |
<?php endif; ?>
|
| 111 |
<!-- / admin panel -->
|
| 112 |
|
| 113 |
|
| 114 |
</div>
|
| 115 |
<!-- /primary menu -->
|
| 116 |
|
| 117 |
|
| 118 |
<?php if ($left): ?>
|
| 119 |
<!-- column-1 -->
|
| 120 |
<div class="column-1"><?php echo $left ?></div>
|
| 121 |
<!-- / column-1 -->
|
| 122 |
<?php endif; ?>
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
<!-- column-2 --><div class="column-2
|
| 129 |
<?php if (!$right && !$left): ?>no-right-and-left-columns
|
| 130 |
<?php elseif (!$left): ?>
|
| 131 |
no-left-column
|
| 132 |
<?php elseif (!$right): ?>
|
| 133 |
no-right-column
|
| 134 |
<?php endif; ?>
|
| 135 |
">
|
| 136 |
|
| 137 |
|
| 138 |
<?php if ($show_messages): ?>
|
| 139 |
<?php echo $messages; ?>
|
| 140 |
<?php endif; ?>
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
<!-- PRINTING BLOCKS BEFORE THE CONTENT (with RED headers) -->
|
| 145 |
<?php if ($top_content_block_left || $top_content_block_right): ?>
|
| 146 |
<!-- column-2-blocks -->
|
| 147 |
<div id="block-top" class="column-2-blocks clear-block
|
| 148 |
<?php if (!$right&&!$left): ?>column-2-blocks-no-right-and-left-columns
|
| 149 |
<?php elseif (!$left): ?>
|
| 150 |
column-2-blocks-no-left-column
|
| 151 |
<?php elseif (!$right): ?>
|
| 152 |
column-2-blocks-no-right-column
|
| 153 |
<?php endif; ?>
|
| 154 |
">
|
| 155 |
<!-- /column-2-blocks-left --><div class="column-2-blocks-left">
|
| 156 |
<?php if ($top_content_block_left): ?><?php echo $top_content_block_left ?><?php endif; ?>
|
| 157 |
<?php if (!$top_content_block_left): ?> <?php endif; ?>
|
| 158 |
<!-- /column-2-blocks-left --></div>
|
| 159 |
<!-- /column-2-blocks-right --><div class="column-2-blocks-right">
|
| 160 |
<?php if ($top_content_block_right): ?><?php echo $top_content_block_right ?><?php endif; ?>
|
| 161 |
<!-- /column-2-blocks-right --></div>
|
| 162 |
<!-- /column-2-blocks --></div>
|
| 163 |
<?php endif; ?>
|
| 164 |
<!-- PRINTING BLOCKS BEFORE THE CONTENT (with RED headers) -->
|
| 165 |
|
| 166 |
<?php if ($content_top): ?><div id="content-top"><?php echo $content_top ?></div><?php endif; ?>
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
<?php echo $breadcrumb ?>
|
| 171 |
|
| 172 |
<?php echo $help ?>
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
<?php if ($title): ?><h1 class="title"><?php echo $title ?></h1><?php endif; ?>
|
| 177 |
<?php if ($tabs): ?><div class="tabs"><?php echo $tabs; ?></div><?php endif; ?>
|
| 178 |
<!-- main-content-block --><div class="main-content-block">
|
| 179 |
<?php echo $content; ?>
|
| 180 |
<!-- /main-content-block --></div>
|
| 181 |
|
| 182 |
<?php if ($content_bottom): ?><?php echo $content_bottom ?><?php endif; ?>
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
<!-- PRINTING BLOCK AFTER THE CONTENT -->
|
| 188 |
|
| 189 |
<?php if ($content_block_left || $content_block_right): ?>
|
| 190 |
|
| 191 |
<!-- column-2-blocks -->
|
| 192 |
<div class="column-2-blocks clear-block
|
| 193 |
<?php if (!$right && !$left): ?>column-2-blocks-no-right-and-left-columns
|
| 194 |
<?php elseif (!$left): ?>
|
| 195 |
column-2-blocks-no-left-column
|
| 196 |
<?php elseif (!$right): ?>
|
| 197 |
column-2-blocks-no-right-column
|
| 198 |
<?php endif; ?>
|
| 199 |
">
|
| 200 |
<!-- /column-2-blocks-left --><div class="column-2-blocks-left">
|
| 201 |
<?php if ($content_block_left): ?><?php echo $content_block_left ?><?php endif; ?>
|
| 202 |
<?php if (!$content_block_left): ?> <?php endif; ?>
|
| 203 |
<!-- /column-2-blocks-left --></div>
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
<!-- /column-2-blocks-right --><div class="column-2-blocks-right">
|
| 208 |
<?php if ($content_block_right): ?><?php print $content_block_right ?><?php endif; ?>
|
| 209 |
<!-- /column-2-blocks-right --></div>
|
| 210 |
<!-- /column-2-blocks --></div>
|
| 211 |
|
| 212 |
<?php endif; ?>
|
| 213 |
|
| 214 |
|
| 215 |
<?php if ($content_after_blocks): ?><div class="content_after_blocks"><?php if ($content_after_blocks): ?><?php echo $content_after_blocks ?><?php endif; ?></div><?php endif; ?>
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
<!-- / column-2 --></div>
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
<?php if ($right): ?>
|
| 224 |
<!-- column-3 -->
|
| 225 |
<div class="column-3"><?php echo $right ?></div>
|
| 226 |
<!-- / column-3 -->
|
| 227 |
<?php endif; ?>
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
<!-- footer -->
|
| 232 |
<div id="footer" class="clear-block">
|
| 233 |
|
| 234 |
<?php echo $footer ?>
|
| 235 |
|
| 236 |
<div class="clear-both">
|
| 237 |
<?php echo $footer_message ?>
|
| 238 |
<?php echo $closure ?>
|
| 239 |
</div>
|
| 240 |
|
| 241 |
</div>
|
| 242 |
<!-- /footer -->
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
</div>
|
| 247 |
<!-- / make-it-center -->
|
| 248 |
|
| 249 |
</body>
|
| 250 |
</html>
|
| 251 |
|