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

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

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


Revision 1.6 - (show annotations) (download) (as text)
Thu Nov 29 18:02:32 2007 UTC (23 months, 3 weeks ago) by zarabadoo
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--2
Changes since 1.5: +2 -2 lines
File MIME type: text/x-php
Make comments on nodes hAtom microformat compatible and five the username hCard format to work better.
1 <?php
2 // $Id: page.tpl.php,v 1.5 2007/11/29 00:36:03 zarabadoo Exp $
3
4 /**
5 This template is intended to be a starting point for almost any sort of XTHML template. The aim is to allow for complete customization with just CSS. This is pretty much impossible due to people wanting certain things in different places, but it should be laid out simply enough so that is easy to move elements. This includes layout and the overall style of the page. I will try to document it as much as possible so that it will be easy to read.
6 */
7
8 /**
9 The DOCTYPE is very important. It is what tells the browser how to read and render a page. This one specifically is aimed at being XTHML 1.1 Strict. This means that the XHTML standard must be followed.
10 */ ?>
11 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
12 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language ?>">
13 <?php echo "<!-- START " . basename('page.tpl') . " -->"; ?>
14
15 <head>
16
17 <?php
18 /**
19 The meta tags don'[t have as much clout with search engines anymore, but they are still important. Definitely put as much information as possible and relevant to your your page's content in them.
20 */ ?>
21
22 <?php print $head; ?>
23
24 <?php
25 /**
26 The page title that appears in the browser bar. Pretty elementary, but I figured I would put a not in here about it for the beginners.
27 */
28 ?>
29 <title><?php print $head_title; ?></title>
30
31 <?php
32 /**
33 There are multiple stylesheets here. You will notice that there are 3 media types. These are good to have for the various forms of viewing and proper display on differnet media.
34
35 screen - This is the style for your basic computer monitor.
36 print - This will be used if a viewer wants to print a page. Very handy for doing printer friendly pages.
37 handheld - This is for those new-fangled cellphones and PDAs. Not all units support it as of yet, but it is becoming more prevalent.
38 */
39 ?>
40 <?php print hunchbaque_styles(); ?>
41
42 <?php
43 /**
44 I like to put the JavaScript last since it can have a lot of code that needs to be editted.
45 */
46 ?>
47 <?php print $scripts; ?>
48
49 </head>
50
51 <body class="<?php print $body_classes; ?>">
52 <div id="page" class="clear-block">
53
54 <div id="header">
55 <?php if ($site_name): ?>
56 <h1 id="site-name"><a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>" rel="self"><?php print $site_name; ?></a></h1>
57 <?php endif; ?>
58 <?php if ($site_slogan): ?>
59 <span id="site-tagline"><?php print $site_slogan; ?></span>
60 <?php endif; ?>
61
62 </div> <!-- /#header -->
63
64 <?php if ($primary_links): ?>
65 <div id="main_menu">
66 <?php print theme('links', $primary_links); ?>
67
68 </div> <!-- /#main_menu -->
69
70 <?php endif; ?>
71 <?php if ($header || $breadcrumb): ?>
72 <div id="breadcrumb">
73 <?php if ($breadcrumb): ?>
74 <?php print $breadcrumb; ?>
75
76 <?php endif; ?>
77 <?php if ($header): ?>
78 <?php print $header; ?>
79
80 <?php endif; ?>
81
82 </div> <!-- /#breadcrumb -->
83
84 <?php endif; ?>
85 <div id="wrapper" class="clear-block">
86
87 <div id="subwrapper">
88
89 <div id="container">
90
91 <div id="content">
92
93 <?php if ($help): ?>
94 <?php print $help; ?>
95
96 <?php endif; ?>
97 <?php if ($messages): ?>
98 <?php print $messages; ?>
99
100 <?php endif; ?>
101 <?php if ($mission): ?>
102 <div id="mission">
103 <?php print $mission; ?>
104
105 </div>
106
107 <?php endif; ?>
108 <?php if ($content_top):?>
109 <div id="content-top">
110 <?php print $content_top; ?>
111
112 </div>
113
114 <?php endif; ?>
115 <?php if ($tabs): ?>
116 <div class="tabs">
117 <?php print $tabs; ?>
118 </div>
119
120 <?php endif; ?>
121 <?php if ($title): ?>
122 <h1 class="title" id="page-title"><?php print $title; ?></h1>
123
124 <?php endif; ?>
125 <?php if ($content): ?>
126 <?php if (arg(0) == 'node' && !$node): ?>
127 <div class="hfeed">
128 <?php endif; ?>
129 <?php print $content; ?>
130 <?php if (arg(0) == 'node' && !$node): ?>
131 </div>
132 <?php endif; ?>
133
134 <?php endif; ?>
135 </div>
136
137 </div> <!-- /#container -->
138
139 <?php if ($main_supplements): ?>
140 <div id="main_supplements">
141 <?php print $main_supplements; ?>
142 </div> <!-- /#main_supplements -->
143
144 <?php endif; ?>
145 </div><!-- /#subwrapper -->
146
147 <?php if ($secondary_supplements): ?>
148 <div id="secondary_supplements">
149
150 <?php print $secondary_supplements; ?>
151 </div> <!-- /#secondary_supplements -->
152
153 <?php endif; ?>
154 </div> <!-- /#wrapper -->
155
156 <?php if ($secondary_links): ?>
157 <div id="secondary_menu">
158 <?php print theme('links', $secondary_links); ?>
159
160 </div> <!-- /#secondary_menu -->
161
162 <?php endif; ?>
163 <?php if ($footer || $footer_message): ?>
164 <div id="footer">
165 <?php if ($footer): ?>
166 <?php print $footer; ?>
167
168 <?php endif; ?>
169 <?php if ($footer_message): ?>
170 <?php print $footer_message; ?>
171
172 <?php endif; ?>
173 </div> <!-- /#footer -->
174
175 <?php endif; ?>
176 <?php if ($closure): ?>
177 <?php print $closure; ?>
178
179 <?php endif; ?>
180 </div> <!-- /#page -->
181 </body>
182 <?php echo "<!-- END " . basename('page.tpl') . " -->"; ?>
183
184 </html>

  ViewVC Help
Powered by ViewVC 1.1.2