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

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

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


Revision 1.2 - (show annotations) (download) (as text)
Tue Jul 22 19:15:17 2008 UTC (16 months, 1 week ago) by couzinhub
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-7--1
Changes since 1.1: +188 -116 lines
File MIME type: text/x-php
commiting D7 code
1 <?php
2 // $Id$
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
104 <!-- ______________________ HEADER _______________________ -->
105
106 <div id="header">
107 <div id="logo-title">
108
109 <?php if (!empty($logo)): ?>
110 <a href="<?php echo $front_page; ?>" title="<?php echo t('Home'); ?>" rel="home" id="logo">
111 <img src="<?php echo $logo; ?>" alt="<?php echo t('Home'); ?>" />
112 </a>
113 <?php endif; ?>
114
115 <div id="name-and-slogan">
116 <?php if (!empty($site_name)): ?>
117 <h1 id="site-name">
118 <a href="<?php echo $front_page ?>" title="<?php echo t('Home'); ?>" rel="home"><span><?php echo $site_name; ?></span></a>
119 </h1>
120 <?php endif; ?>
121
122 <?php if (!empty($site_slogan)): ?>
123 <div id="site-slogan"><?php echo $site_slogan; ?></div>
124 <?php endif; ?>
125 </div> <!-- /name-and-slogan -->
126
127 </div> <!-- /logo-title -->
128
129
130 <div id="navigation" class="menu <?php if (!empty($primary_links)) { echo "withprimary"; } if (!empty($secondary_links)) { echo " withsecondary"; } ?> ">
131 <?php if (isset($main_menu)): ?>
132 <div id="primary" class="clear-block">
133 <?php print theme('links', $main_menu, array('class' => 'links', 'id' => 'navlist')) ?>
134 </div>
135 <?php endif; ?>
136
137 <?php if (isset($secondary_menu)): ?>
138 <div id="secondary" class="clear-block">
139 <?php print theme('links', $secondary_menu, array('class' => 'links', 'id' => 'subnavlist')); ?>
140 </div>
141 <?php endif; ?>
142 </div> <!-- /navigation -->
143
144 <?php if ($header): ?>
145 <div id="header-region">
146 <?php echo $header; ?>
147 </div>
148 <?php endif; ?>
149 </div> <!-- /header -->
150
151 <!-- ______________________ MAIN _______________________ -->
152
153 <div id="main" class="clearfix">
154 <div id="main-inner">
155
156 <div id="content" class="column">
157 <div id="content-inner">
158
159 <?php if ($breadcrumb or $title or $tabs or $help or $messages or $mission): ?>
160 <div id="content-header">
161 <?php echo $breadcrumb; ?>
162 <?php if ($title): ?>
163 <h1 class="title"><?php echo $title; ?></h1>
164 <?php endif; ?>
165 <?php if ($mission): ?>
166 <div id="mission"><?php echo $mission; ?></div>
167 <?php endif; ?>
168 <?php echo $messages; ?>
169 <?php if ($tabs): ?>
170 <div class="tabs"><?php echo $tabs; ?></div>
171 <?php endif; ?>
172 <?php echo $help; ?>
173 </div> <!-- /#content-header -->
174 <?php endif; ?>
175
176 <div id="content-area"> <!-- CONTENT AREA -->
177 <?php echo $content; ?>
178 </div>
179 <?php echo $feed_icons; ?>
180
181 </div>
182 </div> <!-- /content-inner /content -->
183
184
185 <?php if ($left): ?> <!-- SIDEBAR LEFT -->
186 <div id="sidebar-left" class="column sidebar">
187 <div id="sidebar-left-inner">
188 <?php if ($left): ?>
189 <div class="left" id="top-left"><?php echo $left; ?></div>
190 <?php endif; ?>
191 </div>
192 </div> <!-- /sidebar-left -->
193 <?php endif; ?>
194
195
196 <?php if ($right): ?> <!-- SIDEBAR RIGHT -->
197 <div id="sidebar-right" class="column sidebar">
198 <div id="sidebar-right-inner">
199 <?php if ($right): ?>
200 <div class="right" id="top-right"><?php echo $right; ?></div>
201 <?php endif; ?>
202 </div>
203 </div> <!-- /sidebar-right -->
204 <?php endif; ?>
205
206 </div> <!-- /main-inner -->
207 </div> <!-- /main -->
208
209 <!-- ______________________ FOOTER _______________________ -->
210
211 <div id="footer">
212 <?php echo $footer_message; ?>
213 <?php echo $footer; ?>
214 </div> <!-- /footer -->
215 <?php echo $closure; ?>
216 </div> <!-- /page -->
217
218 </body>
219 </html>

  ViewVC Help
Powered by ViewVC 1.1.2