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

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

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


Revision 1.3 - (show annotations) (download) (as text)
Mon Sep 8 23:14:39 2008 UTC (14 months, 2 weeks ago) by roopletheme
Branch: MAIN
CVS Tags: DRUPAL-5--1-6, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.2: +240 -210 lines
File MIME type: text/x-php
Complete overhaul, fixed numerous bugs.
1 <?php
2 // $Id$
3 ?>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head>
7 <title><?php print $head_title ?></title>
8 <?php print $head ?>
9 <?php print $styles ?>
10 <?php print $scripts ?>
11 <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
12 <?php if (theme_get_setting('newsflash_width')) { ?>
13 <style type="text/css">
14 #page {
15 width : <?php print theme_get_setting('newsflash_fixedwidth') ?>px;
16 }
17 </style>
18 <?php }
19 else { ?>
20 <style type="text/css">
21 #page {
22 width: 95%;
23 }
24 </style>
25 <?php } ?>
26 <?php if ($left_sidebar_width = theme_get_setting('newsflash_leftsidebarwidth')) { ?>
27 <style type="text/css">
28 body.sidebar-left #main {
29 margin-left: -<?php print $left_sidebar_width ?>px;
30 }
31 body.sidebars #main {
32 margin-left: -<?php print $left_sidebar_width ?>px;
33 }
34 body.sidebar-left #squeeze {
35 margin-left: <?php print $left_sidebar_width ?>px;
36 }
37 body.sidebars #squeeze {
38 margin-left: <?php print $left_sidebar_width ?>px;
39 }
40 #sidebar-left {
41 width: <?php print $left_sidebar_width ?>px;
42 }
43 </style>
44 <?php } ?>
45 <?php if ($right_sidebar_width = theme_get_setting('newsflash_rightsidebarwidth')) { ?>
46 <style type="text/css">
47 body.sidebar-right #main {
48 margin-right: -<?php print $right_sidebar_width ?>px;
49 }
50 body.sidebars #main {
51 margin-right: -<?php print $right_sidebar_width ?>px;
52 }
53 body.sidebar-right #squeeze {
54 margin-right: <?php print $right_sidebar_width ?>px;
55 }
56 body.sidebars #squeeze {
57 margin-right: <?php print $right_sidebar_width ?>px;
58 }
59 #sidebar-right {
60 width: <?php print $right_sidebar_width ?>px;
61 }
62 </style>
63 <?php } ?>
64 <?php if (theme_get_setting('newsflash_fontfamily')) { ?>
65 <style type="text/css">
66 body {
67 font-family : <?php print theme_get_setting('newsflash_fontfamily') ?>;
68 }
69 </style>
70 <?php } ?>
71 <?php if (theme_get_setting('newsflash_fontfamily') == 'Custom') { ?>
72 <?php if (theme_get_setting('newsflash_customfont')) { ?>
73 <style type="text/css">
74 body {
75 font-family : <?php print theme_get_setting('newsflash_customfont') ?>;
76 }
77 </style>
78 <?php } ?>
79 <?php } ?>
80 <?php if (theme_get_setting('newsflash_iepngfix')) { ?>
81 <!--[if lte IE 6]>
82 <script type="text/javascript">
83 $(document).ready(function(){
84 $(document).pngFix();
85 });
86 </script>
87 <![endif]-->
88 <?php } ?>
89 <?php if (theme_get_setting('newsflash_usecustomlogosize')) { ?>
90 <style type="text/css">
91 img#logo {
92 width : <?php print theme_get_setting('newsflash_logowidth') ?>px;
93 height: <?php print theme_get_setting('newsflash_logoheight') ?>px;
94 }
95 </style>
96 <?php } ?>
97 <!--[if IE]>
98 <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/css/ie.css";</style>
99 <![endif]-->
100 <?php if ($suckerfish) { ?>
101 <?php if (theme_get_setting('newsflash_suckerfish')) { ?>
102 <!--[if lte IE 6]>
103 <script type="text/javascript" src="<?php print $GLOBALS['base_url'] ."/"; print $directory; ?>/js/suckerfish.js"></script>
104 <![endif]-->
105 <?php } ?>
106 <?php } ?>
107 <script type="text/javascript" src="<?php print $GLOBALS['base_url'] ."/"; print $directory; ?>/js/pickstyle.js"></script>
108 </head>
109 <body<?php print phptemplate_body_class($sidebar_left, $sidebar_right); ?>>
110 <div id="page">
111 <div id="header" class="clear-block">
112 <div id="logo-title">
113 <?php if ($logo): ?>
114 <?php if (theme_get_setting('newsflash_themelogo')) { ?>
115 <?php $logo_path = base_path() . path_to_theme() ."/images/". get_newsflash_style() ."/logo.png"; ?>
116 <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>"> <img src="<?php print $logo_path; ?>" alt="<?php print t('Home'); ?>" id="logo" /> </a>
117 <?php }
118 else { ?>
119 <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>"> <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" /> </a>
120 <?php } ?>
121 <?php endif; ?>
122 </div><!-- /logo-title -->
123 <div id="name-and-slogan">
124 <?php if ($site_name): ?>
125 <h1 class='site-name'> <a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>"> <?php print $site_name; ?> </a> </h1>
126 <?php endif; ?>
127 <?php if ($site_slogan): ?>
128 <div class='site-slogan'> <?php print $site_slogan; ?> </div>
129 <?php endif; ?>
130 </div><!-- /name-and-slogan -->
131 <?php if ($header): ?>
132 <div style="clear:both"></div>
133 <?php print $header; ?>
134 <?php endif; ?>
135 <?php print $search_box; ?>
136 <?php if (isset($primary_links) || isset($secondary_links)) { ?>
137 <div id="primarymenu">
138 <?php if (isset($primary_links)) : ?>
139 <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
140 <?php endif; ?>
141 <?php if (isset($secondary_links)) : ?>
142 <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
143 <?php endif; ?>
144 </div>
145 <?php } ?>
146 <?php if ($suckerfish): ?>
147 <div style="clear:both"></div>
148 <div id="suckerfishmenu" class="clear-block"> <?php print $suckerfish; ?> </div>
149 <?php endif; ?>
150 </div><!-- /header -->
151 <?php
152 $section1count = 0;
153 if ($user1) {
154 $section1count++;
155 }
156 if ($user2) {
157 $section1count++;
158 }
159 if ($user3) {
160 $section1count++;
161 }
162 ?>
163 <?php if ($section1count): ?>
164 <?php $section1width = 'width'. floor(99 / $section1count); ?>
165 <div class="clear-block clr" id="section1">
166 <div class="sections">
167 <?php if ($user1): ?>
168 <div class="section <?php echo $section1width ?>"><?php print $user1; ?></div>
169 <?php endif; ?>
170 <?php if ($user2): ?>
171 <div class="section <?php echo $section1width ?>"><?php print $user2; ?></div>
172 <?php endif; ?>
173 <?php if ($user3): ?>
174 <div class="section <?php echo $section1width ?>"><?php print $user3; ?></div>
175 <?php endif; ?>
176 </div>
177 <div style="clear:both"></div>
178 </div><!-- /section1 -->
179 <?php endif; ?>
180 <div id="middlecontainer">
181 <?php if ($sidebar_left) { ?>
182 <div id="sidebar-left"><?php print $sidebar_left ?> </div>
183 <?php } ?>
184 <div id="main">
185 <div id="squeeze">
186 <?php if (theme_get_setting('newsflash_breadcrumb')): ?>
187 <?php if ($breadcrumb): ?>
188 <div id="breadcrumb"> <?php print $breadcrumb; ?> </div>
189 <?php endif; ?>
190 <?php endif; ?>
191 <?php if ($mission) { ?>
192 <div id="mission"><?php print $mission ?></div>
193 <?php } ?>
194 <div id="squeeze-content">
195 <div id="inner-content">
196 <?php if ($content_top):?>
197 <div id="content-top"><?php print $content_top; ?></div>
198 <?php endif; ?>
199 <h1 class="title"><?php print $title ?></h1>
200 <div class="tabs"><?php print $tabs ?></div>
201 <?php print $help ?>
202 <?php print $messages; ?>
203 <?php print $content; ?>
204 <?php print $feed_icons; ?>
205 <?php if ($content_bottom): ?>
206 <div id="content-bottom"><?php print $content_bottom; ?></div>
207 <?php endif; ?>
208 </div><!-- /inner-content -->
209 </div><!-- /squeeze-content -->
210 </div><!-- /squeeze -->
211 </div><!-- /main -->
212 <?php if ($sidebar_right) { ?>
213 <div id="sidebar-right"><?php print $sidebar_right ?> </div>
214 <?php } ?>
215 </div><!-- /middle-container -->
216 <div style="clear:both"></div>
217 <?php
218 $section2count = 0;
219 if ($user4) {
220 $section2count++;
221 }
222 if ($user5) {
223 $section2count++;
224 }
225 if ($user6) {
226 $section2count++;
227 }
228 ?>
229 <?php if ($section2count): ?>
230 <?php $section2width = 'width'. floor(99 / $section2count); ?>
231 <div class="clear-block clr" id="section2">
232 <div class="sections">
233 <?php if ($user4): ?>
234 <div class="section <?php echo $section2width ?>"><?php print $user4; ?></div>
235 <?php endif; ?>
236 <?php if ($user5): ?>
237 <div class="section <?php echo $section2width ?>"><?php print $user5; ?></div>
238 <?php endif; ?>
239 <?php if ($user6): ?>
240 <div class="section <?php echo $section2width ?>"><?php print $user6; ?></div>
241 <?php endif; ?>
242 </div>
243 <div style="clear:both"></div>
244 </div><!-- /section2 -->
245 <?php endif; ?>
246 <div id="footer">
247 <?php if ($footer_region) { ?>
248 <div id="footer-region"><?php print $footer_region?></div>
249 <?php } ?>
250 <?php if ($footer_message) { ?>
251 <div id="footer-message"><?php print $footer_message ?></div>
252 <?php } ?>
253 <br />
254 <?php $logo_path = base_path() . path_to_theme() ."/images/". get_newsflash_style(); ?>
255 <a href="http://www.roopletheme.com" title="RoopleTheme!"><img src="<?php print $logo_path .'/RoopleThemeLogo.png'; ?>" alt="RoopleTheme!"/></a>
256 </div><!-- /footer -->
257 <div style="clear:both"></div>
258 <?php print $closure ?>
259 </div> <!-- /page -->
260 </body>
261 </html>

  ViewVC Help
Powered by ViewVC 1.1.2