| 1 |
<?php // $Id: page.tpl.php,v 1.16 2009/05/04 21:34:31 jmburnz Exp $
|
| 2 |
/**
|
| 3 |
* @file
|
| 4 |
* page.tpl.php
|
| 5 |
*
|
| 6 |
* Theme implementation to display a single Drupal page.
|
| 7 |
*
|
| 8 |
* @see template_preprocess()
|
| 9 |
* @see template_preprocess_page()
|
| 10 |
*/
|
| 11 |
?>
|
| 12 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 13 |
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>">
|
| 14 |
<head>
|
| 15 |
<meta http-equiv="Content-Style-Type" content="text/css" />
|
| 16 |
<?php print $head; ?>
|
| 17 |
<title><?php print $head_title; ?></title>
|
| 18 |
<?php print $styles; ?>
|
| 19 |
<!--[if IE]>
|
| 20 |
<link type="text/css" rel="stylesheet" media="all" href="<?php print $base_path . $directory; ?>/ie.css" >
|
| 21 |
<![endif]-->
|
| 22 |
<?php print $scripts; ?>
|
| 23 |
</head>
|
| 24 |
<?php
|
| 25 |
$pixture_width = theme_get_setting('pixture_width');
|
| 26 |
$pixture_width = pixture_validate_page_width($pixture_width);
|
| 27 |
?>
|
| 28 |
<body id="pixture-reloaded" class="<?php print $body_classes; ?> <?php print $logo ? 'with-logo' : 'no-logo' ; ?>">
|
| 29 |
|
| 30 |
<div id="skip-to-content">
|
| 31 |
<a href="#main-content"><?php print t('Skip to main content'); ?></a>
|
| 32 |
</div>
|
| 33 |
|
| 34 |
<div id="page" style="width: <?php print $pixture_width; ?>;">
|
| 35 |
|
| 36 |
<div id="header">
|
| 37 |
|
| 38 |
<?php if ($site_logo): ?>
|
| 39 |
<div id="logo"><?php print $site_logo; ?></div>
|
| 40 |
<?php endif; ?>
|
| 41 |
|
| 42 |
<div id="head-elements">
|
| 43 |
|
| 44 |
<?php if ($search_box): ?>
|
| 45 |
<div id="search-box">
|
| 46 |
<?php print $search_box; ?>
|
| 47 |
</div> <!-- /#search-box -->
|
| 48 |
<?php endif; ?>
|
| 49 |
|
| 50 |
<div id="branding">
|
| 51 |
<?php if ($site_name): ?>
|
| 52 |
<?php if ($title): ?>
|
| 53 |
<div id="site-name"><strong><?php print $site_name; ?></strong></div>
|
| 54 |
<?php else: /* Use h1 when the content title is empty */ ?>
|
| 55 |
<h1 id="site-name"><?php print $site_name; ?></h1>
|
| 56 |
<?php endif; ?>
|
| 57 |
<?php endif; ?>
|
| 58 |
|
| 59 |
<?php if ($site_slogan): ?>
|
| 60 |
<div id="site-slogan"><em><?php print $site_slogan; ?></em></div>
|
| 61 |
<?php endif; ?>
|
| 62 |
</div> <!-- /#branding -->
|
| 63 |
|
| 64 |
</div> <!-- /#head-elements -->
|
| 65 |
|
| 66 |
<?php if ($primary_menu || $superfish): ?>
|
| 67 |
<!-- Primary || Superfish -->
|
| 68 |
<div id="<?php print $primary_menu ? 'primary' : 'superfish' ; ?>">
|
| 69 |
<div id="<?php print $primary_menu ? 'primary' : 'superfish' ; ?>-inner">
|
| 70 |
<?php if ($primary_menu): ?>
|
| 71 |
<?php print $primary_menu; ?>
|
| 72 |
<?php elseif ($superfish): ?>
|
| 73 |
<?php print $superfish; ?>
|
| 74 |
<?php endif; ?>
|
| 75 |
</div> <!-- /inner -->
|
| 76 |
</div> <!-- /primary || superfish -->
|
| 77 |
<?php endif; ?>
|
| 78 |
|
| 79 |
</div> <!--/#header -->
|
| 80 |
|
| 81 |
<?php if ($header): ?>
|
| 82 |
<div id="header-blocks" class="region region-header">
|
| 83 |
<?php print $header; ?>
|
| 84 |
</div> <!-- /#header-blocks -->
|
| 85 |
<?php endif; ?>
|
| 86 |
|
| 87 |
<div id="main" class="clear-block <?php print $header ? 'with-header-blocks' : 'no-header-blocks' ; ?>">
|
| 88 |
|
| 89 |
<div id="content"><div id="content-inner">
|
| 90 |
|
| 91 |
<?php if ($mission): ?>
|
| 92 |
<div id="mission"><?php print $mission; ?></div>
|
| 93 |
<?php endif; ?>
|
| 94 |
|
| 95 |
<?php if ($content_top): ?>
|
| 96 |
<div id="content-top" class="region region-content_top">
|
| 97 |
<?php print $content_top; ?>
|
| 98 |
</div> <!-- /#content-top -->
|
| 99 |
<?php endif; ?>
|
| 100 |
|
| 101 |
<div id="content-header" class="clearfix">
|
| 102 |
<?php if ($breadcrumb): print $breadcrumb; endif; ?>
|
| 103 |
<a name="main-content" id="main-content"></a>
|
| 104 |
<?php if ($title): ?><h1 class="title"><?php print $title; ?></h1><?php endif; ?>
|
| 105 |
<?php if ($tabs): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?>
|
| 106 |
<?php if ($messages): print $messages; endif; ?>
|
| 107 |
<?php if ($help): print $help; endif; ?>
|
| 108 |
</div> <!-- /#content-header -->
|
| 109 |
|
| 110 |
<div id="content-area">
|
| 111 |
<?php print $content; ?>
|
| 112 |
</div>
|
| 113 |
|
| 114 |
<?php if ($content_bottom): ?>
|
| 115 |
<div id="content-bottom" class="region region-content_bottom">
|
| 116 |
<?php print $content_bottom; ?>
|
| 117 |
</div> <!-- /#content-bottom -->
|
| 118 |
<?php endif; ?>
|
| 119 |
|
| 120 |
<?php if ($feed_icons): ?>
|
| 121 |
<div class="feed-icons"><?php print $feed_icons; ?></div>
|
| 122 |
<?php endif; ?>
|
| 123 |
|
| 124 |
</div></div> <!-- /#content-inner, /#content -->
|
| 125 |
|
| 126 |
<?php if ($left): ?>
|
| 127 |
<div id="sidebar-left" class="region region-left">
|
| 128 |
<?php print $left; ?>
|
| 129 |
</div> <!-- /#sidebar-left -->
|
| 130 |
<?php endif; ?>
|
| 131 |
|
| 132 |
<?php if ($right): ?>
|
| 133 |
<div id="sidebar-right" class="region region-right">
|
| 134 |
<?php print $right; ?>
|
| 135 |
</div> <!-- /#sidebar-right -->
|
| 136 |
<?php endif; ?>
|
| 137 |
|
| 138 |
</div> <!-- #main -->
|
| 139 |
|
| 140 |
<div id="footer" class="region region-footer">
|
| 141 |
<?php if ($footer): print $footer; endif; ?>
|
| 142 |
<div id="footer-message">
|
| 143 |
<?php print $footer_message; ?>
|
| 144 |
</div> <!-- /#footer-message -->
|
| 145 |
</div> <!-- /#footer -->
|
| 146 |
|
| 147 |
</div> <!--/#page -->
|
| 148 |
|
| 149 |
<?php if ($closure_region): ?>
|
| 150 |
<div id="closure-blocks" class="region region-closure">
|
| 151 |
<?php print $closure_region; ?>
|
| 152 |
</div>
|
| 153 |
<?php endif; ?>
|
| 154 |
|
| 155 |
<?php print $closure; ?>
|
| 156 |
|
| 157 |
</body>
|
| 158 |
</html>
|