-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·317 lines (301 loc) · 12.4 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<?php
defined( '_VALID_MOS' )
or die( 'Direct Access to this location is not allowed.' );
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_styleswitcher.php");
$iso = split( '=', _ISO );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
if ( $my->id ) {
initEditor();
}
mosShowHead();
// ***************************************************
// Change this variable blow to configure the template
//
// If you have any issues, check out the forum at
// http://www.rockettheme.com
//
// ***************************************************
$menu_type = "suckerfish"; // suckerfish | module
$menu_name = "mainmenu"; // mainmenu by default, can be any Joomla menu name
$default_width = "wide"; // wide | thin | fluid
$default_font = "default"; // smaller | default | larger
$default_color = "blue"; // red | blue | green | orange
$default_contrast = "light"; // light | med | dark
$show_access = "true"; // true | false
$show_menu = "true"; // true | false
if(vgfGet("show_menu",true)==false) {
$show_menu = false;
}
$show_pathway = "false"; // true | false
// *************************************************
if ($menu_type != "module") {
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_suckerfish.php");
}
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_styleloader.php");
// *************************************************
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $mosConfig_live_site;?>/index.php?option=com_rss&feed=RSS2.0&no_html=1" />
<?php
// KFD 3/14/08, switch these to using cssInclude();
cssInclude('templates/'.$mainframe->getTemplate().'/css/template_css.css');
cssInclude('templates/'.$mainframe->getTemplate().'/css/'.$contraststyle.'.css',true);
cssInclude('templates/'.$mainframe->getTemplate().'/css/'.$colorstyle.'.css');
cssInclude('templates/'.$mainframe->getTemplate().'/css/suckerfish.css');
/*
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/<?php echo $contraststyle; ?>.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/<?php echo $colorstyle; ?>.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/suckerfish.css" rel="stylesheet" type="text/css" />
*/
?>
<!--[if lte IE 6]>
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/favicon.ico" />
<!-- ================= -->
<!-- Andromeda Changes -->
<!-- ================= -->
<?php
cssInclude('templates/'.$mainframe->getTemplate().'/css/x2-'.$colorstyle.'.css');
cssInclude('templates/'.$mainframe->getTemplate().'/css/x2-'.$contraststyle.'.css');
include("androHTMLHead.php");
cssInclude('templates/'.$mainframe->getTemplate().'/css/x4.css');
cssInclude('templates/'.$mainframe->getTemplate().'/css/x4-'.$colorstyle.'.css');
/*
?>
<link href="<?php echo $mosConfig_live_site.'/templates/'.$mainframe->getTemplate().'/css/x2-'.$colorstyle.'.css'?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $mosConfig_live_site.'/templates/'.$mainframe->getTemplate().'/css/x2-'.$contraststyle.'.css'?>" rel="stylesheet" type="text/css" />
<?php */ ?>
<!-- ======================= -->
<!-- Andromeda Changes (END) -->
<!-- ======================= -->
<!-- Andromeda Changes (END) -->
</head>
<body class="<?php echo $colorstyle; ?> <?php echo $widthstyle; ?> <?php echo $fontstyle; ?>"
onkeypress="bodyKeyPress(event)">
<div class="wrapper">
<div id="outer-border" >
<?php /* ANDROMEDA CHANGE: MAKE TOP-HEAD AN OPTIONAL MODULE */ ?>
<?php if(mosCountModules('top-head',-1)) { ?>
<div id="top-head">
<a href="<?php echo $mosConfig_live_site;?>" title=""><span id="logo" style="font-size:40px;"> </span></a>
<!-- <div id="color-insert"></div> -->
<div id="access-bar">
<?php if($show_access=="true") { ?>
<div id="access">
<div id="buttons">
<a href="<?php echo $thisurl; ?>widthstyle=w-fluid" title="Fluid width" class="fluid"><span class="button"> </span></a>
<a href="<?php echo $thisurl; ?>widthstyle=w-wide" title="Wide width" class="wide"><span class="button"> </span></a>
<a href="<?php echo $thisurl; ?>widthstyle=w-thin" title="Narrow width" class="thin"><span class="button"> </span></a>
<span class="spacer"> </span>
<a href="<?php echo $thisurl; ?>fontstyle=f-larger" title="Increase size" class="large"><span class="button"> </span></a>
<a href="<?php echo $thisurl; ?>fontstyle=f-default" title="Default size" class="default"><span class="button"> </span></a>
<a href="<?php echo $thisurl; ?>fontstyle=f-smaller" title="Decrease size" class="small"><span class="button"> </span></a>
<span class="spacer"> </span>
<a href="<?php echo $thisurl; ?>colorstyle=orange" title="Orange color" class="orange"><span class="button"> </span></a>
<a href="<?php echo $thisurl; ?>colorstyle=green" title="Green color" class="green"><span class="button"> </span></a>
<a href="<?php echo $thisurl; ?>colorstyle=blue" title="Blue color" class="blue"><span class="button"> </span></a>
<a href="<?php echo $thisurl; ?>colorstyle=red" title="Red color" class="red"><span class="button"> </span></a>
<span class="spacer"> </span>
<a href="<?php echo $thisurl; ?>contraststyle=co-dark" title="Dark contrast" class="dark"><span class="button"> </span></a>
<a href="<?php echo $thisurl; ?>contraststyle=co-med" title="Medium contrast" class="med"><span class="button"> </span></a>
<a href="<?php echo $thisurl; ?>contraststyle=co-light" title="Light contrast" class="light"><span class="button"> </span></a>
</div>
</div>
<?php } ?>
</div>
<div id="top-mod">
<?php mosLoadModules('top', -1); ?>
</div>
</div>
<?php } /* mosloadmodules('top-head') */ ?>
<?php if($show_menu<>"true") { ?>
<div id="horiz-menu">
<div id="nav">
<span style="float: right">
<a href="?st2logout=1">Logout</a>
</span>
</div>
</div>
<?php } else { ?>
<div id="horiz-menu">
<div id="nav">
<script type="text/javascript">
<!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]>
</script>
<?php if ($menu_type == "module") mosLoadModules('toolbar'); ?>
<?php if ($menu_type == "suckerfish") mosShowListMenu($menu_name); ?>
</div> <!-- nav -->
<?php if(mosCountModules('menuright')) { ?>
<div id="nav" style="float:right">
<?php echo mosLoadModules('menuright') ?>
</div>
<?php } ?>
</div>
<div class="clr"></div>
<?php /* Andromeda change, add a line of links */ ?>
<?php if (mosCountModules('quicklinks')) { ?>
<div id="quicklinks">
<?php echo mosLoadModules('quicklinks') ?>
</div>
<?php } ?>
<?php /* Andromeda change, add a spot for commands */ ?>
<?php if (mosCountModules('commands')) { ?>
<div id="quicklinks">
<?php echo mosLoadModules('commands') ?>
</div>
<?php } ?>
<?php } ?>
<table class="outer" cellspacing="0">
<tr valign="top">
<?php if (mosCountModules('left')) { ?>
<td class="left">
<div class="sidepad">
<?php mosLoadModules('left', -2); ?>
</div>
</td>
<?php } ?>
<td class="middle">
<?php if ($show_pathway == "true") { ?>
<div class="path-padding">
<?php mosPathway(); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user1') || mosCountModules('user2') || mosCountModules('user3')) { ?>
<div class="smallpad">
<table class="nopad" cellspacing="0">
<tr valign="top">
<?php if (mosCountModules('user1')) { ?>
<td>
<?php mosLoadModules('user1', -2); ?>
</td>
<?php } ?>
<?php if (mosCountModules('user2')) { ?>
<td>
<?php mosLoadModules('user2', -2); ?>
</td>
<?php } ?>
<?php if (mosCountModules('user3')) { ?>
<td>
<?php mosLoadModules('user3', -2); ?>
</td>
<?php } ?>
</tr>
</table>
</div>
<?php } ?>
<?php if (mosCountModules('user4') || mosCountModules('user5') || mosCountModules('user6')) { ?>
<div class="midbox">
<table class="nopad" cellspacing="0">
<tr valign="top">
<?php if (mosCountModules('user4')) { ?>
<td>
<?php mosLoadModules('user4', -2); ?>
</td>
<?php } ?>
<?php if (mosCountModules('user5')) { ?>
<td>
<?php mosLoadModules('user5', -2); ?>
</td>
<?php } ?>
<?php if (mosCountModules('user6')) { ?>
<td>
<?php mosLoadModules('user6', -2); ?>
</td>
<?php } ?>
</tr>
</table>
</div>
<?php } ?>
<div class="padding" id="andromeda_main_content">
<?php mosMainbody(); ?>
</div>
<?php if (mosCountModules('user7') || mosCountModules('user8') || mosCountModules('user9')) { ?>
<div class="botbox">
<table class="nopad" cellspacing="0">
<tr valign="top">
<?php if (mosCountModules('user7')) { ?>
<td>
<?php mosLoadModules('user7', -2); ?>
</td>
<?php } ?>
<?php if (mosCountModules('user8')) { ?>
<td>
<?php mosLoadModules('user8', -2); ?>
</td>
<?php } ?>
<?php if (mosCountModules('user9')) { ?>
<td>
<?php mosLoadModules('user9', -2); ?>
</td>
<?php } ?>
</tr>
</table>
</div>
<?php } ?>
</td>
<?php if (mosCountModules('right')) { ?>
<td class="right">
<div class="sidepad">
<?php mosLoadModules('right', -2); ?>
</div>
</td>
<?php } ?>
</tr>
</table>
<?php if(! (vgfGet('x4')===true && LoggedIn())) {?>
<div id="bot-footer">
<?php mosLoadModules('footer', -1); ?>
</div>
<?php } ?>
</div>
<?php if(!gpExists('x4Page')) { ?>
<div id="bot-rocket">
<a href="http://www.rockettheme.com"><span class="rocket"> </span></a>
</div>
<?php } ?>
</div>
<div id="jqmModal" class="jqmWindow">
<table border="0"
cellspacing="0" cellpadding="0"
style="width:100%:height:100%;"
id="jqmModalWindow">
<tr class="jqmHeader">
<td id="jqmTitle" ></td>
</tr>
<tr>
<td colspan="2" class="jqmBody" id="jqmMessage">
</td>
</tr>
</table>
</div>
<?php mosLoadModules( 'debug', -1 );?>
<!-- ================= -->
<!-- Andromeda Changes -->
<!-- ================= -->
<?php
include('androHTMLFoot.php');
?>
<!-- ======================= -->
<!-- Andromeda Changes (END) -->
<!-- ======================= -->
</body>
</html>