page.tpl.php 3.83 KB
Newer Older
1 2 3
<?php
// $Id$
?><!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 print $language->language ?>" xml:lang="<?php print $language->language ?>">
5 6 7 8 9
<head>
  <title><?php print $head_title ?></title>
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <?php print $head ?>
  <?php print $styles ?>
10
  <?php print $scripts ?>
11 12
</head>

13
<body bgcolor="#ffffff">
14

15
<div class="hide"><a href="#content" title="<?php print t('Skip navigation') ?>." accesskey="2"><?php print t('Skip navigation') ?></a>.</div>
16 17 18 19 20

<table id="primary-menu" summary="Navigation elements." border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td id="home" width="10%">
      <?php if ($logo) : ?>
21
        <a href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><img src="<?php print($logo) ?>" alt="<?php print t('Home') ?>" border="0" /></a>
22 23 24 25 26
      <?php endif; ?>
    </td>

    <td id="site-info" width="20%">
      <?php if ($site_name) : ?>
27
        <div class='site-name'><a href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><?php print($site_name) ?></a></div>
28 29 30 31 32 33
      <?php endif;?>
      <?php if ($site_slogan) : ?>
        <div class='site-slogan'><?php print($site_slogan) ?></div>
      <?php endif;?>
    </td>
    <td class="primary-links" width="70%" align="center" valign="middle">
34
      <?php print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist')) ?>
35 36 37 38 39 40 41
    </td>
  </tr>
</table>

<table id="secondary-menu" summary="Navigation elements." border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td class="secondary-links" width="75%"  align="center" valign="middle">
42
      <?php print theme('links', $secondary_links, array('class' => 'links', 'id' => 'subnavlist')) ?>
43 44
    </td>
    <td  width="25%"  align="center" valign="middle">
45
      <?php print $search_box ?>
46
    </td>
47 48 49 50
  </tr>
  <tr>
    <td colspan="2"><div><?php print $header ?></div></td>
  </tr>
51 52 53 54
</table>

<table id="content" border="0" cellpadding="15" cellspacing="0" width="100%">
  <tr>
55
    <?php if ($left != ""): ?>
56
    <td id="sidebar-left">
57
      <?php print $left ?>
58
    </td>
59 60
    <?php endif; ?>

61 62 63 64
    <td valign="top">
      <?php if ($mission != ""): ?>
      <div id="mission"><?php print $mission ?></div>
      <?php endif; ?>
65

66 67 68 69
      <div id="main">
        <?php if ($title != ""): ?>
          <?php print $breadcrumb ?>
          <h1 class="title"><?php print $title ?></h1>
70

71 72 73
          <?php if ($tabs != ""): ?>
            <div class="tabs"><?php print $tabs ?></div>
          <?php endif; ?>
74

75
        <?php endif; ?>
76

77 78 79
        <?php if ($help != ""): ?>
            <div id="help"><?php print $help ?></div>
        <?php endif; ?>
80

81
        <?php if ($show_messages && $messages != ""): ?>
82 83
          <?php print $messages ?>
        <?php endif; ?>
84

85
      <!-- start main content -->
86 87
      <?php print $content; ?>
      <?php print $feed_icons; ?>
88
      <!-- end main content -->
89

90 91
      </div><!-- main -->
    </td>
92
    <?php if ($right != ""): ?>
93
    <td id="sidebar-right">
94
      <?php print $right ?>
95
    </td>
96
    <?php endif; ?>
97 98 99 100 101 102
  </tr>
</table>

<table id="footer-menu" summary="Navigation elements." border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td align="center" valign="middle">
103
    <?php if (isset($primary_links)) : ?>
104
      <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
105
    <?php endif; ?>
106
    <?php if (isset($secondary_links)) : ?>
107
      <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
108 109 110 111 112
    <?php endif; ?>
    </td>
  </tr>
</table>

113
<?php if ($footer_message || $footer) : ?>
114
<div id="footer-message">
115
    <p><?php print $footer_message . $footer;?></p>
116 117 118 119
</div>
<?php endif; ?>
<?php print $closure;?>
</body>
120
</html>