-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (31 loc) · 1.27 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
<?php
/**
* @package Astroid Framework
* @author JoomDev https://www.joomdev.com
* @copyright Copyright (C) 2009 - 2020 JoomDev.
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/
// No direct access.
defined('_JEXEC') or die;
defined('_ASTROID') or die('Please install and activate <a href="https://www.astroidframework.com/" target="_blank">Astroid Framework</a> in order to use this template.');
if (file_exists(__DIR__ . "/helper.php")) {
require_once __DIR__ . "/helper.php"; // Template's Helper
}
$document = Astroid\Framework::getDocument(); // Astroid Document
// Output as HTML5
$this->setHtml5(true);
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<astroid:include type="head-meta" /> <!-- document meta -->
<jdoc:include type="head" /> <!-- joomla head -->
<astroid:include type="head-styles" /> <!-- head styles -->
<astroid:include type="head-scripts" /> <!-- head scripts -->
</head> <!-- document head -->
<body class="<?php echo $document->getBodyClass(); ?>">
<?php $document->include('document.body'); ?>
<!-- body and layout -->
<astroid:include type="body-scripts" /> <!-- body scripts -->
</body> <!-- document body -->
</html> <!-- document end -->