| 1 |
<?php
|
| 2 |
// $Id: page.tpl.php,v 1.15 2009/03/01 13:05:03 shannonlucas Exp $
|
| 3 |
|
| 4 |
//----------------------------------------------------------------------------
|
| 5 |
// Some variables to make some of the code easier to read.
|
| 6 |
$nitobe_rendered_name = nitobe_alt_word_text(check_plain($site_name));
|
| 7 |
$nitobe_render_date = !empty($node) && nitobe_show_datestamp($node->type);
|
| 8 |
$nitobe_primary_menu = isset($main_menu) ?
|
| 9 |
theme('links', $main_menu, array('id' => 'topLinks', 'class' => 'grid_16')) : NULL;
|
| 10 |
$nitobe_secondary_menu = isset($secondary_menu) ?
|
| 11 |
theme('links', $secondary_menu, array('id' => 'subLinks', 'class' => 'links secondary-links grid_16')) : NULL;
|
| 12 |
|
| 13 |
if ($nitobe_has_sidebar) {
|
| 14 |
$nitobe_headline_class = "headline grid_12 alpha";
|
| 15 |
$nitobe_title_class = "grid_8 alpha";
|
| 16 |
$nitobe_author_class = "node-author grid_12 alpha";
|
| 17 |
$nitobe_center_class = "grid_12";
|
| 18 |
}
|
| 19 |
else {
|
| 20 |
$nitobe_headline_class = "headline grid_16 alpha";
|
| 21 |
$nitobe_title_class = "grid_12 alpha";
|
| 22 |
$nitobe_author_class = "node-author grid_16";
|
| 23 |
$nitobe_center_class = "grid_16";
|
| 24 |
}
|
| 25 |
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
|
| 26 |
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
|
| 27 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"
|
| 28 |
<?php print $rdf_namespaces ?>>
|
| 29 |
<head profile="<?php print $grddl_profile ?>">
|
| 30 |
<title><?php print $head_title ?></title>
|
| 31 |
<?php print $head ?>
|
| 32 |
<?php print $styles ?>
|
| 33 |
<?php print $scripts ?>
|
| 34 |
<!--[if gte IE 7]>
|
| 35 |
<link type="text/css" rel="stylesheet" media="screen" href="<?php print base_path() . path_to_theme(); ?>/fix-ie.css" />
|
| 36 |
<?php if (defined('LANGUAGE_RTL') && $language->direction == LANGUAGE_RTL): ?>
|
| 37 |
<style type="text/css" media="screen">@import "<?php print base_path() . path_to_theme(); ?>/fix-ie-rtl.css";</style>
|
| 38 |
<?php endif; ?>
|
| 39 |
<![endif]-->
|
| 40 |
<!--[if lt IE 7]>
|
| 41 |
<link type="text/css" rel="stylesheet" media="screen" href="<?php print base_path() . path_to_theme(); ?>/fix-ie6.css" />
|
| 42 |
<?php if (defined('LANGUAGE_RTL') && $language->direction == LANGUAGE_RTL): ?>
|
| 43 |
<style type="text/css" media="screen">@import "<?php print base_path() . path_to_theme(); ?>/fix-ie6-rtl.css";</style>
|
| 44 |
<?php endif; ?>
|
| 45 |
<![endif]-->
|
| 46 |
</head>
|
| 47 |
<body class="<?php print $body_classes; ?>">
|
| 48 |
<div id="page" class="container_16">
|
| 49 |
<div id="header">
|
| 50 |
<div id="headerTitle" class="grid_12">
|
| 51 |
<?php if (isset($logo)): ?>
|
| 52 |
<a href="<?php print check_url($front_page); ?>" title="<?php print check_plain($site_name); ?>"><img src="<?php print check_url($logo); ?>" alt="<?php print check_plain($site_name); ?>" id="logo" /></a>
|
| 53 |
<?php endif; ?>
|
| 54 |
<div id="title-wrapper">
|
| 55 |
<h1><a href="<?php print check_url($front_page); ?>" title="<?php print check_plain($site_name); ?>"><?php print $nitobe_rendered_name; ?></a></h1>
|
| 56 |
<?php if (isset($site_slogan)): ?>
|
| 57 |
<div id="site-slogan"><?php print check_plain($site_slogan); ?></div>
|
| 58 |
<?php endif; ?>
|
| 59 |
</div> <!-- /#title-wrapper -->
|
| 60 |
</div> <!-- /#headerTitle -->
|
| 61 |
<div id="search-top" class="grid_4"><?php if ($search_box) { print $search_box; } ?></div>
|
| 62 |
<div class="clear"></div>
|
| 63 |
<?php if ($header): ?><div id="top-header" class="grid_16"><?php print $header; ?></div><div class="clear"></div><?php endif; ?>
|
| 64 |
<div id="headerLinks" class="grid_16">
|
| 65 |
<?php if (!empty($nitobe_primary_menu)) { print $nitobe_primary_menu; } ?>
|
| 66 |
<?php if (!empty($nitobe_secondary_menu)) : ?>
|
| 67 |
<div class="clear"></div>
|
| 68 |
<?php print $nitobe_secondary_menu; ?>
|
| 69 |
<?php endif; ?>
|
| 70 |
</div><!-- #headerLinks -->
|
| 71 |
<div class="clear"></div>
|
| 72 |
<div id="masthead" class="grid_16"><?php if (!empty($masthead)) { print $masthead; } ?></div>
|
| 73 |
</div><!-- /#header -->
|
| 74 |
<div class="rule-top"> </div>
|
| 75 |
<?php if ($mission): ?><div id="mission" class="grid_16"><?php print $mission; ?></div><?php endif; ?>
|
| 76 |
<div id="center" class="<?php print $nitobe_center_class; ?>">
|
| 77 |
<?php print $breadcrumb; ?>
|
| 78 |
<?php if (!empty($title)): ?>
|
| 79 |
<div class="<?php print $nitobe_headline_class; ?>">
|
| 80 |
<?php print '<h2 class="'. ($tabs ? 'with-tabs ' : '') . $nitobe_title_class . '">'. $title .'</h2>'; ?>
|
| 81 |
<?php if ($nitobe_render_date): ?>
|
| 82 |
<div class="timestamp grid_4 omega"><?php print format_date($node->created, 'custom', 'd M Y'); ?></div>
|
| 83 |
<?php endif; ?>
|
| 84 |
</div><!-- #headline -->
|
| 85 |
<div class="clear"></div>
|
| 86 |
<?php endif; ?>
|
| 87 |
<?php if (!empty($tabs)):?>
|
| 88 |
<div id="tabs-wrapper" class="grid_12 alpha">
|
| 89 |
<ul class="tabs primary"><?php print $tabs; ?></ul>
|
| 90 |
<?php if ($tabs2): ?>
|
| 91 |
<ul class="tabs secondary"><?php print $tabs2; ?></ul>
|
| 92 |
<?php endif; ?>
|
| 93 |
</div>
|
| 94 |
<div class="clear"></div>
|
| 95 |
<?php endif; ?>
|
| 96 |
<?php if ($show_messages && $messages): print $messages; endif; ?>
|
| 97 |
<?php print $help; ?>
|
| 98 |
<?php print $content ?>
|
| 99 |
<div class="clear"></div>
|
| 100 |
</div> <!-- /#center -->
|
| 101 |
<?php if (isset($right) || isset($left)): ?>
|
| 102 |
<div id="sidebar-right" class="sidebar grid_4">
|
| 103 |
<?php
|
| 104 |
//-----------------------------------------------------------------
|
| 105 |
// $left is printed here in case the previous theme had blocks in
|
| 106 |
// the 'left' region. This would be the case if switching from
|
| 107 |
// Garland which places the navigation block in the 'left' region.
|
| 108 |
if (isset($left)) print $left;
|
| 109 |
if (isset($right)) print $right;
|
| 110 |
?>
|
| 111 |
</div><!-- /#sidebar-right -->
|
| 112 |
<?php endif; ?>
|
| 113 |
<div class="clear"> </div>
|
| 114 |
<?php if ($bottom): ?>
|
| 115 |
<div id="bottomPad"> </div>
|
| 116 |
<div id="bottom-hr" class="rule"> </div>
|
| 117 |
<div id="bottom" class="grid_16">
|
| 118 |
<div id="bottom-bar">
|
| 119 |
<?php print $bottom; ?>
|
| 120 |
</div>
|
| 121 |
</div>
|
| 122 |
<div class="clear"> </div>
|
| 123 |
<br />
|
| 124 |
<?php endif; ?>
|
| 125 |
<div class="rule"> </div>
|
| 126 |
<div id="footer">
|
| 127 |
<?php print $footer_message . $footer ?>
|
| 128 |
</div>
|
| 129 |
</div> <!-- /#page -->
|
| 130 |
<?php print $closure; ?>
|
| 131 |
</body>
|
| 132 |
</html>
|