-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.php
137 lines (114 loc) · 4.83 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
<?php
/**
* @package Joomla.Site
* @subpackage Templates.h5bptb
* @copyright Copyright (C) 2014 - 2015 Iván Ramos Jiménez. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
*/
defined('_JEXEC') or die;
// check modules
$showRightColumn = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showLeftColumn = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
if ($showRightColumn==0 and $showLeftColumn==0) $showNoColumns = 1;
else $showNoColumns = 0;
/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<jdoc:include type="head" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/style.min.css">
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jui/modernizr-2.6.2-respond-1.1.0.min.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<nav class="navbar navbar-inverse navbar-fixed-top" 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>
<a class="navbar-brand" href="#"><?php echo $app->getCfg('sitename'); ?></a>
</div>
<div class="collapse navbar-collapse">
<jdoc:include type="modules" name="position-1" style="none"/>
<jdoc:include type="modules" name="position-0" style="navSearch"/>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<div class="row">
<?php if($showLeftColumn) : ?>
<aside class="col-md-3">
<jdoc:include type="modules" name="position-7" style="xhtml"/>
<jdoc:include type="modules" name="position-4" style="xhtml"/>
<jdoc:include type="modules" name="position-5" style="xhtml"/>
</aside>
<?php endif; ?>
<section class="<?php echo ($showNoColumns ? 'col-md-12' : (($showLeftColumn==0 or $showRightColumn==0) ? 'col-md-9':'col-md-6')); ?>">
<?php if ($this->countModules('position-12')): ?>
<div id="top">
<jdoc:include type="modules" name="position-12"/>
</div>
<?php endif; ?>
<div>
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="position-2" style="none" />
</div>
</section>
<?php if($showRightColumn) : ?>
<aside class="col-md-3">
<jdoc:include type="modules" name="position-6" style="xhtml"/>
<jdoc:include type="modules" name="position-8" style="xhtml"/>
<jdoc:include type="modules" name="position-3" style="xhtml"/>
</aside>
<?php endif; ?>
</div>
<?php if ($showbottom) : ?>
<div class="row">
<div class="col-md-4">
<jdoc:include type="modules" name="position-9" style="xhtml"/>
</div>
<div class="col-md-4">
<jdoc:include type="modules" name="position-10" style="xhtml"/>
</div>
<div class="col-md-4">
<jdoc:include type="modules" name="position-11" style="xhtml"/>
</div>
</div>
<?php endif ; ?>
<hr>
<footer>
<div class="row">
<div class="col-md-3">
<p>
<?php echo JText::_('TPL_H5BPTB_POWERED_BY');?> <a href="http://www.joomla.org/">Joomla!®</a>
</p>
</div>
<div class="col-md-3 offset4">
<jdoc:include type="modules" name="position-14" />
</div>
</div>
</footer>
</div>
<jdoc:include type="modules" name="debug" />
<?php JHtml::_('jquery.framework'); ?>
<?php JHtml::_('bootstrap.framework'); ?>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/script.js"></script>
</body>
</html>