| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 2 |
|
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>">
|
| 4 |
|
| 5 |
<head>
|
| 6 |
|
| 7 |
<base href="<?php print $GLOBALS['base_url']; ?>/" />
|
| 8 |
|
| 9 |
<title><?php print $head_title ?></title>
|
| 10 |
|
| 11 |
<?php print $head ?>
|
| 12 |
|
| 13 |
<?php print $styles ?>
|
| 14 |
|
| 15 |
<?php print $scripts ?>
|
| 16 |
|
| 17 |
<style type="text/css" media="print">@import "<?php print base_path() . path_to_theme() ?>/print.css";</style>
|
| 18 |
|
| 19 |
<!--[if lt IE 7]>
|
| 20 |
<style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/fix-ie.css";</style>
|
| 21 |
<![endif]-->
|
| 22 |
|
| 23 |
</head>
|
| 24 |
|
| 25 |
<body class="sidebar-right">
|
| 26 |
|
| 27 |
<div id="jump-content">
|
| 28 |
<a href="#center" title="<?php print t('skip directly to the content') ?>" accesskey="2"><?php print t('skip to content') ?></a>
|
| 29 |
</div>
|
| 30 |
|
| 31 |
<div id="wrapper">
|
| 32 |
<div id="container" class="clear-block">
|
| 33 |
|
| 34 |
<div id="header">
|
| 35 |
|
| 36 |
<div id="logo-floater">
|
| 37 |
<?php
|
| 38 |
// Prepare header
|
| 39 |
if ($site_name)
|
| 40 |
$site_name_title = check_plain($site_name);
|
| 41 |
if ($site_slogan)
|
| 42 |
$site_slogan_title = check_plain($site_slogan);
|
| 43 |
|
| 44 |
$site_title = $site_name_title ? $site_name_title : ($site_slogan_title ? $site_slogan_title : null);
|
| 45 |
|
| 46 |
if ($logo)
|
| 47 |
print '<a href="'. check_url($base_path) .'" title="'. $site_title .'" class="site-logo"><img src="'. check_url($logo) .'" alt="'. $site_title .'" /></a>';
|
| 48 |
|
| 49 |
if ($site_title) {
|
| 50 |
print '<a href="'. check_url($base_path) .'" title="'. $site_title .'" class="site-title"><h1>';
|
| 51 |
if ($site_name_title)
|
| 52 |
print '<span class="site-name">'. $site_name_title .'</span>'. ($site_slogan_title ? ' ' : '');
|
| 53 |
if ($site_slogan_title)
|
| 54 |
print '<span class="site-slogan">'. $site_slogan_title .'</span>';
|
| 55 |
print '</h1></a>';
|
| 56 |
}
|
| 57 |
?>
|
| 58 |
|
| 59 |
</div>
|
| 60 |
|
| 61 |
<?php
|
| 62 |
if (!isset($primary_links) || empty($primary_links)) {
|
| 63 |
$primary_links = array();
|
| 64 |
$primary_links['menu-none'] = array('title' => '');
|
| 65 |
}
|
| 66 |
print theme('links', $primary_links, array('class' => 'links primary-links'));
|
| 67 |
?>
|
| 68 |
|
| 69 |
<div id="login">
|
| 70 |
<?php if (isset($secondary_links)) : ?>
|
| 71 |
<?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
|
| 72 |
<?php endif; ?>
|
| 73 |
</div>
|
| 74 |
<?php if ($search_box): ?>
|
| 75 |
<div id="search-floater" class="noprint">
|
| 76 |
<?php print $search_box ?>
|
| 77 |
</div>
|
| 78 |
<?php endif; ?>
|
| 79 |
|
| 80 |
</div>
|
| 81 |
|
| 82 |
<div id="center"><div id="squeeze"><div class="inner">
|
| 83 |
|
| 84 |
<?php if ($breadcrumb): print $breadcrumb; endif; ?>
|
| 85 |
<?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>
|
| 86 |
|
| 87 |
<div id="header-region">
|
| 88 |
<?php print $header; ?>
|
| 89 |
|
| 90 |
</div>
|
| 91 |
|
| 92 |
<?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
|
| 93 |
|
| 94 |
<?php if ($title): print '<h2 class="main-title'. ($tabs ? ' with-tabs' : '') .'">'. $title .'</h2>'; endif; ?>
|
| 95 |
|
| 96 |
<?php if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul>'; endif; ?>
|
| 97 |
|
| 98 |
<?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
|
| 99 |
|
| 100 |
|
| 101 |
<div class="inner-content">
|
| 102 |
<?php if ($help): print $help; endif; ?>
|
| 103 |
<?php if ($messages): print $messages; endif; ?>
|
| 104 |
<?php print $content ?>
|
| 105 |
</div>
|
| 106 |
<?php if ($tabs): print '</div>'; endif; ?>
|
| 107 |
|
| 108 |
<span class="clear"></span>
|
| 109 |
|
| 110 |
<?php print $feed_icons ?>
|
| 111 |
|
| 112 |
</div></div></div>
|
| 113 |
|
| 114 |
<div id="language_bar">
|
| 115 |
<?php
|
| 116 |
// We don't need to check if we have more than one language because with removing
|
| 117 |
// the current, we end up with an empty list if only one language, and thus, show nothing
|
| 118 |
if(FALSE){
|
| 119 |
$current = i18n_get_lang();
|
| 120 |
|
| 121 |
$languages = language_list('enabled');
|
| 122 |
|
| 123 |
$links = array();
|
| 124 |
foreach ($languages[1] as $language) {
|
| 125 |
if ($language->language != $current) {
|
| 126 |
$links[$language->language] = array(
|
| 127 |
'href' => $_GET['q'],
|
| 128 |
'title' => $language->native,
|
| 129 |
'language' => $language,
|
| 130 |
'attributes' => array('class' => 'language-link'),
|
| 131 |
);
|
| 132 |
|
| 133 |
// use the i18n function to set language name and/or flag according to the i18n settings:
|
| 134 |
//languageicons_link_add($links[$language->language]);
|
| 135 |
|
| 136 |
// Or do your own stuff, e.g. set the flags and no lang names,
|
| 137 |
// no matter what the i18n icon settings say.
|
| 138 |
if ($icon = theme('languageicons_icon', $language, NULL)) {
|
| 139 |
$links[$language->language]['title'] = theme('languageicons_place', $link['title'], $icon);
|
| 140 |
$links[$language->language]['html'] = TRUE;
|
| 141 |
}
|
| 142 |
}
|
| 143 |
}
|
| 144 |
}
|
| 145 |
// Instead of calling languageicons_link_add above, we should be able to call
|
| 146 |
// drupal_alter('translation_link', $links, $_GET['q']);
|
| 147 |
// to add the flags or remove the lang names, according to the icon settings.
|
| 148 |
// Didn't work for me, I got *all* languages shown again and even two flags for the
|
| 149 |
// current one. Somehow interfers with the automatic adding of the language
|
| 150 |
// flags in nodes bodies, because it works on a language neutral page
|
| 151 |
|
| 152 |
// now format as you like. E.g.
|
| 153 |
?>
|
| 154 |
|
| 155 |
<?php
|
| 156 |
// echo theme('links', $links, array('id'=>'imglinks' , 'class' => 'links secondary-links'));
|
| 157 |
?>
|
| 158 |
|
| 159 |
</div>
|
| 160 |
|
| 161 |
<div id="sidebar-right">
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
<?php if ($right): print $right; endif; ?>
|
| 168 |
<?php if ($left): print $left; endif; ?>
|
| 169 |
</div>
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
</div>
|
| 174 |
<div id="footer">
|
| 175 |
<div id="footer_container">
|
| 176 |
<div id="left">
|
| 177 |
<p class="contact_us">Contact us</p>
|
| 178 |
<p class="address">
|
| 179 |
DuoFertility,
|
| 180 |
<br/>
|
| 181 |
Cambridge Temperature Concepts Ltd,
|
| 182 |
<br/>
|
| 183 |
23 Cambridge Science Park,
|
| 184 |
<br/>
|
| 185 |
Milton Road,
|
| 186 |
<br/>
|
| 187 |
Cambridge,
|
| 188 |
<br/>
|
| 189 |
CB40EY,<br/>
|
| 190 |
United Kingdom.
|
| 191 |
</p>
|
| 192 |
</div><div id="right">
|
| 193 |
<img alt="DuoFertility Logo" src="<?php echo check_url($base_path); ?>sites/all/themes/DuoFertility/images/footer.gif"/>
|
| 194 |
</div>
|
| 195 |
<div id="center_foot">
|
| 196 |
<?php print $footer_message ?>
|
| 197 |
</div>
|
| 198 |
</div>
|
| 199 |
</div>
|
| 200 |
|
| 201 |
</div>
|
| 202 |
|
| 203 |
<?php print $closure ?>
|
| 204 |
|
| 205 |
</body>
|
| 206 |
|
| 207 |
</html>
|
| 208 |
|