Project

General

Profile

Download (6.03 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
// $Id: page.tpl.php,v 1.3 2009/09/14 19:25:45 troy Exp $
3

    
4
/*
5
 * select which banner image to be used in the different parts of the wp5 site
6
 *
7
 *  * cdm-platform-header_2.jpg => CDM Platform
8
 *  * cdm-header_3.jpg => CDM Setups
9
 *
10
 */
11
if(arg(0) == 'cdm-setups'){
12
	$banner_image = 'cdm-header_3.jpg';
13
} else {
14
	$banner_image = 'cdm-platform-header_2.jpg';
15
}
16

    
17

    
18
?>
19
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
20
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $language->language ?>" xml:lang="<?php echo $language->language ?>" dir="<?php echo $language->dir ?>" id="html-main">
21

    
22
<head>
23
  <title><?php echo $head_title ?></title>
24
  <?php echo $head ?>
25
  <?php echo $styles ?>
26
  <?php echo $scripts ?>
27
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
28

    
29
<!--[if lte IE 6]>
30
<link rel="stylesheet" href="<?php echo base_path() . path_to_theme() ?>/ie6-fixes.css" type="text/css">
31
<![endif]-->
32

    
33
<!--[if lte IE 7]>
34
<link rel="stylesheet" href="<?php echo base_path() . path_to_theme() ?>/ie7-fixes.css" type="text/css">
35
<![endif]-->
36

    
37

    
38

    
39
</head>
40

    
41
<body class="body-main">
42
    <div class="body-background">
43
    <div class="border-top">
44

    
45

    
46
	 <!-- balloons--><div id="circules">
47

    
48

    
49

    
50
      <!--make-it-center--><div class="make-it-center">
51

    
52

    
53

    
54

    
55
       <img class="blick" src="<?php echo base_path() . path_to_theme() ?>/images/blick.gif"  alt="" />
56

    
57
      <div class="cap"></div>
58

    
59
      <!--main-content--><div class="main-content">
60

    
61

    
62
               <div class="top clear-block">
63

    
64

    
65

    
66
            <!-- log-box-->
67

    
68
			<div class="log-box <?php if ($_GET['q'] == 'user/register') echo 'inversed'; ?>">
69

    
70

    
71

    
72
    <?php if (!$user->uid): ?>
73
				 <!-- log-box-first --><div class="log-box-first"><div class="left-side"><div class="right-side">
74
				 <?php echo l(t("Log in"), "user");?>
75
				 <!-- /log-box-first --></div></div></div>
76

    
77

    
78
				 <?php if ($registration_enabled): ?>
79
                 <!-- log-box-second --><div class="log-box-second"><div class="left-side"><div class="right-side">
80
				 <?php echo l(t("Create new account"), "user/register");?>
81
				 <!-- /log-box-second --></div></div></div>
82
				 <?php endif; ?>
83

    
84

    
85

    
86
    <?php else: ?>
87

    
88
				<!-- log-box-first --><div class="log-box-first"><div class="left-side"><div class="right-side">
89
				<?php echo t("<strong>!user</strong>", array('!user' => l($user->name, "user"))); ?>&nbsp;|&nbsp;<?php echo l(t("Edit"), "user/" . $user->uid . "/edit");?>
90
				 <!-- /log-box-first --></div></div></div>
91

    
92

    
93
				 <!-- log-box-second --><div class="log-box-second"><div class="left-side"><div class="right-side">
94
				 <?php echo l(t("Log out"), "logout"); ?>
95
				 <!-- /log-box-second --></div></div></div>
96

    
97
    <?php endif; ?>
98

    
99

    
100

    
101
            <!-- /log-box--></div>
102

    
103

    
104
<div class="rss-box">
105

    
106
	<?php if ($feed_icons): ?>
107
	<a href="<?php echo url("rss.xml"); ?>"><img src="<?php echo base_path() . path_to_theme() ?>/images/rss-bg.gif"  alt="RSS" /></a>
108
	<?php endif; ?>
109

    
110

    
111

    
112

    
113
<a class="home" href="<?php print $base_path ?>" title="<?php print t('Home') ?>"></a>
114
<?php if (module_exists('contact')): ?>
115
<a class="mail" href="<?php echo url('contact'); ?>"></a>
116
<?php endif; ?>
117
                     </div>
118

    
119
                     </div>
120

    
121

    
122

    
123
 <?php if ($top_menu): ?>
124

    
125

    
126

    
127
                 <div class="menu-background">
128
                 <div class="main-menu clear-block">
129
                 <div class="menu-side-left"><div class="menu-side-right clear-block">
130

    
131

    
132

    
133
<?php echo $top_menu; ?>
134

    
135

    
136

    
137
					</div><!--menu-side-right-->
138
					</div> <!--menu-side-left-->
139
					</div>
140
					</div>
141

    
142
<?php endif; ?>
143

    
144

    
145
                   <div class="banner" style="background-image: url(<?php echo base_path() . path_to_theme() . '/images/'. $banner_image; ?>);"><div class="banner-text"><h2><a href="<?php echo $front_page; ?>" title="<?php echo t('Home') ?>"><?php echo $site_name ?></a></h2>
146

    
147

    
148
				    <?php if ($site_slogan): ?>
149
					<p><?php echo $site_slogan; ?></p>
150
					<?php endif; ?>
151
					</div></div>
152

    
153

    
154
<?php if ($left): ?>
155

    
156

    
157
                   <!--column-left--> <div class="column-left">
158
                  <?php echo $left; ?>
159
		           <!-- /column-left--></div>
160

    
161
<?php endif; ?>
162

    
163

    
164
<!-- column-2 --><div class="column-2
165
<?php if (!$right && !$left): ?>no-right-and-left-columns
166
<?php elseif (!$left): ?>
167
no-left-column
168
<?php elseif (!$right): ?>
169
no-right-column
170
<?php endif; ?>
171
">
172

    
173

    
174
                   <div class="right-col-main clear-block">
175

    
176

    
177
                   <!--column-center--> <div class="column-center clear-block">
178
                   <div class="col-cent-border">
179

    
180

    
181

    
182

    
183
<?php if ($show_messages): ?>
184
<?php echo $messages; ?>
185
<?php endif; ?>
186

    
187
<?php echo $help ?>
188

    
189
<?php if ($content_top): ?><div id="content-top" class="clear-block"><?php echo $content_top ?></div><?php endif; ?>
190

    
191

    
192
<?php //echo $breadcrumb ?>
193

    
194
<?php if ($tabs): ?><div class="tabs"><?php echo $tabs; ?></div><?php endif; ?>
195
<?php if ($title): ?><h1 class="page-title"><?php echo $title ?></h1><?php endif; ?>
196

    
197

    
198

    
199
<?php echo $content; ?>
200

    
201

    
202

    
203
<?php if ($content_bottom): ?><div id="content-top" class="clear-block"><?php echo $content_bottom ?></div><?php endif; ?>
204

    
205

    
206
                   <!-- /col-cent-border--></div>
207
                   <!-- /column-center-->  </div>
208

    
209

    
210

    
211
<?php if ($right): ?>
212
                   <!--column-right--><div class="column-right clear-block">
213

    
214
<?php echo $right; ?>
215

    
216

    
217
                   <!-- /column-right--></div>
218

    
219
<?php endif; ?>
220

    
221

    
222

    
223
                   <!-- /column-right-main--></div>
224
                    <!-- footer -->
225
                    <div class="footer clear-block">
226

    
227

    
228
 <?php echo $footer ?>
229

    
230

    
231
<div class="clear-both">
232
  <?php echo $footer_message ?>
233
  <?php echo $closure ?>
234
</div>
235

    
236
<!-- /footer--></div>
237
         <!-- /main-content--></div>
238

    
239

    
240

    
241
      <!-- /make-it-center--> </div>
242
      <!-- /balloons--></div>      </div>
243

    
244

    
245
</div></div>
246
</body>
247
</html>
(10-10/16)