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

Contents of /contributions/themes/millwood/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 Jan 11 19:17:21 2009 UTC (10 months, 2 weeks ago) by timmillwood
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-php
no message
1 <?php
2 // $Id: page.tpl.php,v 1.1.4.3 2008/07/08 17:20:33 stevek Exp $
3
4 /**
5 * @file page.tpl.php
6 *
7 * Theme implementation to display a single Drupal page.
8 *
9 * Available variables:
10 *
11 * General utility variables:
12 * - $base_path: The base URL path of the Drupal installation. At the very
13 * least, this will always default to /.
14 * - $css: An array of CSS files for the current page.
15 * - $directory: The directory the theme is located in, e.g. themes/garland or
16 * themes/garland/minelli.
17 * - $is_front: TRUE if the current page is the front page. Used to toggle the mission statement.
18 * - $logged_in: TRUE if the user is registered and signed in.
19 * - $is_admin: TRUE if the user has permission to access administration pages.
20 *
21 * Page metadata:
22 * - $language: (object) The language the site is being displayed in.
23 * $language->language contains its textual representation.
24 * $language->dir contains the language direction. It will either be 'ltr' or 'rtl'.
25 * - $head_title: A modified version of the page title, for use in the TITLE tag.
26 * - $head: Markup for the HEAD section (including meta tags, keyword tags, and
27 * so on).
28 * - $styles: Style tags necessary to import all CSS files for the page.
29 * - $scripts: Script tags necessary to load the JavaScript files and settings
30 * for the page.
31 * - $body_classes: A set of CSS classes for the BODY tag. This contains flags
32 * indicating the current layout (multiple columns, single column), the current
33 * path, whether the user is logged in, and so on.
34 *
35 * Site identity:
36 * - $front_page: The URL of the front page. Use this instead of $base_path,
37 * when linking to the front page. This includes the language domain or prefix.
38 * - $logo: The path to the logo image, as defined in theme configuration.
39 * - $site_name: The name of the site, empty when display has been disabled
40 * in theme settings.
41 * - $site_slogan: The slogan of the site, empty when display has been disabled
42 * in theme settings.
43 * - $mission: The text of the site mission, empty when display has been disabled
44 * in theme settings.
45 *
46 * Navigation:
47 * - $search_box: HTML to display the search box, empty if search has been disabled.
48 * - $primary_links (array): An array containing primary navigation links for the
49 * site, if they have been configured.
50 * - $secondary_links (array): An array containing secondary navigation links for
51 * the site, if they have been configured.
52 *
53 * Page content (in order of occurrance in the default page.tpl.php):
54 * - $left: The HTML for the left sidebar.
55 *
56 * - $breadcrumb: The breadcrumb trail for the current page.
57 * - $title: The page title, for use in the actual HTML content.
58 * - $help: Dynamic help text, mostly for admin pages.
59 * - $messages: HTML for status and error messages. Should be displayed prominently.
60 * - $tabs: Tabs linking to any sub-pages beneath the current page (e.g., the view
61 * and edit tabs when displaying a node).
62 *
63 * - $content: The main content of the current Drupal page.
64 *
65 * - $right: The HTML for the right sidebar.
66 *
67 * Footer/closing data:
68 * - $feed_icons: A string of all feed icons for the current page.
69 * - $footer_message: The footer message as defined in the admin settings.
70 * - $footer : The footer region.
71 * - $closure: Final closing markup from any modules that have altered the page.
72 * This variable should always be output last, after all other dynamic content.
73 *
74 * @see template_preprocess()
75 * @see template_preprocess_page()
76 */
77 ?>
78
79 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
80 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
81 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $language->language ?>" lang="<?php echo $language->language ?>" dir="<?php echo $language->dir ?>">
82
83 <head>
84 <title><?php echo $head_title; ?></title>
85 <?php echo $head; ?>
86 <?php echo $styles; ?>
87 <!--[if lte IE 6]>
88 <style type="text/css" media="all">
89 @import "<?php echo $base_path . path_to_theme() ?>/css/ie6.css";
90 </style>
91 <![endif]-->
92 <!--[if IE 7]>
93 <style type="text/css" media="all">
94 @import "<?php echo $base_path . path_to_theme() ?>/css/ie7.css";
95 </style>
96 <![endif]-->
97 <?php echo $scripts; ?>
98 </head>
99
100 <body class="<?php echo $body_classes; ?>">
101 <div id="skip-nav"><a href="#content">Skip to Content</a></div>
102 <div id="page">
103 <!-- ______________________ HEADER _______________________ -->
104
105 <div id="header">
106 <div id="navigation" class="menu <?php if (!empty($primary_links)) { echo "withprimary"; } if (!empty($secondary_links)) { echo " withsecondary"; } ?> ">
107 <?php if (!empty($primary_links)): ?>
108 <div id="primary" class="clear-block">
109 <?php echo theme('links', $primary_links, array('class' => 'links primary-links')); ?>
110 </div>
111 <?php endif; ?>
112
113 <?php if (!empty($secondary_links)): ?>
114 <div id="secondary" class="clear-block">
115 <?php echo theme('links', $secondary_links, array('class' => 'links secondary-links')); ?>
116 </div>
117 <?php endif; ?>
118 </div> <!-- /navigation -->
119
120 <div id="logo-title">
121
122 <?php if (!empty($logo)): ?>
123 <a href="<?php echo $front_page; ?>" title="<?php echo t('Home'); ?>" rel="home" id="logo">
124 <img src="<?php echo $logo; ?>" alt="<?php echo t('Home'); ?>" />
125 </a>
126 <?php endif; ?>
127
128 <div id="name-and-slogan">
129 <?php if (!empty($site_name)): ?>
130 <h1 id="site-name">
131 <a href="<?php echo $front_page ?>" title="<?php echo t('Home'); ?>" rel="home"><span><?php echo $site_name; ?></span></a>
132 </h1>
133 <?php endif; ?>
134
135 <?php if (!empty($site_slogan)): ?>
136 <div id="site-slogan"><?php echo $site_slogan; ?></div>
137 <?php endif; ?>
138 </div> <!-- /name-and-slogan -->
139
140 </div> <!-- /logo-title -->
141
142
143
144
145 <?php if ($header): ?>
146 <div id="header-region">
147 <?php echo $header; ?>
148 </div>
149 <?php endif; ?>
150 </div> <!-- /header -->
151
152 <!-- ______________________ MAIN _______________________ -->
153
154 <div id="main" class="clearfix">
155 <div id="main-inner">
156
157 <div id="content" class="column">
158 <div id="content-inner">
159 <div id="content-top"><?php echo $content_top; ?></div>
160 <?php if ($breadcrumb or $title or $tabs or $help or $messages or $mission): ?>
161 <div id="content-header">
162 <?php echo $breadcrumb; ?>
163 <?php if ($title): ?>
164 <h1 class="title"><?php echo $title; ?></h1>
165 <?php endif; ?>
166
167 <?php if ($mission): ?>
168 <div id="mission"><?php echo $mission; ?></div>
169 <?php endif; ?>
170 <?php echo $messages; ?>
171 <?php if ($tabs): ?>
172 <div class="tabs"><?php echo $tabs; ?></div>
173 <?php endif; ?>
174 <?php echo $help; ?>
175 </div> <!-- /#content-header -->
176 <?php endif; ?>
177
178 <div id="content-area"> <!-- CONTENT AREA -->
179 <?php echo $content; ?>
180 </div>
181 <?php echo $feed_icons; ?>
182 <?php if ($content_bottom): ?><div id="content-bottom"><?php echo $content_bottom; ?></div><?php endif; ?>
183 </div>
184 </div> <!-- /content-inner /content -->
185
186
187 <?php if ($left): ?> <!-- SIDEBAR LEFT -->
188 <div id="sidebar-left" class="column sidebar">
189 <div id="sidebar-left-inner">
190 <?php if ($left): ?>
191 <div class="left" id="top-left"><?php echo $left; ?></div>
192 <?php endif; ?>
193 </div>
194 </div> <!-- /sidebar-left -->
195 <?php endif; ?>
196
197
198 <?php if ($right): ?> <!-- SIDEBAR RIGHT -->
199 <div id="sidebar-right" class="column sidebar">
200 <div id="sidebar-right-inner">
201 <?php if ($right): ?>
202 <div class="right" id="top-right"><?php echo $right; ?></div>
203 <?php endif; ?>
204 </div>
205 </div> <!-- /sidebar-right -->
206 <?php endif; ?>
207
208 </div> <!-- /main-inner -->
209 </div> <!-- /main -->
210
211 <!-- ______________________ FOOTER _______________________ -->
212
213 <div id="footer">
214 <?php if($footer_left or $footer_center or $footer_right): ?>
215 <div id="footer-container">
216
217 <?php if($footer_left): ?>
218 <div id="footer-left">
219 <?php echo $footer_left; ?>
220 </div><?php endif; ?>
221
222 <?php if($footer_center): ?>
223 <div id="footer-center">
224 <?php echo $footer_center; ?>
225 </div><?php endif; ?>
226
227 <?php if($footer_right): ?>
228 <div id="footer-right">
229 <?php echo $footer_right; ?>
230 </div><?php endif; ?>
231
232 </div><?php endif; ?>
233
234 <?php if($footer_message): ?>
235 <div id="footer-message">
236 <?php echo $footer_message; ?>
237 </div><?php endif; ?>
238
239 </div> <!-- /footer -->
240 <?php echo $closure; ?>
241 </div> <!-- /page -->
242 </body>
243 </html>

  ViewVC Help
Powered by ViewVC 1.1.2