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