-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
156 lines (148 loc) · 6.81 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
<?php
/**
* @package Joomla.Site
* @subpackage Templates.minmalista
*
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
/** @var Joomla\CMS\Document\HtmlDocument $this */
include_once JPATH_THEMES . '/minimalista/logic.php';
?>
<!doctype html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="metas" />
<jdoc:include type="styles" />
<jdoc:include type="scripts" />
</head>
<body class="<?php echo $bodyClasses; ?>">
<?php echo $startBodyCode; ?>
<!-- head with menu, main, sidebars, footer -->
<header class="header">
<div class="container<?php echo $containerFluid; ?>">
<div class="row">
<jdoc:include type="modules" name="header" style="<?php echo $this->template . '-default'; ?>" />
</div>
</div>
<div class="container<?php echo $containerFluid; ?>">
<!-- navbar offcanvas bootstrap 5 -->
<nav class="navbar navbar-expand<?php echo $defaultBoostrapDesktop; ?>">
<div class="container-fluid">
<?php if ($logo): ?>
<a class="navbar-brand" href="<?php echo $this->baseurl; ?>">
<img src="<?php echo $logo; ?>" alt="<?php echo $logo_alt; ?>" />
</a>
<?php endif;?>
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasNavbar" aria-controls="offcanvasNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="offcanvas offcanvas-<?php echo $offcanvasDirection; ?>" tabindex="-1"
id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header">
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas"
aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<jdoc:include type="modules" name="menu" style="<?php echo $this->template . '-default'; ?>" />
</div>
</div>
</div>
</nav>
</div>
</header>
<main class="main">
<?php if ($this->countModules('slideshow')): ?>
<div class="container-fluid">
<div class="slideshow row">
<jdoc:include type="modules" name="slideshow" style="<?php echo $this->template . '-default'; ?>" />
</div>
</div>
<?php endif;?>
<?php
// Sections before the component section
$sectionsBeforeComponent = $templateParams->get('sectionsbeforecomponent', '');
if ($sectionsBeforeComponent) {
foreach ($sectionsBeforeComponent as $section) {
renderSection($section, $defaultBoostrapDesktop, $this);
}
}
?>
<div class="container<?php echo $containerFluid; ?>">
<section class="component-section">
<div class="container<?php echo $containerFluid; ?>">
<?php if ($this->countModules('main-top')): ?>
<div class="main-top row">
<jdoc:include type="modules" name="main-top" style="<?php echo $this->template . '-default'; ?>" />
</div>
<?php endif;?>
<div class="row">
<?php if ($this->countModules('sidebar-left')): ?>
<div class="sidebar-left col-12 col<?php echo $sidebarWidth; ?>">
<div class="row">
<jdoc:include type="modules" name="sidebar-left" style="<?php echo $this->template . '-default'; ?>" />
</div>
</div>
<?php endif;?>
<div class="component col-12 col<?php echo $mainWidth; ?>">
<?php if ($this->countModules('content-top')): ?>
<div class="row">
<jdoc:include type="modules" name="content-top" style="<?php echo $this->template . '-default'; ?>" />
</div>
<?php endif;?>
<jdoc:include type="message" />
<jdoc:include type="component" />
<?php if ($this->countModules('content-bottom')): ?>
<div class="row">
<jdoc:include type="modules" name="content-bottom" style="<?php echo $this->template . '-default'; ?>" />
</div>
<?php endif;?>
</div>
<?php if ($this->countModules('sidebar-right')): ?>
<div class="sidebar-right col-12 col<?php echo $sidebarWidth; ?>">
<div class="row">
<jdoc:include type="modules" name="sidebar-right" style="<?php echo $this->template . '-default'; ?>" />
</div>
</div>
<?php endif;?>
</div>
<?php if ($this->countModules('main-bottom')): ?>
<div class="main-bottom row">
<jdoc:include type="modules" name="main-bottom" style="<?php echo $this->template . '-default'; ?>" />
</div>
<?php endif;?>
</div>
</section>
</div>
<?php
// Sections after the component section
$sectionsAfterComponent = $templateParams->get('sectionsaftercomponent', '');
if ($sectionsAfterComponent) {
foreach ($sectionsAfterComponent as $section) {
renderSection($section, $defaultBoostrapDesktop, $this);
}
}
?>
</main>
<footer class="footer">
<div class="container<?php echo $containerFluid; ?>">
<?php if ($this->countModules('footer')): ?>
<div class="row">
<jdoc:include type="modules" name="footer" style="<?php echo $this->template . '-default'; ?>" />
</div>
<?php endif;?>
</div>
</footer>
<?php echo $endBodyCode; ?>
<?php if ($backtotop): ?>
<button href="#top" id="back-top" class="btn back-to-top-link"
aria-label="<?php echo Text::_('TPL_MINIMALISTA_BACKTOTOP'); ?>">
<i class="fas fa-arrow-up" aria-hidden="true"></i>
</button>
<?php endif;?>
<jdoc:include type="modules" name="debug" style="none" />
</body>
</html>