-
Notifications
You must be signed in to change notification settings - Fork 1
/
component.php
45 lines (39 loc) · 1.34 KB
/
component.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
/**
* @package Turquoise
* @subpackage tpl_turquoise
* @copyright Copyright (C) 2014 Rene Bentes Pinto, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see http://www.gnu.org/licenses/gpl-2.0.html
*/
// No direct access.
defined('_JEXEC') or die('Restricted access!');
include_once JPATH_THEMES . '/' . $this->template . '/helper.php';
tplTurquoiseHelper::init($this);
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
// Additional stylesheets and javascripts
$doc->addStylesheet($this->path . '/css/print.css?v=1', 'text/css', 'print');
if (isset($_GET['print']) && $_GET['print'] == '1') :
$doc->addScriptDeclaration('window.print();');
endif;
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
<!--[if lt IE 9]>
<script src="<?php echo $this->path; ?>/js/html5shiv.min.js" type="text/javascript"></script>
<script src="<?php echo $this->path; ?>/js/respond.min.js" type="text/javascript"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<?php tplTurquoiseHelper::renderMessages(); ?>
<jdoc:include type="component" />
</div>
</div>
</div>
</body>
</html>