This repository has been archived by the owner on Oct 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
component.php
43 lines (39 loc) · 1.55 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
<?php defined('_JEXEC') or die;
/**
* @package Template Framework for Joomla!+
* @author Cristina Solana http://nightshiftcreative.com
* @author Matt Thomas http://construct-framework.com | http://betweenbrain.com
* @copyright Copyright (C) 2009 - 2013 Matt Thomas. All rights reserved.
* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
*/
// Load Joomla filesystem package
jimport('joomla.filesystem.file');
// Returns a reference to the global document object
$doc = JFactory::getDocument();
// Define relative shortcut for current template directory
$template = 'templates/' . $this->template;
// Check for layout override
if (JFile::exists($template . '/layouts/component.php')) {
include_once $template . '/layouts/component.php';
}
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<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" />
<?php
$doc->addStyleSheet($template . '/css/print.css', 'text/css', 'print');
if ($this->direction == 'rtl')
$doc->addStyleSheet($template . '/css/rtl.css', 'screen');
?>
</head>
<body class="contentpane">
<?php if ($this->countModules('print-popup')) : ?>
<jdoc:include type="modules" name="print-popup" style="raw" />
<?php endif ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
</body>
</html>
<?php }