-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomponent.php
More file actions
executable file
·81 lines (64 loc) · 2.13 KB
/
component.php
File metadata and controls
executable file
·81 lines (64 loc) · 2.13 KB
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
<?php
/**
* @author jtotal <support@jtotal.org>
* @link https://jtotal.org
* @copyright Copyright © 2023 JTOTAL All Rights Reserved
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\File;
include_once JPATH_THEMES . '/' . $this->template . '/logics/logic_base.php';
// variables
$doc = Factory::getDocument();
$tpath = $this->baseurl . '/templates/' . $this->template;
$app = Factory::getApplication();
// generator tag
$this->setGenerator(null);
//LAYOUT COMPONENT
if (file_exists($tpath_abs . '/layouts/' . $buf_layout . '/component.php')) {
include_once JPATH_THEMES . '/' . $this->template . '/layouts/' . $buf_layout . '/component.php';
return;
}
//load sheets and scripts
if (File::exists($cachepath . 'print.css')) {
$doc->addStyleSheet($cache_tpath . '/css/print.css?v=1');
}
?><!doctype html>
<html lang="<?php echo $this->language; ?>">
<head>
<jdoc:include type="head" />
<style id="buf_style_base">
<?php
//avoid error on load
echo file_get_contents('cache/buf/base.css');
//TEMPLATE BASE CSS
?>
</style>
</head>
<body class="<?php echo $browserType . ' tmpl_document ' .
(($menu->getActive() == $menu->getDefault()) ? ('front') : ('site')) . '
' . $active->alias . ' ' . $pageclass . ' ' . $docalias; ?>"
role="document"
>
<div class="contenidos wrapper row">
<article class="contenido buf_component">
<jdoc:include type="message" />
<jdoc:include type="component" />
</article>
</div>
<?php //if ($_GET['print'] == '1') echo '<script type="text/javascript">window.print();</script>'; ?>
</body>
<?Php
$app = Factory::getApplication();
$templateparams = $app->getTemplate(true)->params;
//LOGIC
if (!$templateparams->get('buf_edit_base', 0)) {
if (!$check_jtfw || $check_jtfw == '1.0.0' || !$check_jtlibs || $check_jtlibs == '1.0.0') {
//
} else {
include_once JPATH_THEMES . '/' . $this->template . '/logics/logic.php';
}
}
?>
</html>