forked from saity74/joomla-developer-template
/
index.php
149 lines (120 loc) · 3.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
<?php
/**
* @package Joomla.Site
* @subpackage Template.Blank_J3
*
* @copyright Copyright (C) 2005 - 2016 Saity74, LLC. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
require_once JPATH_THEMES . '/blank_j3/_php/blank_j3.php';
JHtmlBootstrap::loadCss(false);
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$params = $this->params;
$tmpl = new Blank_J3($this);
$assets = $tmpl->get_assets();
// Add styles..
$doc->addStyleSheet($assets['styles']);
// Add scripts..
$doc->addScript($assets['scripts']);
$menu = $app->getMenu()->getActive();
$body_class = '';
if ( is_object($menu) )
{
$body_class = $tmpl->is_frontpage() ? 'g-homepage ' : '';
$body_class .= $menu->params->get('pageclass_sfx');
$body_class .= str_replace('_', '-', ' g-jm-' . $menu->query['option'] . '-' . $menu->query['view']);
}
?>
<!DOCTYPE html>
<html dir="<?php echo $this->direction; ?>" lang="<?php echo $this->language; ?>" >
<head>
<meta content='text/html; charset=utf-8' http-equiv='content-type'>
<meta content='width=device-width, maximum-scale=1, shrink-to-fit=no' name='viewport'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<jdoc:include type="headj3" />
<link rel="icon" href="<?php echo JURI::root(); ?>favicon.ico" type="image/x-icon">
<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js"></script>
<![endif]-->
<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body class="<?php echo $body_class; ?>">
<?php if ($tmpl->show_header) : ?>
<header class="l-header">
<div class="container">
<jdoc:include type="modules" name="header" style="none"/>
</div>
</header>
<?php endif; ?>
<?php if ($tmpl->show_user1) : ?>
<section class="m-user1">
<div class="container">
<jdoc:include type="modules" name="user1" style="none"/>
</div>
</section>
<?php endif; ?>
<?php if ($tmpl->show_user2) : ?>
<section class="m-user2">
<div class="container">
<jdoc:include type="modules" name="user2" style="none"/>
</div>
</section>
<?php endif; ?>
<?php if ($tmpl->show_user3) : ?>
<section class="m-user3">
<div class="container">
<jdoc:include type="modules" name="user3" style="none"/>
</div>
</section>
<?php endif; ?>
<section class="l-content">
<div class="container">
<?php if ($tmpl->show_msg) : ?>
<div class="l-content_notification">
<jdoc:include type="message" />
</div>
<?php endif; ?>
<?php if ($tmpl->show_content_header) : ?>
<div class="l-content_header">
<jdoc:include type="modules" name="content_header" style="none"/>
</div>
<?php endif; ?>
<main class="l-component">
<jdoc:include type="component" />
</main>
<?php if ($tmpl->show_content_footer) : ?>
<div class="l-content_footer">
<jdoc:include type="modules" name="content_footer" style="none"/>
</div>
<?php endif; ?>
</div>
</section>
<?php if ($tmpl->show_bottom) : ?>
<section class="m-bottom">
<div class="container">
<jdoc:include type="modules" name="bottom" style="none"/>
</div>
</section>
<?php endif; ?>
<?php if ($tmpl->show_footer) : ?>
<footer class="l-footer">
<div class="container">
<jdoc:include type="modules" name="footer" style="none"/>
</div>
</footer>
<?php endif; ?>
<?php if ($params->get('disable_scripts')) : ?>
<jdoc:include type="footj3" />
<?php endif; ?>
<?php echo $tmpl->get_ym(); ?>
<?php echo $tmpl->get_ga(); ?>
</body>
</html>