forked from gsuez/master-bootstrap-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
193 lines (189 loc) · 5.55 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
<?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';
?>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
<?php include 'includes/head.php'; ?>
<body>
<!--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="wrap">
<!--Navigation-->
<div id="navigation">
<div class="navbar navbar-default" role="navigation">
<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" role="navigation">
<jdoc:include type="modules" name="navigation" style="none"/>
</nav>
<?php endif; ?>
</div>
</div>
</div>
</div>
<!--Navigation-->
<!--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-->
<!-- Content -->
<div class="container">
<?php if ($this->countModules('breadcrumbs')) : ?>
<div id="breadcrumbs">
<div class="row">
<jdoc:include type="modules" name="breadcrumbs" style="block"/>
</div>
</div>
<?php endif; ?>
<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; ?>
<div id="push"></div>
<!-- bottom -->
</div>
<!-- footer -->
<?php if ($this->countModules('footer')) : ?>
<div id="footer" class="well">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="footer" style="block"/>
</div>
</div>
</div>
<?php endif; ?>
<!-- footer -->
<a href="#" class="back-to-top">Back to Top</a>
<jdoc:include type="modules" name="debug"/>
<!-- page -->
<!-- JS -->
<script type="text/javascript" src="<?php echo $tpath; ?>/js/template.js"></script>
<!-- JS -->
</body>
</html>