-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
39 lines (32 loc) · 1.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
<?php
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
$app = Factory::getApplication();
$menu = $app->getMenu();
$pageClass = $menu->getActive()->getParams()->get('pageclass_sfx');
$templateUrl = $this->baseurl . '/templates/' . $this->template;
$this->setMetaData('viewport', 'width=device-width, initial-scale=1');
$this->addStyleSheet($templateUrl . '/css/template.css');
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
</head>
<body class="<?php echo $pageClass ? \htmlspecialchars($pageClass) : ''; ?>">
<header id="header" role="banner">
<a href="<?php echo $this->baseurl; ?>">Home</a>
<?php if ($this->countModules('header')): ?>
<jdoc:include type="modules" name="header" style="html5" />
<?php endif; ?>
</header>
<main id="main" role="main">
<jdoc:include type="component" />
</main>
<?php if ($this->countModules('footer')): ?>
<footer id="footer" role="contentinfo">
<jdoc:include type="modules" name="footer" style="html5" />
</footer>
<?php endif; ?>
</body>
</html>