/[drupal]/contributions/themes/yui-framework/page.tpl.php
ViewVC logotype

Contents of /contributions/themes/yui-framework/page.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Fri Apr 11 09:03:30 2008 UTC (19 months, 2 weeks ago) by xavierbriand
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
création
1 <?php
2 // $Id$
3 ?>
4 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
5 <html lang="<?php print $language ?>">
6 <head>
7 <title><?php echo $head_title ?></title>
8 <?php echo $head, $styles, $scripts ?>
9 <!--[if lt IE 7]>
10 <style type="text/css" media="all">@import "<?php echo base_path() . path_to_theme() ?>/fix-ie.css";</style>
11 <![endif]-->
12 </head>
13 <body >
14 <div id="<?php phptemplate_page_width() ?>" class="<?php phptemplate_page_template( $sidebar_left, $sidebar_right ) ?>">
15 <div id="hd">
16 <?php
17 echo $header;
18
19 // Prepare header
20 $site_fields = array();
21
22 if ($site_name) $site_fields[] = check_plain( $site_name );
23 if ($site_slogan) $site_fields[] = check_plain( $site_slogan );
24
25 $site_title = implode( ' ', $site_fields );
26 $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
27 $site_html = implode( ' ', $site_fields );
28
29 if ( $logo || $site_title ) {
30 echo '<h1><a href="'. check_url( $base_path ) .'" title="'. $site_title .'">';
31 if ( $logo ) echo '<img src="'. check_url( $logo ) .'" alt="'. $site_title .'" id="logo" />';
32 echo $site_html .'</a></h1>';
33 }
34 ?>
35 </div>
36
37 <div id="nav">
38 <?php
39 if ( isset( $primary_links) ) echo theme('links', $primary_links, array('class' => 'links primary-links'));
40 if ( isset( $secondary_links) ) echo theme('links', $secondary_links, array('class' => 'links secondary-links'));
41 ?>
42 </div>
43
44 <div id="bd">
45
46 <div id="yui-main">
47 <div class="yui-b">
48 <?php if ( $sidebar_left && $sidebar_right ): ?>
49 <div class="yui-g">
50 <div id="sidebar-left" class="yui-u first">
51 <?php
52 echo $search_box ? $search_box : '';
53 echo $sidebar_left;
54 ?>
55 </div>
56 <div class="yui-u">
57 <?php endif ?>
58
59 <?php
60 echo $breadcrumb ? $breadcrumb : '';
61 echo $mission ? '<div id="mission">'. $mission .'</div>' : '';
62 echo $tabs ? '<div id="tabs-wrapper" class="clear-block">' : '';
63 echo $title ? '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>' : '';
64 echo $tabs ? $tabs .'</div>' : '';
65 echo isset($tabs2)? $tabs2 : '';
66 echo $help ? $help : '';
67 echo $messages ? $messages : '';
68 echo $content;
69 ?>
70
71 <?php if ( $sidebar_left && $sidebar_right ): ?>
72 </div>
73 </div>
74 <?php endif?>
75 </div>
76 </div>
77
78 <?php if ( $sidebar_left && $sidebar_right == ''): ?>
79 <div id="sidebar-left" class="yui-b">
80 <?php
81 echo $search_box ? $search_box : '';
82 echo $sidebar_left;
83 ?>
84 </div>
85 <?php endif ?>
86
87 <?php if ( $sidebar_right ): ?>
88 <div id="sidebar-right" class="yui-b">
89 <?php if (!$sidebar_left && $search_box): ?><?php print $search_box ?><?php endif; ?>
90 <?php print $sidebar_right ?>
91 </div>
92 <?php endif; ?>
93
94 </div>
95 <div id="ft"><?php echo $footer_message, $feed_icons ?></div>
96 </div>
97
98 <?php echo $closure ?>
99 </body>
100 </html>

  ViewVC Help
Powered by ViewVC 1.1.2