-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
251 lines (227 loc) · 9.98 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
<?php defined('_JEXEC') or die;
// Load template framework
include_once JPATH_THEMES . '/' . $this->template . '/framework.php';
?>
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<jdoc:include type="head" />
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />
<!-- Included CSS Files -->
<?php if ($customCSS > "0") : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $customCSS ?>">
<?php endif; ?>
<?php if ($setWidth) : ?>
<style>
.row {
width: <?php echo $setWidth ?>px;
}
</style>
<?php endif; ?>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?php echo $analytics ?>']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<!--Logo / Nav Row -->
<div class="row">
<div class="three columns">
<?php if ($logoUp > 0) { ?>
<a href="<?php echo $this->baseurl ?>" alt="<?php echo $sitename ?>" title="<?php echo $sitename ?>">
<img src="<?php echo $custLogo ?>" alt="<?php echo $sitename ?>" title="<?php echo $sitename ?>" />
</a>
<?php } else { ?>
<jdoc:include type="modules" name="logo" style="html5" />
<?php }; ?>
</div>
<?php if ($menu > 0) : ?>
<nav class="nine columns">
<jdoc:include type="modules" name="menu" style="html5" />
</nav>
<?php endif; ?>
</div>
<!--Orbit Row -->
<div class="row">
<?php if ($orbit > 0) : ?>
<div class="twelve columns" id="orbit">
<jdoc:include type="modules" name="orbit" style="raw" />
</div>
<?php endif; ?>
</div>
<!--Slideshow Row -->
<div class="row">
<?php if ($slideshow > 0) : ?>
<div class="twelve columns">
<jdoc:include type="modules" name="slideshow" style="html5" />
</div>
<?php endif; ?>
</div>
<!--Top Row -->
<div class="row">
<?php if ($top1 > 0) : ?>
<div class="<?php echo $topWidth ?>">
<jdoc:include type="modules" name="top1" style="html5" />
</div>
<?php endif; ?>
<?php if ($top2 > 0) : ?>
<div class="<?php echo $topWidth ?>">
<jdoc:include type="modules" name="top2" style="html5" />
</div>
<?php endif; ?>
<?php if ($top3 > 0) : ?>
<div class="<?php echo $topWidth ?> last">
<jdoc:include type="modules" name="top3" style="html5" />
</div>
<?php endif; ?>
</div>
<!--MAIN Row -->
<div class="row">
<?php if ($left > 0) : ?>
<div class="<?php echo htmlspecialchars($leftWidth); ?> ">
<jdoc:include type="modules" name="left" style="html5" />
</div>
<?php endif; ?>
<div class="<?php echo htmlspecialchars($mainWidth); ?>">
<?php if ($above1 > 0) : ?>
<div class="<?php echo $aboveWidth ?>">
<jdoc:include type="modules" name="above1" style="html5" />
</div>
<?php endif; ?>
<?php if ($above2 > 0) : ?>
<div class="<?php echo $aboveWidth ?>">
<jdoc:include type="modules" name="above2" style="html5" />
</div>
<?php endif; ?>
<?php if ($above3 > 0) : ?>
<div class="<?php echo $aboveWidth ?> last">
<jdoc:include type="modules" name="above3" style="html5" />
</div>
<?php endif; ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
<?php if ($below1 > 0) : ?>
<div class="<?php echo $belowWidth ?>">
<jdoc:include type="modules" name="below1" style="html5" />
</div>
<?php endif; ?>
<?php if ($below2 > 0) : ?>
<div class="<?php echo $belowWidth ?>">
<jdoc:include type="modules" name="below2" style="html5" />
</div>
<?php endif; ?>
<?php if ($below3 > 0) : ?>
<div class="<?php echo $belowWidth ?> last">
<jdoc:include type="modules" name="below3" style="html5" />
</div>
<?php endif; ?>
</div>
<?php if ($right > 0) : ?>
<div class="<?php echo htmlspecialchars($rightWidth); ?> ">
<jdoc:include type="modules" name="right" style="html5" />
</div>
<?php endif; ?>
</div>
<!--Bottom Row -->
<div class="row">
<?php if ($bottom1 > 0) : ?>
<div class="<?php echo $bottomWidth ?>">
<jdoc:include type="modules" name="bottom1" style="html5" />
</div>
<?php endif; ?>
<?php if ($bottom2 > 0) : ?>
<div class="<?php echo $bottomWidth ?>">
<jdoc:include type="modules" name="bottom2" style="html5" />
</div>
<?php endif; ?>
<?php if ($bottom3 > 0) : ?>
<div class="<?php echo $bottomWidth ?> last">
<jdoc:include type="modules" name="bottom3" style="html5" />
</div>
<?php endif; ?>
</div>
<!--FooterTop Row -->
<div class="row">
<?php if ($footerTop1 > 0) : ?>
<div class="<?php echo $footerTopWidth ?>">
<jdoc:include type="modules" name="footerTop1" style="html5" />
</div>
<?php endif; ?>
<?php if ($footerTop2 > 0) : ?>
<div class="<?php echo $footerTopWidth ?>">
<jdoc:include type="modules" name="footerTop2" style="html5" />
</div>
<?php endif; ?>
<?php if ($footerTop3 > 0) : ?>
<div class="<?php echo $footerTopWidth ?> last">
<jdoc:include type="modules" name="footerTop3" style="html5" />
</div>
<?php endif; ?>
<?php if ($footerTop4 > 0) : ?>
<div class="<?php echo $footerTopWidth ?> last">
<jdoc:include type="modules" name="footerTop4" style="html5" />
</div>
<?php endif; ?>
</div>
<!--Footer Row -->
<div class="row">
<?php if ($footer1 > 0) : ?>
<div class="<?php echo $footerWidth ?>">
<jdoc:include type="modules" name="footer1" style="html5" />
</div>
<?php endif; ?>
<?php if ($footer2 > 0) : ?>
<div class="<?php echo $footerWidth ?>">
<jdoc:include type="modules" name="footer2" style="html5" />
</div>
<?php endif; ?>
<?php if ($footer3 > 0) : ?>
<div class="<?php echo $footerWidth ?> last">
<jdoc:include type="modules" name="footer3" style="html5" />
</div>
<?php endif; ?>
</div>
<!-- Initialize JS Plugins -->
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/app.js"></script>
<?php if ($orbit > 0) : ?>
<script type="text/javascript">
$(window).load(function() {
$('#orbit').orbit({
animation: 'fade', // fade, horizontal-slide, vertical-slide, horizontal-push
animationSpeed: 800, // how fast animtions are
timer: true, // true or false to have the timer
resetTimerOnClick: false, // true resets the timer instead of pausing slideshow progress
advanceSpeed: 4000, // if timer is enabled, time between transitions
pauseOnHover: false, // if you hover pauses the slider
startClockOnMouseOut: false, // if clock should start on MouseOut
startClockOnMouseOutAfter: 1000, // how long after MouseOut should the timer start again
directionalNav: true, // manual advancing directional navs
captions: true, // do you want captions?
captionAnimation: 'fade', // fade, slideOpen, none
captionAnimationSpeed: 800, // if so how quickly should they animate in
bullets: false, // true or false to activate the bullet navigation
bulletThumbs: false, // thumbnails for the bullets
bulletThumbLocation: '', // location from this file where thumbs will be
afterSlideChange: function(){}, // empty function
fluid: true // or set a aspect ratio for content slides (ex: '4x3')
});
</script>
<?php endif; ?>
</body>
</html>