| 1 |
<?php
|
| 2 |
|
| 3 |
if ($sidebar_left && $sidebar_right)
|
| 4 |
$layoutstyle = "bothsidebars";
|
| 5 |
else if ($sidebar_left)
|
| 6 |
$layoutstyle = "leftsidebar";
|
| 7 |
else if ($sidebar_right)
|
| 8 |
$layoutstyle = "rightsidebar";
|
| 9 |
else
|
| 10 |
$layoutstyle = "nosidebars";
|
| 11 |
|
| 12 |
|
| 13 |
$topregionblocks = 0;
|
| 14 |
if($user1) $topregionblocks += 1;
|
| 15 |
if($user2) $topregionblocks += 1;
|
| 16 |
if($user3) $topregionblocks += 1;
|
| 17 |
switch ($topregionblocks) {
|
| 18 |
case 1:
|
| 19 |
$topregionwidth = "width100";
|
| 20 |
break;
|
| 21 |
case 2:
|
| 22 |
$topregionwidth = "width50";
|
| 23 |
break;
|
| 24 |
case 3:
|
| 25 |
$topregionwidth = "width33";
|
| 26 |
break;
|
| 27 |
default:
|
| 28 |
$topregionwidth = "";
|
| 29 |
}
|
| 30 |
|
| 31 |
$topregion12seperator = "";
|
| 32 |
$topregion23seperator = "";
|
| 33 |
if ($user1 && $user2 || $user3) {
|
| 34 |
$topregion12seperator = "topregionseperator";
|
| 35 |
}
|
| 36 |
if ($user2 && $user3) {
|
| 37 |
$topregion23seperator = "topregionseperator";
|
| 38 |
}
|
| 39 |
|
| 40 |
$bottomregionblocks = 0;
|
| 41 |
if($user4) $bottomregionblocks += 1;
|
| 42 |
if($user5) $bottomregionblocks += 1;
|
| 43 |
if($user6) $bottomregionblocks += 1;
|
| 44 |
switch ($bottomregionblocks) {
|
| 45 |
case 1:
|
| 46 |
$bottomregionwidth = "width100";
|
| 47 |
break;
|
| 48 |
case 2:
|
| 49 |
$bottomregionwidth = "width50";
|
| 50 |
break;
|
| 51 |
case 3:
|
| 52 |
$bottomregionwidth = "width33";
|
| 53 |
break;
|
| 54 |
default:
|
| 55 |
$bottomregionwidth = "";
|
| 56 |
}
|
| 57 |
|
| 58 |
$bottomregion12seperator = "";
|
| 59 |
$bottomregion23seperator = "";
|
| 60 |
if ($user4 && $user5 || $user6) {
|
| 61 |
$bottomregion12seperator = "bottomregionseperator";
|
| 62 |
}
|
| 63 |
if ($user5 && $user6) {
|
| 64 |
$bottomregion23seperator = "bottomregionseperator";
|
| 65 |
}
|
| 66 |
|
| 67 |
?>
|
| 68 |
|
| 69 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| 70 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language ?>" lang="<?php print $language ?>">
|
| 71 |
<head>
|
| 72 |
<title><?php print $head_title; ?></title>
|
| 73 |
<?php drupal_add_css(drupal_get_path('theme', 'siberia') . '/css/reset-fonts-grids.css', 'theme'); ?>
|
| 74 |
<?php print $head; ?>
|
| 75 |
<?php print $styles; ?>
|
| 76 |
<?php print $scripts; ?>
|
| 77 |
|
| 78 |
<?php if (theme_get_setting('siberia_width')) { ?>
|
| 79 |
<style type="text/css">
|
| 80 |
#page {
|
| 81 |
width : <?php print theme_get_setting('siberia_fixedwidth') ?>px;
|
| 82 |
}
|
| 83 |
</style>
|
| 84 |
<?php } else { ?>
|
| 85 |
<style type="text/css">
|
| 86 |
#page {
|
| 87 |
width: 95%;
|
| 88 |
}
|
| 89 |
</style>
|
| 90 |
<?php } ?>
|
| 91 |
|
| 92 |
<?php if (theme_get_setting('siberia_iepngfix')) { ?>
|
| 93 |
<!--[if lte IE 7]>
|
| 94 |
<script type="text/javascript">
|
| 95 |
$(document).ready(function(){
|
| 96 |
$(document).pngFix();
|
| 97 |
});
|
| 98 |
</script>
|
| 99 |
<![endif]-->
|
| 100 |
<?php } ?>
|
| 101 |
|
| 102 |
|
| 103 |
</head>
|
| 104 |
|
| 105 |
<body class="<?php print $layoutstyle; ?>">
|
| 106 |
<div id="page">
|
| 107 |
<div id="masthead">
|
| 108 |
<div id="header" class="clear-block">
|
| 109 |
<div class="header-left">
|
| 110 |
<div class="header-right">
|
| 111 |
|
| 112 |
|
| 113 |
<div id="logo-title">
|
| 114 |
<?php if ($logo): ?>
|
| 115 |
<a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>">
|
| 116 |
<img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" />
|
| 117 |
</a>
|
| 118 |
<?php endif; ?>
|
| 119 |
</div> <!-- /logo-title -->
|
| 120 |
|
| 121 |
<div id="name-and-slogan">
|
| 122 |
<?php if ($site_name): ?>
|
| 123 |
<h2 id='site-name'>
|
| 124 |
<a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>">
|
| 125 |
<?php print $site_name; ?>
|
| 126 |
</a>
|
| 127 |
</h2>
|
| 128 |
<?php endif; ?>
|
| 129 |
<?php if ($site_slogan): ?>
|
| 130 |
<div id='site-slogan'>
|
| 131 |
<?php print $site_slogan; ?>
|
| 132 |
</div>
|
| 133 |
<?php endif; ?>
|
| 134 |
</div> <!-- /name-and-slogan -->
|
| 135 |
|
| 136 |
<?php if ($header): ?>
|
| 137 |
<?php print $header; ?>
|
| 138 |
<?php endif; ?>
|
| 139 |
|
| 140 |
</div> <!-- /header-left -->
|
| 141 |
</div> <!-- /header-right -->
|
| 142 |
</div> <!-- /header -->
|
| 143 |
</div>
|
| 144 |
|
| 145 |
<div id="navigation" class="menu <?php if ($primary_links) { print "withprimary"; } if ($secondary_links) { print " withsecondary"; } ?> ">
|
| 146 |
<?php if ($primary_links): ?>
|
| 147 |
<div id="primary" class="clear-block">
|
| 148 |
<?php print theme('menu_links', $primary_links); ?><?php print $search_box; ?>
|
| 149 |
</div>
|
| 150 |
<?php endif; ?>
|
| 151 |
</div> <!-- /navigation -->
|
| 152 |
|
| 153 |
|
| 154 |
<?php if($topregionblocks) { ?>
|
| 155 |
<div id="topregion" class="clear-block">
|
| 156 |
<table class="regions" cellspacing="0" cellpadding="0">
|
| 157 |
<tr valign="top">
|
| 158 |
<?php if ($user1): ?>
|
| 159 |
<td class="region <?php echo $topregionwidth; ?>">
|
| 160 |
<?php print $user1; ?>
|
| 161 |
</td>
|
| 162 |
<?php endif; ?>
|
| 163 |
|
| 164 |
<?php if ($user2): ?>
|
| 165 |
<td class="region <?php echo $topregionwidth; ?>">
|
| 166 |
<?php print $user2; ?>
|
| 167 |
</td>
|
| 168 |
<?php endif; ?>
|
| 169 |
|
| 170 |
<?php if ($user3): ?>
|
| 171 |
<td class="region <?php echo $topregionwidth; ?>">
|
| 172 |
<?php print $user3; ?>
|
| 173 |
</td>
|
| 174 |
<?php endif; ?>
|
| 175 |
</tr>
|
| 176 |
</table>
|
| 177 |
</div>
|
| 178 |
<?php } ?>
|
| 179 |
|
| 180 |
<?php if ($secondary_links): ?>
|
| 181 |
<div id="secondary" class="clear-block">
|
| 182 |
<?php print theme('menu_links', $secondary_links); ?>
|
| 183 |
</div>
|
| 184 |
<?php endif; ?>
|
| 185 |
|
| 186 |
|
| 187 |
<div id="middlecontainer" class="clear-block">
|
| 188 |
<div id="centerpart">
|
| 189 |
|
| 190 |
<?php if ($sidebar_left): ?>
|
| 191 |
<div id="leftsidebar" class="sidebar">
|
| 192 |
<?php print $sidebar_left; ?>
|
| 193 |
</div> <!-- /sidebar-left -->
|
| 194 |
<?php endif; ?>
|
| 195 |
|
| 196 |
<div id="maincontent" >
|
| 197 |
<div id="squeeze">
|
| 198 |
<?php if ($mission != ""): ?>
|
| 199 |
<div class="mission"><?php print $mission ?></div>
|
| 200 |
<?php endif; ?>
|
| 201 |
<?php if ($content_top):?><div id="content-top"><?php print $content_top; ?></div><?php endif; ?>
|
| 202 |
<?php if ($title): ?><h1 class="title"><?php print $title; ?></h1><?php endif; ?>
|
| 203 |
<?php if ($tabs): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?>
|
| 204 |
<?php print $content; ?>
|
| 205 |
<?php if ($content_bottom): ?><div id="content-bottom"><?php print $content_bottom; ?></div><?php endif; ?>
|
| 206 |
</div>
|
| 207 |
</div>
|
| 208 |
|
| 209 |
<?php if ($sidebar_right): ?>
|
| 210 |
<div id="rightsidebar" class="sidebar">
|
| 211 |
<?php print $sidebar_right; ?>
|
| 212 |
</div> <!-- /sidebar-right -->
|
| 213 |
<?php endif; ?>
|
| 214 |
</div>
|
| 215 |
|
| 216 |
</div> <!-- /middlecontainer -->
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
<?php if($bottomregionblocks) { ?>
|
| 222 |
<div id="bottomregion" class="clear-block">
|
| 223 |
<table class="regions" cellspacing="0" cellpadding="0">
|
| 224 |
<tr valign="top">
|
| 225 |
<?php if ($user4): ?>
|
| 226 |
<td class="region <?php echo $bottomregionwidth; ?>">
|
| 227 |
<?php print $user4; ?>
|
| 228 |
</td>
|
| 229 |
<?php endif; ?>
|
| 230 |
|
| 231 |
<?php if ($user5): ?>
|
| 232 |
<td class="region <?php echo $bottomregionwidth; ?>">
|
| 233 |
<?php print $user5; ?>
|
| 234 |
</td>
|
| 235 |
<?php endif; ?>
|
| 236 |
|
| 237 |
<?php if ($user6): ?>
|
| 238 |
<td class="region <?php echo $bottomregionwidth; ?>">
|
| 239 |
<?php print $user6; ?>
|
| 240 |
</td>
|
| 241 |
<?php endif; ?>
|
| 242 |
</tr>
|
| 243 |
</table>
|
| 244 |
</div>
|
| 245 |
<?php } ?>
|
| 246 |
|
| 247 |
|
| 248 |
<div id="footer" class="clear-block">
|
| 249 |
<?php print $footer_message; ?>
|
| 250 |
<br /><a href="http://www.homed.ru">template Siberia</a>
|
| 251 |
</div>
|
| 252 |
|
| 253 |
<div id="footer-wrapper" class="clear-block">
|
| 254 |
<div class="footer-right">
|
| 255 |
<div class="footer-left">
|
| 256 |
|
| 257 |
</div> <!-- /footer-left -->
|
| 258 |
</div> <!-- /footer-right -->
|
| 259 |
</div> <!-- /footer-wrapper -->
|
| 260 |
|
| 261 |
|
| 262 |
</div> <!-- /page -->
|
| 263 |
|
| 264 |
</body>
|
| 265 |
|
| 266 |
</html>
|