forked from gsuez/master-bootstrap-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
221 lines (221 loc) · 5.87 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
<?php
/*------------------------------------------------------------------------
# author Gonzalo Suez
# copyright Copyright © 2013 gsuez.cl. All rights reserved.
# @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website http://www.gsuez.cl
-------------------------------------------------------------------------*/ // no direct access
defined('_JEXEC') or die;
include 'includes/params.php';
if ($params->get('compile_sass', '0') === '1')
{
require_once "includes/sass.php";
}
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>">
<?php
include 'includes/head.php'; ?>
<body>
<?php
if($layout=='boxed'){ ?>
<div class="layout-boxed">
<?php } ?>
<div id="wrap">
<!--Navigation-->
<header id="header" class="header header--fixed hide-from-print" >
<!--top-->
<?php if($this->countModules('top')) : ?>
<div id="top" class="navbar-inverse">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="top" style="none" />
</div>
</div>
</div>
<?php endif; ?>
<!--top-->
<div id="navigation">
<div class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div id="brand">
<a href="<?php echo $this->params->get('logo_link') ?>">
<img style="width:<?php echo $this->params->get('logo_width') ?>px; height:<?php echo $this->params->get('logo_height') ?>px; " src="<?php echo $this->params->get('logo_file') ?>" alt="Logo" />
</a>
</div>
</div>
<div class="navbar-collapse collapse">
<?php if ($this->countModules('navigation')) : ?>
<nav class="navigation">
<jdoc:include type="modules" name="navigation" style="none" />
</nav>
<?php endif; ?>
</div>
</div>
</div></div>
</header>
<div class="clearfix"></div>
<!--Navigation-->
<section>
<!--fullwidth-->
<?php if($this->countModules('fullwidth')) : ?>
<div id="fullwidth">
<div class="row">
<jdoc:include type="modules" name="fullwidth" style="block"/>
</div>
</div>
<?php endif; ?>
<!--fullwidth-->
<!--Showcase-->
<?php if($this->countModules('showcase')) : ?>
<div id="showcase">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="showcase" style="block"/>
</div>
</div>
</div>
<?php endif; ?>
<!--Showcase-->
<!--Feature-->
<?php if($this->countModules('feature')) : ?>
<div id="feature">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="feature" style="block" />
</div>
</div>
</div>
<?php endif; ?>
<!--Feature-->
<!--Breadcrumb-->
<?php if($this->countModules('breadcrumbs')) : ?>
<div id="breadcrumbs">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="breadcrumbs" style="block" />
</div>
</div>
</div>
<!--Breadcrumb-->
<?php endif; ?>
<!-- Content -->
<div class="container">
<div id="main" class="row show-grid">
<!-- Left -->
<?php if($this->countModules('left')) : ?>
<div id="sidebar" class="col-sm-<?php echo $leftcolgrid; ?>">
<jdoc:include type="modules" name="left" style="block" />
</div>
<?php endif; ?>
<!-- Component -->
<div id="container" class="col-sm-<?php echo (12-$leftcolgrid-$rightcolgrid); ?>">
<!-- Content-top Module Position -->
<?php if($this->countModules('content-top')) : ?>
<div id="content-top">
<div class="row">
<jdoc:include type="modules" name="content-top" style="block" />
</div>
</div>
<?php endif; ?>
<!-- Front page show or hide -->
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
if ($frontpageshow){
// show on all pages
?>
<div id="main-box">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<?php
} else {
if ($menu->getActive() !== $menu->getDefault()) {
// show on all pages but the default page
?>
<div id="main-box">
<jdoc:include type="component" />
</div>
<?php
}} ?>
<!-- Front page show or hide -->
<!-- Below Content Module Position -->
<?php if($this->countModules('content-bottom')) : ?>
<div id="content-bottom">
<div class="row">
<jdoc:include type="modules" name="content-bottom" style="block" />
</div>
</div>
<?php endif; ?>
</div>
<!-- Right -->
<?php if($this->countModules('right')) : ?>
<div id="sidebar-2" class="col-sm-<?php echo $rightcolgrid; ?>">
<jdoc:include type="modules" name="right" style="block" />
</div>
<?php endif; ?>
</div>
</div>
<!-- Content -->
<!-- bottom -->
<?php if($this->countModules('bottom')) : ?>
<div id="bottom">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="bottom" style="block" />
</div>
</div>
</div>
<?php endif; ?>
<!-- bottom -->
<!-- footer -->
<?php if($this->countModules('footer')) : ?>
<div id="footer">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="footer" style="block" />
</div>
</div>
</div>
<?php endif; ?>
<!-- footer -->
<!--<div id="push"></div>-->
<!-- copy -->
<?php if($this->countModules('copy')) : ?>
<div id="copy" class="well">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="copy" style="block" />
</div>
</div>
</div>
<?php endif; ?>
<!-- copy -->
<!-- menu slide -->
<?php if($this->countModules('panelnav')): ?>
<div id="panelnav">
<jdoc:include type="modules" name="panelnav" style="none" />
</div><!-- end panelnav -->
<?php endif;// end panelnav ?>
<!-- menu slide -->
<a href="#" class="back-to-top">Back to Top</a>
<jdoc:include type="modules" name="debug" />
</section></div>
<?php
if($layout=='boxed'){ ?>
</div>
<?php } ?>
<!-- page -->
<!-- JS -->
<?php $doc->addScript('templates/' . $this->template . '/js/template.min.js'); ?>
<!-- JS -->
</body>
</html>