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