-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.php
75 lines (59 loc) · 2.16 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
<?php
/**
* J!Blank Template for Joomla by JBlank.pro (JBZoo.com)
*
* @package JBlank
* @author SmetDenis <admin@jbzoo.com>
* @copyright Copyright (c) JBlank.pro
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
* @link http://jblank.pro/ JBlank project page
*/
defined('_JEXEC') or die;
// init $tpl helper
require dirname(__FILE__) . '/php/init.php';
?><?php echo $tpl->renderHTML(); ?>
<head>
<jdoc:include type="head" />
</head>
<?php
$pageClassSuffix = JFactory::getApplication()->getMenu()->getActive()? JFactory::getApplication()->getMenu()->getActive()->params->get('pageclass_sfx', '-default') : '-default';
?>
<body class="<?php echo $tpl->getBodyClasses(); ?> <?php echo $pageClassSuffix ?>">
<!--[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]-->
<!--
Your HTML code starts here!
-->
<?php if ($tpl->isMobile()) : ?>
<!-- only for mobiles -->
<?php endif; ?>
<?php if ($tpl->isTablet()) : ?>
<!-- only for tablets -->
<?php endif; ?>
<?php
// test Joomla messages
$tpl->app->enqueueMessage('Notice message, example', 'notice');
$tpl->app->enqueueMessage('Warning message, example', 'warning');
$tpl->app->enqueueMessage('Error message, example', 'error');
$tpl->app->enqueueMessage('Simple message, example');
//throw new Exception('Fatal error message example');
?>
<!-- show modules and components -->
<div class="component-wrapper">
<!-- show Joomla messages -->
<?php if ($tpl->isError()) : ?>
<jdoc:include type="message" />
<?php endif; ?>
<jdoc:include type="modules" name="pre_component" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="post_component" />
</div>
<!-- partial example -->
<?php echo $tpl->partial('counters', array(
'myVar' => 123
));?>
<?php if ($tpl->isDebug()) : ?>
<jdoc:include type="modules" name="debug" />
<?php endif; ?>
</body></html>