webmaster@1
|
1 <?php |
webmaster@1
|
2 // $Id: page.tpl.php,v 1.18 2008/01/24 09:42:53 goba Exp $ |
webmaster@1
|
3 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
webmaster@1
|
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
webmaster@1
|
5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"> |
webmaster@1
|
6 <head> |
webmaster@1
|
7 <title><?php print $head_title ?></title> |
webmaster@1
|
8 <?php print $head ?> |
webmaster@1
|
9 <?php print $styles ?> |
webmaster@1
|
10 <?php print $scripts ?> |
webmaster@1
|
11 <!--[if lt IE 7]> |
webmaster@1
|
12 <?php print phptemplate_get_ie_styles(); ?> |
webmaster@1
|
13 <![endif]--> |
webmaster@1
|
14 </head> |
webmaster@1
|
15 <body<?php print phptemplate_body_class($left, $right); ?>> |
webmaster@1
|
16 |
webmaster@1
|
17 <!-- Layout --> |
webmaster@1
|
18 <div id="header-region" class="clear-block"><?php print $header; ?></div> |
webmaster@1
|
19 |
webmaster@1
|
20 <div id="wrapper"> |
webmaster@1
|
21 <div id="container" class="clear-block"> |
webmaster@1
|
22 |
webmaster@1
|
23 <div id="header"> |
webmaster@1
|
24 <div id="logo-floater"> |
webmaster@1
|
25 <?php |
webmaster@1
|
26 // Prepare header |
webmaster@1
|
27 $site_fields = array(); |
webmaster@1
|
28 if ($site_name) { |
webmaster@1
|
29 $site_fields[] = check_plain($site_name); |
webmaster@1
|
30 } |
webmaster@1
|
31 if ($site_slogan) { |
webmaster@1
|
32 $site_fields[] = check_plain($site_slogan); |
webmaster@1
|
33 } |
webmaster@1
|
34 $site_title = implode(' ', $site_fields); |
webmaster@1
|
35 if ($site_fields) { |
webmaster@1
|
36 $site_fields[0] = '<span>'. $site_fields[0] .'</span>'; |
webmaster@1
|
37 } |
webmaster@1
|
38 $site_html = implode(' ', $site_fields); |
webmaster@1
|
39 |
webmaster@1
|
40 if ($logo || $site_title) { |
webmaster@1
|
41 print '<h1><a href="'. check_url($front_page) .'" title="'. $site_title .'">'; |
webmaster@1
|
42 if ($logo) { |
webmaster@1
|
43 print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />'; |
webmaster@1
|
44 } |
webmaster@1
|
45 print $site_html .'</a></h1>'; |
webmaster@1
|
46 } |
webmaster@1
|
47 ?> |
webmaster@1
|
48 </div> |
webmaster@1
|
49 |
webmaster@1
|
50 <?php if (isset($primary_links)) : ?> |
webmaster@1
|
51 <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?> |
webmaster@1
|
52 <?php endif; ?> |
webmaster@1
|
53 <?php if (isset($secondary_links)) : ?> |
webmaster@1
|
54 <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?> |
webmaster@1
|
55 <?php endif; ?> |
webmaster@1
|
56 |
webmaster@1
|
57 </div> <!-- /header --> |
webmaster@1
|
58 |
webmaster@1
|
59 <?php if ($left): ?> |
webmaster@1
|
60 <div id="sidebar-left" class="sidebar"> |
webmaster@1
|
61 <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?> |
webmaster@1
|
62 <?php print $left ?> |
webmaster@1
|
63 </div> |
webmaster@1
|
64 <?php endif; ?> |
webmaster@1
|
65 |
webmaster@1
|
66 <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner"> |
webmaster@1
|
67 <?php print $breadcrumb; ?> |
webmaster@1
|
68 <?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?> |
webmaster@1
|
69 <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?> |
webmaster@1
|
70 <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?> |
webmaster@1
|
71 <?php if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif; ?> |
webmaster@1
|
72 <?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?> |
webmaster@1
|
73 <?php if ($show_messages && $messages): print $messages; endif; ?> |
webmaster@1
|
74 <?php print $help; ?> |
webmaster@1
|
75 <div class="clear-block"> |
webmaster@1
|
76 <?php print $content ?> |
webmaster@1
|
77 </div> |
webmaster@1
|
78 <?php print $feed_icons ?> |
webmaster@1
|
79 <div id="footer"><?php print $footer_message . $footer ?></div> |
webmaster@1
|
80 </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center --> |
webmaster@1
|
81 |
webmaster@1
|
82 <?php if ($right): ?> |
webmaster@1
|
83 <div id="sidebar-right" class="sidebar"> |
webmaster@1
|
84 <?php if (!$left && $search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?> |
webmaster@1
|
85 <?php print $right ?> |
webmaster@1
|
86 </div> |
webmaster@1
|
87 <?php endif; ?> |
webmaster@1
|
88 |
webmaster@1
|
89 </div> <!-- /container --> |
webmaster@1
|
90 </div> |
webmaster@1
|
91 <!-- /layout --> |
webmaster@1
|
92 |
webmaster@1
|
93 <?php print $closure ?> |
webmaster@1
|
94 </body> |
webmaster@1
|
95 </html> |