-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
45 lines (39 loc) · 1.71 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
<?php
defined('_JEXEC') or die('Restricted access');
?>
<?php echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!DOCTYPE html>
<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" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/production.css" type="text/css" />
</head>
<body>
<!-- Joomla Content -->
<div class="container">
<?php if ($this->countModules( 'sidebar1 or sidebar2' )) : ?>
<?php $sidebarwidth = "col-sm-3"; $contentwidth = "col-sm-9"; ?>
<?php elseif ($this->countModules( 'sidebar1 and sidebar2' )) : ?>
<?php $sidebarwidth = "col-sm-3"; $contentwidth = "col-sm-6"; ?>
<?php else : ?>
<?php $contentwidth = "col-sm-12"; ?>
<?php endif; ?>
<?php if ($this->countModules( 'sidebar1' )) : ?>
<div id="sidebar1" class="<?php echo $sidebarwidth; ?>">
<jdoc:include type="modules" name="sidebar1" style="xhtml" />
</div>
<?php endif; ?>
<div id="main" class="<?php echo $contentwidth; ?>">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<?php if ($this->countModules( 'sidebar2' )) : ?>
<div id="sidebar1" class="<?php echo $sidebarwidth; ?>">
<jdoc:include type="modules" name="sidebar2" style="xhtml" />
</div>
<?php endif; ?>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/production.min.js"/>
</body>
</html>