/[drupal]/contributions/themes/ability/page.tpl.php
ViewVC logotype

Contents of /contributions/themes/ability/page.tpl.php

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


Revision 1.2 - (show annotations) (download) (as text)
Sun Feb 17 16:35:36 2008 UTC (21 months, 1 week ago) by xactive
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5, DRUPAL-6--2
Changes since 1.1: +233 -0 lines
File MIME type: text/x-php
Initial commit of example module. Here is a brief description of what this module does.
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>">
3
4 <head>
5 <title><?php print $head_title ?></title>
6 <?php print $head ?>
7 <meta name="language" content="<?php print $language->language ?>" />
8 <?php print $styles ?>
9 <?php print $scripts ?>
10 <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
11 <!--[if lte IE 6]>
12 <script type="text/javascript">
13 $(document).ready(function(){
14 $(document).pngFix();
15 });
16 </script>
17 <![endif]-->
18 </head>
19
20 <body>
21 <div id="page">
22 <div id="masthead">
23 <div id="header" class="clear-block">
24
25 <div class="header-right">
26 <div class="header-left">
27 <div id="logo-title">
28 <?php if ($logo): ?>
29 <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>">
30 <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" />
31 </a>
32 <?php endif; ?>
33 </div> <!-- /logo-title -->
34 <div id="name-and-slogan">
35 <?php if ($site_name): ?>
36 <h1 id="site-name">
37 <a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>">
38 <?php print $site_name; ?>
39 </a>
40 </h1>
41 <?php endif; ?>
42 <?php if ($site_slogan): ?>
43 <div id="site-slogan">
44 <?php print $site_slogan; ?>
45 </div>
46 <?php endif; ?>
47 </div> <!-- /name-and-slogan -->
48 <?php if ($header): ?>
49 <?php print $header; ?>
50 <?php endif; ?>
51 </div> <!-- /header-left -->
52 </div> <!-- /header-right -->
53 </div> <!-- /header -->
54 </div>
55
56 <div id="navigation" class="menu">
57 <?php if ($primary_links): ?>
58 <div id="primary" class="clear-block">
59 <?php print theme('links', $primary_links, array()); ?>
60 <?php print $search_box; ?>
61 </div>
62 <?php endif; ?>
63 <?php if ($secondary_links): ?>
64 <div id="secondary" class="clear-block">
65 <?php print theme('links', $secondary_links, array()); ?>
66 </div>
67 <?php endif; ?>
68 </div> <!-- /navigation -->
69 <?php if ($breadcrumb): ?>
70 <div id="breadcrumb">
71 <?php print $breadcrumb; ?>
72 </div>
73 <?php endif; ?>
74
75 <?php
76 $section1count = 0;
77 $user1count = 0;
78 $user2count = 0;
79 $user3count = 0;
80
81 if ($user1)
82 {
83 $section1count++;
84 $user1count++;
85 }
86
87 if ($user2)
88 {
89 $section1count++;
90 $user2count++;
91 }
92
93 if ($user3)
94 {
95 $section1count++;
96 $user3count++;
97 }
98 ?>
99
100 <?php if ($section1count): ?>
101 <?php $section1width = 'width' . floor(99 / $section1count); ?>
102 <?php $block2div = ($user1count and ($user2count or $user3count)) ? " divider" : ""; ?>
103 <?php $block3div = ($user3count and ($user1count or $user2count)) ? " divider" : ""; ?>
104
105 <div class="clr" id="section1">
106
107 <table class="sections" cellspacing="0" cellpadding="0">
108 <tr valign="top">
109 <?php if ($user1): ?>
110 <td class="section <?php echo $section1width ?>">
111 <?php print $user1; ?>
112 </td>
113 <?php endif; ?>
114 <?php if ($user2): ?>
115 <td class="section <?php echo $section1width . $block2div; ?>">
116 <?php print $user2; ?>
117 </td>
118 <?php endif; ?>
119 <?php if ($user3): ?>
120 <td class="section <?php echo $section1width . $block3div; ?>">
121 <?php print $user3; ?>
122 </td>
123 <?php endif; ?>
124 </tr>
125 </table>
126
127 </div> <!-- /section1 -->
128 <?php endif; ?>
129
130 <div id="middlecontainer">
131 <table border="0" cellpadding="0" cellspacing="0" id="content">
132 <tr>
133 <?php if ($sidebar_left) { ?><td id="sidebar-left">
134 <?php print $sidebar_left ?>
135 </td><?php } ?>
136 <td valign="top">
137 <?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
138 <div id="main">
139 <?php if ($section1count > 0): ?>
140 <?php if ($breadcrumb): ?><?php print $breadcrumb; ?><?php endif; ?>
141 <?php endif; ?>
142 <?php if ($content_top):?><div id="content-top"><?php print $content_top; ?></div><?php endif; ?>
143 <h1 class="title"><?php print $title ?></h1>
144 <div class="tabs"><?php print $tabs ?></div>
145 <?php print $help ?>
146 <?php print $messages ?>
147 <?php print $content; ?>
148 <?php print $feed_icons; ?>
149 <?php if ($content_bottom): ?><div id="content-bottom"><?php print $content_bottom; ?></div><?php endif; ?>
150 </div>
151 </td>
152 <?php if ($sidebar_right) { ?><td id="sidebar-right">
153 <?php print $sidebar_right ?>
154 </td><?php } ?>
155 </tr>
156 </table>
157 </div>
158
159 <?php
160 $section2count = 0;
161 $user4count = 0;
162 $user5count = 0;
163 $user6count = 0;
164
165 if ($user4)
166 {
167 $section2count++;
168 $user4count++;
169 }
170
171 if ($user5)
172 {
173 $section2count++;
174 $user5count++;
175 }
176
177 if ($user6)
178 {
179 $section2count++;
180 $user6count++;
181 }
182 ?>
183
184 <?php if ($section2count): ?>
185 <?php $section2width = 'width' . floor(99 / $section2count); ?>
186 <?php $block2div = ($user4count and ($user5count or $user6count)) ? " divider" : ""; ?>
187 <?php $block3div = ($user6count and ($user4count or $user5count)) ? " divider" : ""; ?>
188
189 <div class="clr" id="section2">
190
191 <div id="bar"></div>
192
193 <table class="sections" cellspacing="0" cellpadding="0">
194 <tr valign="top">
195 <?php if ($user4): ?>
196 <td class="section <?php echo $section2width ?>">
197 <?php print $user4; ?>
198 </td>
199 <?php endif; ?>
200 <?php if ($user5): ?>
201 <td class="section <?php echo $section2width . $block2div; ?>">
202 <?php print $user5; ?>
203 </td>
204 <?php endif; ?>
205 <?php if ($user6): ?>
206 <td class="section <?php echo $section2width . $block3div; ?>">
207 <?php print $user6; ?>
208 </td>
209 <?php endif; ?>
210 </tr>
211 </table>
212
213 </div> <!-- /section2 -->
214 <?php endif; ?>
215
216 <div id="footer-wrapper" class="clear-block">
217 <div id="footer">
218 <?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')) ?><?php } ?>
219 <div class="legal1"><em>by <a href="http://art4linux.org"> Xactive</a></em></div>
220 <div class="legal2">Copyright &copy; <?php print date('Y') ?> <a href="/"><?php print $site_name ?></a> <?php print $footer_message ?></div>
221 </div>
222 <div class="footer-right">
223 <div class="footer-left">
224 </div> <!-- /footer-left -->
225 </div> <!-- /footer-right -->
226 </div> <!-- /footer-wrapper -->
227
228 <?php print $closure ?>
229
230 </div>
231
232 </body>
233 </html>

  ViewVC Help
Powered by ViewVC 1.1.2