This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex - Copy.php
312 lines (296 loc) · 10.4 KB
/
index - Copy.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
<?php
defined('_JEXEC') or die;
// Getting params from template
$params = JFactory::getApplication()->getTemplate(true)->params;
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$this->language = $doc->language;
$this->direction = $doc->direction;
// Detecting Active Variables
$option = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$layout = $app->input->getCmd('layout', '');
$task = $app->input->getCmd('task', '');
$itemid = $app->input->getCmd('Itemid', '');
$sitename = $app->getCfg('sitename');
if($task == "edit" || $layout == "form" )
{
$fullWidth = 1;
}
else
{
$fullWidth = 0;
}
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
// Add Stylesheets
$doc->addStyleSheet('templates/'.$this->template.'/css/template.css');
$doc->addStyleSheet('templates/'.$this->template.'/css/custom.css');
// Load optional rtl Bootstrap css and Bootstrap bugfixes
JHtmlBootstrap::loadCss($includeMaincss = false, $this->direction);
// Add current user information
$user = JFactory::getUser();
// Adjusting content width
if ($this->countModules('left') && $this->countModules('right'))
{
$span = "span6";
}
elseif ($this->countModules('left') && !$this->countModules('right'))
{
$span = "span9";
}
elseif (!$this->countModules('left') && $this->countModules('right'))
{
$span = "span9";
}
else
{
$span = "span12";
}
// Adjusting navigation width
if ($this->countModules('search'))
{
$nav = "span8";
}
else
{
$nav = "span12";
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<jdoc:include type="head" />
<?php
// Use of Google Font
if ($this->params->get('googleFont'))
{
?>
<link href='http://fonts.googleapis.com/css?family=<?php echo $this->params->get('googleFontName');?>' rel='stylesheet' type='text/css' />
<style type="text/css">
h1,h2,h3,h4,h5,h6,.site-title{
font-family: '<?php echo str_replace('+', ' ', $this->params->get('googleFontName'));?>', sans-serif;
}
</style>
<?php
}
?>
<script src="templates/<?php echo $this->template; ?>/js/cufon-yui.js" type="text/javascript"></script>
<script src="templates/<?php echo $this->template; ?>/js/Scouts_500.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1,h2');
//If you also include a library, you can add complex selectors like #content h1
</script>
<?php
// Template color
if ($this->params->get('templateColor'))
{
?>
<style type="text/css">
body.bg
{
background-color: <?php echo $this->params->get('templateBackgroundColor');?>
}
.header
{
background: <?php echo $this->params->get('templateColor');?>;
border-bottom: 10px solid <?php echo $this->params->get('templateSecondColor');?>;
}
.header h1
{
color: <?php echo $this->params->get('templateHeaderFontColor');?>;
}
#footer
{
background: <?php echo $this->params->get('templateColor');?>;
border-top: 10px solid <?php echo $this->params->get('templateSecondColor');?>;
}
.menutop li.active > .item
{
background: <?php echo $this->params->get('templateSecondColor');?>;
border: <?php echo $this->params->get('templateSecondColor');?>;
}
.nav > li > a:hover
{
background: <?php echo $this->params->get('templateSecondColor');?>;
}
.nav-tabs > li > a:hover
{
border-color: <?php echo $this->params->get('templateSecondColor');?>;
color: #000000;
}
.nav-tabs > .active > a
{
background: <?php echo $this->params->get('templateSecondColor');?>;
border: 1px solid <?php echo $this->params->get('templateSecondColor');?>;
}
.nav-tabs > .active > a:hover
{
background: <?php echo $this->params->get('templateColor');?>;
border: 1px solid <?php echo $this->params->get('templateSecondColor');?>;
color: #FFFFFF;
}
.search
{
background: <?php echo $this->params->get('templateSecondColor');?>;
border: <?php echo $this->params->get('templateSecondColor');?>;
}
/* input#mod-search-searchword.inputbox.search-query
{
border: 2px solid <?php echo $this->params->get('templateColor');?>;
background: <?php echo $this->params->get('templateColor');?>;
}
*/ .breadcrumb
{
background: <?php echo $this->params->get('templateSecondColor');?>;
/**height: 40px;
margin-top: 30px;
-webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.25);**/
}
.bottom h3
{
/*color: <?php echo $this->params->get('templateSecondColor');?>;*/
color: <?php echo $this->params->get('templateColor');?>;
}
.bottom
{
border: solid 5px <?php echo $this->params->get('templateSecondColor');?>;
background: <?php echo $this->params->get('templateBackgroundColor');?>;
}
a
{
color: <?php echo $this->params->get('templateColor');?>;
}
.navbar-inner, .nav-list > .active > a, .nav-list > .active > a:hover, .dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover, .nav-pills > .active > a, .nav-pills > .active > a:hover,
.btn-primary
{
background: <?php echo $this->params->get('templateColor');?>;
}
.navbar-inner
{
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 30px 10px rgba(0, 0, 0, .2);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 30px 10px rgba(0, 0, 0, .2);
box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 30px 10px rgba(0, 0, 0, .2);
}
</style>
<?php
}
?>
<!--[if lt IE 9]>
<script src="<?php echo $this->baseurl ?>/media/jui/js/html5.js"></script>
<![endif]-->
</head>
<body class="bg">
<!-- Body -->
<div class="body">
<!-- Header -->
<div class="header">
<div class="header-inner clearfix">
<?php if ($this->countModules('status')) : ?>
<div class="inverted navigation pull-right">
<jdoc:include type="modules" name="status" style="none" />
</div>
<?php endif; ?>
<a class="brand pull-left" href="<?php echo $this->baseurl; ?>">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/logo/<?php echo $this->params->get('logoOption');?>.png" alt="logo" class="logo" />
</a>
<a class="brand pull-left" href="<?php echo $this->baseurl; ?>">
<h1><?php $app = JFactory::getApplication(); echo $app->getCfg ('sitename'); ?></h1>
</a>
<?php if ($this->params->get('2ndlogo')) : ?>
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/logo/<?php echo $this->params->get('rightlogo');?>.png" alt="logo" class="logo" />
<?php endif; ?>
</div>
<?php if ($this->countModules('navbar or search')) : ?>
<div class="container<?php echo ($params->get('fluidContainer') ? '-fluid' : '');?>">
<div class="row-fluid">
<?php if ($this->countModules('navbar')) : ?>
<!-- Navigation -->
<div class="navigation <?php echo $nav;?>">
<jdoc:include type="modules" name="navbar" style="none" />
</div>
<?php endif; ?>
<?php if ($this->countModules('search')) : ?>
<!-- Search Box -->
<div class="header-search span3">
<jdoc:include type="modules" name="search" style="none" />
</div>
<div class="span1"></div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</div>
<div class="container<?php echo ($params->get('fluidContainer') ? '-fluid' : '');?>">
<div class="row-fluid">
<?php if ($this->countModules('left')) : ?>
<!-- Begin Left Sidebar -->
<div id="sidebar-left" class="span3">
<div class="sidebar-nav">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
</div>
<!-- End Left Sidebar -->
<?php endif; ?>
<div id="content" class="<?php echo $span;?>">
<!-- Begin Content -->
<jdoc:include type="modules" name=",message" style="xhtml" />
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="banner" style="none" />
<!-- End Content -->
</div>
<?php if ($this->countModules('right')) : ?>
<!-- Begin Right Sidebar -->
<div id="sidebar-right" class="span3">
<div class="sidebar-nav">
<jdoc:include type="modules" name="right" style="well" />
</div>
</div>
<!-- End Right Sidebar -->
<?php endif; ?>
</div>
</div>
<div class="clr"></div>
<div id="footer">
<?php if ($this->countModules('breadcrumbs')) : ?>
<!-- Breadcrumbs -->
<div class="container<?php echo ($params->get('fluidContainer') ? '-fluid' : '');?>">
<jdoc:include type="modules" name="breadcrumbs" style="none" />
</div>
<?php endif; ?>
<div class="container<?php echo ($params->get('fluidContainer') ? '-fluid' : '');?>">
<div class="row-fluid">
<?php if ($this->countModules('bottom-1')) : ?>
<!-- Bottom 1 -->
<div class="bottom span4">
<jdoc:include type="modules" name="bottom-1" style="xhtml" />
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom-2')) : ?>
<!-- Bottom 2 -->
<div class="bottom span4">
<jdoc:include type="modules" name="bottom-2" style="xhtml" />
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom-3')) : ?>
<!-- Bottom 3 -->
<div class="bottom span4">
<jdoc:include type="modules" name="bottom-3" style="xhtml" />
</div>
<?php endif; ?>
</div>
<div class="row-fluid">
<div class="copyright span12">
<jdoc:include type="modules" name="footer" /><br />
<a href="http://www.joomla.org" target="_blank">Joomla!</a> is Free Software released under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU/GPL License</a>. - Joomla! <?php echo JText::_('Version') ?> <?php echo JVERSION; ?><br /><br />
</div>
</div>
</div>
<div style="clear:both"></div>
</div>
<jdoc:include type="modules" name="debug" style="none" />
</div>
</body>
</html>