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
/
offline.php
260 lines (244 loc) · 9.27 KB
/
offline.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
<?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;
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
// Add Stylesheets
$doc->addStyleSheet('templates/'.$this->template.'/css/template.css');
$doc->addStyleSheet('templates/'.$this->template.'/css/custom.css');
// Adjusting content width
if ($this->countModules('left-off'))
{
$span = "span6";
}
else
{
$span = "span9";
}
?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
<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');?>;
position: fixed;
}
.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
}
?>
</head>
<body class="bg">
<!-- Body -->
<div class="body">
<!-- Header -->
<div class="header">
<div class="header-inner clearfix">
<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>
</div>
<div class="container<?php echo ($params->get('fluidContainer') ? '-fluid' : '');?>">
<div class="row-fluid">
<!-- Navigation -->
<div class="navigation">
</div>
</div>
</div>
</div>
<div class="container<?php echo ($params->get('fluidContainer') ? '-fluid' : '');?>">
<div class="row-fluid">
<?php if ($this->countModules('left-off')) : ?>
<!-- Begin Left Sidebar -->
<div id="sidebar-left" class="span3">
<div class="sidebar-nav">
<jdoc:include type="modules" name="left-off" 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" />
<?php if ($app->getCfg('display_offline_message', 1) == 1 && str_replace(' ', '', $app->getCfg('offline_message')) != '') : ?>
<h1>
<?php echo $app->getCfg('offline_message'); ?>
</h1>
<?php elseif ($app->getCfg('display_offline_message', 1) == 2 && str_replace(' ', '', JText::_('JOFFLINE_MESSAGE')) != '') : ?>
<h1>
<?php echo JText::_('JOFFLINE_MESSAGE'); ?>
</h1>
<?php endif; ?>
<jdoc:include type="modules" name="banner" style="none" />
<!-- End Content -->
</div>
<!-- Begin Right Sidebar -->
<div id="sidebar-right" class="span3">
<div class="sidebar-nav">
<form action="<?php echo JRoute::_('index.php', true); ?>" method="post" id="form-login">
<fieldset class="input">
<p id="form-login-username">
<h1><label for="username"><?php echo JText::_('JGLOBAL_USERNAME') ?></label></h1>
<input name="username" id="username" type="text" class="inputbox" alt="<?php echo JText::_('JGLOBAL_USERNAME') ?>" size="18" />
</p>
<p id="form-login-password">
<h1><label for="passwd"><?php echo JText::_('JGLOBAL_PASSWORD') ?></label></h1>
<input type="password" name="password" class="inputbox" size="18" alt="<?php echo JText::_('JGLOBAL_PASSWORD') ?>" id="passwd" />
</p>
<p id="form-login-remember">
<h1><label for="remember"><?php echo JText::_('JGLOBAL_REMEMBER_ME') ?></label></h1>
<input type="checkbox" name="remember" class="inputbox" value="yes" alt="<?php echo JText::_('JGLOBAL_REMEMBER_ME') ?>" id="remember" />
</p>
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGIN') ?>" />
<input type="hidden" name="option" value="com_users" />
<input type="hidden" name="task" value="user.login" />
<input type="hidden" name="return" value="<?php echo base64_encode(JURI::base()) ?>" />
<?php echo JHtml::_('form.token'); ?>
</fieldset>
</form>
<jdoc:include type="modules" name="right-off" style="well" />
</div>
</div>
<!-- End Right Sidebar -->
</div>
</div>
<div class="clr"></div>
<div id="footer">
<div class="container<?php echo ($params->get('fluidContainer') ? '-fluid' : '');?>">
<div class="row-fluid">
<?php if ($this->countModules('off-1')) : ?>
<!-- Bottom 1 -->
<div class="bottom span4">
<jdoc:include type="modules" name="off-1" style="xhtml" />
</div>
<?php endif; ?>
<?php if ($this->countModules('off-2')) : ?>
<!-- Bottom 2 -->
<div class="bottom span4">
<jdoc:include type="modules" name="off-2" style="xhtml" />
</div>
<?php endif; ?>
<?php if ($this->countModules('off-3')) : ?>
<!-- Bottom 3 -->
<div class="bottom span4">
<jdoc:include type="modules" name="off-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>