| 1 |
<?php /* $Id: page.tpl.php,v 1.27 2008/09/02 21:49:25 robinmonks Exp $ */ ?>
|
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
| 3 |
"http://http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| 4 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
|
| 5 |
|
| 6 |
<head>
|
| 7 |
<title>
|
| 8 |
<?php
|
| 9 |
if ($head_title == ""):
|
| 10 |
print $site.' - '.t($site_slogan);
|
| 11 |
else:
|
| 12 |
print $head_title;
|
| 13 |
endif;
|
| 14 |
?>
|
| 15 |
</title>
|
| 16 |
<?php if ($mission != ""): ?>
|
| 17 |
<meta name="description" content="<?php print check_plain(strip_tags($mission)) ?>" />
|
| 18 |
<?php endif; ?>
|
| 19 |
<meta name="revisit-after" content="1 days" />
|
| 20 |
<meta name="robots" content="follow" />
|
| 21 |
|
| 22 |
<?php
|
| 23 |
print $head;
|
| 24 |
|
| 25 |
// simple way of offering print previews: just append &print to your URL
|
| 26 |
if( isset( $_GET['print'] ) ) {
|
| 27 |
print phptemplate_stylesheet_import($base_path.$directory .'/global/print/print.css','print, screen');
|
| 28 |
}
|
| 29 |
else {
|
| 30 |
print '<link href="'. $base_path.$directory .'/global/styles/utility.css" rel="stylesheet" media="all" />'. "\n";
|
| 31 |
print $styles ."\n";
|
| 32 |
}
|
| 33 |
|
| 34 |
?>
|
| 35 |
|
| 36 |
<!--[if IE]>
|
| 37 |
<style type="text/css" media="screen">
|
| 38 |
/* Give IE some :hover lovin' '*/
|
| 39 |
body {
|
| 40 |
behavior: url("<?php print $base_path.$directory ?>/scripts/csshover.htc");
|
| 41 |
}
|
| 42 |
/* IE min-width trick */
|
| 43 |
div#wrapper {
|
| 44 |
width:expression(((document.compatMode && document.compatMode=='CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth) < 720 ? "720px" : "auto");
|
| 45 |
}
|
| 46 |
* {
|
| 47 |
zoom: 1; /* IE peekaboo fix */
|
| 48 |
}
|
| 49 |
.outer, .main-content {
|
| 50 |
word-wrap: break-word;
|
| 51 |
}
|
| 52 |
</style>
|
| 53 |
<![endif]-->
|
| 54 |
|
| 55 |
<?php echo $scripts; ?>
|
| 56 |
<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script>
|
| 57 |
|
| 58 |
</head>
|
| 59 |
<?php
|
| 60 |
$body_classes = civicspace_get_body_classes($left, $right);
|
| 61 |
?>
|
| 62 |
<body class="<?php print implode(' ', array_unique($body_classes));?>"<?php print theme("onload_attribute"); ?>>
|
| 63 |
<div id="page"> <!-- start #page -->
|
| 64 |
<div class="hide skiplink">
|
| 65 |
<?php print l(t('Skip to the main content'), $_GET['q'],array('title' =>'Skip directly to the main content'), NULL, 'body_content', FALSE) ."\n" ?>
|
| 66 |
</div>
|
| 67 |
<!-- START: HEADER
|
| 68 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
|
| 69 |
<div id="header"> <!-- start: header div -->
|
| 70 |
<div id="branding">
|
| 71 |
<div id="branding-container">
|
| 72 |
<?php if (!empty($logo)): ?>
|
| 73 |
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
|
| 74 |
<img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
|
| 75 |
</a>
|
| 76 |
<?php endif; ?>
|
| 77 |
</div>
|
| 78 |
</div>
|
| 79 |
<?php if ($search_box) { ?>
|
| 80 |
|
| 81 |
<div class="search-wrapper" id="header-search">
|
| 82 |
<form action="<?php print $search_url ?>" method="post" id="search">
|
| 83 |
<input class="form-text form-search" name="edit[keys]" id="keys" />
|
| 84 |
<input class="form-submit" type="submit" id="submit" name="op" value="<?php print $search_button_text ?>" />
|
| 85 |
</form>
|
| 86 |
</div>
|
| 87 |
|
| 88 |
<?php } /* end if */ ?>
|
| 89 |
|
| 90 |
</div> <!-- end header div -->
|
| 91 |
<!-- END: HEADER
|
| 92 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
|
| 93 |
|
| 94 |
|
| 95 |
<?php if ($primary_links or $secondary_links) { ?>
|
| 96 |
|
| 97 |
<!-- START: NAV |||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
|
| 98 |
<div id="navigation">
|
| 99 |
<h3 class="hide">Site Navigation</h3>
|
| 100 |
<?php if (is_array($primary_links) && (count($primary_links) > 0)): ?>
|
| 101 |
<ul id="global-primary" class="global-navigation">
|
| 102 |
<?php foreach ($primary_links as $link): ?>
|
| 103 |
<?php
|
| 104 |
static $primary_link_id;
|
| 105 |
$primary_link_id += 1;
|
| 106 |
?>
|
| 107 |
<li id="primary-link-<?php print $primary_link_id; ?>"><?php print $link; ?></li>
|
| 108 |
<?php endforeach; ?>
|
| 109 |
</ul>
|
| 110 |
<?php endif; ?>
|
| 111 |
|
| 112 |
<?php if (is_array($secondary_links) && (count($secondary_links) > 0)): ?>
|
| 113 |
<ul id="global-secondary" class="global-navigation">
|
| 114 |
<?php foreach (array_reverse($secondary_links) as $link): ?>
|
| 115 |
<?php
|
| 116 |
static $secondary_link_id;
|
| 117 |
$secondary_link_id += 1;
|
| 118 |
?>
|
| 119 |
<li id="secondary-link-<?php print $secondary_link_id; ?>"><?php print $link; ?></li>
|
| 120 |
<?php endforeach; ?>
|
| 121 |
</ul>
|
| 122 |
<?php endif; ?>
|
| 123 |
</div>
|
| 124 |
<!-- END: NAV |||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
|
| 125 |
|
| 126 |
<?php
|
| 127 |
} // close primary/secondary links
|
| 128 |
?>
|
| 129 |
|
| 130 |
|
| 131 |
<!-- BEGIN: Content top -->
|
| 132 |
<hr class="hide" />
|
| 133 |
<div id="wrapper">
|
| 134 |
<div class="outer" id="content-holder">
|
| 135 |
<div class="float-wrap">
|
| 136 |
<div class="center" id="div_column_center">
|
| 137 |
<div id="content">
|
| 138 |
<div class="main-content" id="main">
|
| 139 |
<a name="body_content" id="body_content"></a>
|
| 140 |
<!-- END: Content top -->
|
| 141 |
|
| 142 |
<?php if ($title != ""): ?>
|
| 143 |
<h1 class="page-title <?php if ($tabs != "") { print 'page-title-withtabs'; } ?>"><?php print $title ?></h1>
|
| 144 |
<?php endif; ?>
|
| 145 |
|
| 146 |
<?php if ($mission != ""): ?>
|
| 147 |
<div id="mission">
|
| 148 |
<img src="<?php print $base_path.$directory ?>/images/bg_mission.png" class="alignright no-print" alt="Flag decoration" />
|
| 149 |
<div class="content">
|
| 150 |
<?php print $mission ?>
|
| 151 |
</div>
|
| 152 |
</div>
|
| 153 |
<?php endif; ?>
|
| 154 |
|
| 155 |
<?php if (($messages != "") or ($help != "")): ?>
|
| 156 |
<div class="messages">
|
| 157 |
|
| 158 |
<?php if ($help != ""): ?>
|
| 159 |
<div class="help-toggle no-print" id="toggle-help-show" style="display: none;">
|
| 160 |
<a href="javascript:void(0);" onclick="toggleShow('help');toggleShow('toggle-help-hide');toggleHide('toggle-help-show');" class="toggle-link"><img src="<?php print $base_path.$directory; ?>/global/images/icon_collapsed.png" alt="Collapse" /> Show help</a>
|
| 161 |
</div>
|
| 162 |
<div class="help-toggle" id="toggle-help-hide" style="display: none;">
|
| 163 |
<a href="javascript:void(0);" onclick="toggleHide('help');toggleHide('toggle-help-hide');toggleShow('toggle-help-show');" class="toggle-link"><img src="<?php print $base_path.$directory; ?>/global/images/icon_expanded.png" alt="Expand" /> Hide help</a>
|
| 164 |
</div>
|
| 165 |
<div id="help">
|
| 166 |
<img src="<?php print $base_path.$directory ?>/global/images/icon_help.png" alt="Help icon" class="icon-help" />
|
| 167 |
<div class="content">
|
| 168 |
<?php print $help ?>
|
| 169 |
</div>
|
| 170 |
</div>
|
| 171 |
<script type="text/javascript"><!--
|
| 172 |
toggleHide('help'); toggleShow('toggle-help-show');
|
| 173 |
//--></script>
|
| 174 |
<?php endif; ?>
|
| 175 |
|
| 176 |
<?php if ($messages != ""): ?>
|
| 177 |
<?php print $messages ?>
|
| 178 |
<?php endif; ?>
|
| 179 |
|
| 180 |
</div>
|
| 181 |
<?php endif; ?>
|
| 182 |
|
| 183 |
<?php if ($tabs != "" && !(arg(0) == 'node' && is_numeric(arg(1)) && is_null(arg(2)))): ?>
|
| 184 |
<div id="local-tasks" class="no-print">
|
| 185 |
<?php print $tabs ?>
|
| 186 |
</div>
|
| 187 |
<?php endif; ?>
|
| 188 |
|
| 189 |
<?php print($content); ?>
|
| 190 |
|
| 191 |
<!-- BEGIN: Content middle -->
|
| 192 |
</div>
|
| 193 |
</div> <!-- end content div -->
|
| 194 |
</div> <!-- end centered div -->
|
| 195 |
<!-- END: Content middle -->
|
| 196 |
|
| 197 |
|
| 198 |
<?php if ($left != '') { ?>
|
| 199 |
<!-- begin left sidebar content -->
|
| 200 |
<div class="left sidebar" id="div_column_left">
|
| 201 |
<div class="container-left">
|
| 202 |
|
| 203 |
<?php print(civicspace_word_split($left)); ?>
|
| 204 |
|
| 205 |
</div> <!-- end container-left div -->
|
| 206 |
</div> <!-- end left div -->
|
| 207 |
<div class="clearing"></div>
|
| 208 |
<?php } ?>
|
| 209 |
|
| 210 |
</div> <!-- end float-wrap div -->
|
| 211 |
<!-- end left sidebar content -->
|
| 212 |
|
| 213 |
<?php if (($right != '')) { ?>
|
| 214 |
<!-- begin right sidebar content -->
|
| 215 |
<div class="right sidebar" id="div_column_right">
|
| 216 |
<div class="container-right">
|
| 217 |
|
| 218 |
<?php print(civicspace_word_split($right)); ?>
|
| 219 |
|
| 220 |
</div> <!-- end container-right div -->
|
| 221 |
<div class="clear"></div>
|
| 222 |
</div> <!-- end right div -->
|
| 223 |
<!-- end right sidebar content -->
|
| 224 |
<?php } ?>
|
| 225 |
|
| 226 |
<!-- BEGIN: Content bottom -->
|
| 227 |
<div class="clearing"></div>
|
| 228 |
</div> <!-- end outer div -->
|
| 229 |
</div>
|
| 230 |
<!-- END: Content bottom -->
|
| 231 |
|
| 232 |
|
| 233 |
<div class="clearing"></div>
|
| 234 |
|
| 235 |
<!-- START: FOOTER |||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
|
| 236 |
<?php if (($_GET['q']) != variable_get('site_frontpage','node') && $breadcrumb): /* this prevents breadcrumb from showing up on homepage */ ?>
|
| 237 |
<div class="breadcrumb-container no-print">
|
| 238 |
You are here: <?php print $breadcrumb ?>
|
| 239 |
</div>
|
| 240 |
<?php endif; ?>
|
| 241 |
|
| 242 |
<div id="notices">
|
| 243 |
<?php if ($footer_message): ?>
|
| 244 |
<div id="footer">
|
| 245 |
<?php print $footer_message; ?>
|
| 246 |
</div>
|
| 247 |
<?php endif; ?>
|
| 248 |
|
| 249 |
<hr class="hide" />
|
| 250 |
|
| 251 |
<?php if ($primary_links or $secondary_links): ?>
|
| 252 |
<?php if (is_array($primary_links)): ?>
|
| 253 |
<ul class="global-navigation no-print">
|
| 254 |
<?php foreach ($primary_links as $link): ?>
|
| 255 |
<li><?php print $link; ?></li>
|
| 256 |
<?php endforeach; ?>
|
| 257 |
</ul>
|
| 258 |
<?php endif; ?>
|
| 259 |
<?php endif; ?>
|
| 260 |
<?php if( isset( $_GET['print'] ) ) : ?>
|
| 261 |
<div class="print-preview-toggle print-only">
|
| 262 |
<a href="<?php print url($_GET['q'], NULL, NULL, TRUE); ?>" style="@print display: none; float: right;">Return to web view</a>
|
| 263 |
<small>
|
| 264 |
<!--Insert dated printed and URL--> This page was viewed on <?php print format_date(time(), "custom", "Y-m-d H:i O"); ?> and can be found at <?php print url($_GET['q'], NULL, NULL, TRUE); ?>.
|
| 265 |
</small>
|
| 266 |
</div>
|
| 267 |
<?php endif; ?>
|
| 268 |
</div>
|
| 269 |
<!-- END: FOOTER |||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
|
| 270 |
|
| 271 |
<?php print $closure ?>
|
| 272 |
|
| 273 |
<?php
|
| 274 |
// focus for certain pages
|
| 275 |
if (arg(0) == 'user') {
|
| 276 |
print '<script>if ( document.getElementById ) {window.onload = document.getElementById(\'edit-name\').focus();}</script>';
|
| 277 |
}
|
| 278 |
?>
|
| 279 |
</div> <!-- end #page -->
|
| 280 |
</body>
|
| 281 |
|
| 282 |
</html>
|