-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomponent.php
More file actions
42 lines (34 loc) · 1.25 KB
/
Copy pathcomponent.php
File metadata and controls
42 lines (34 loc) · 1.25 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
<?php
/**
* Файл вывода чистого компонента (версия для модальных окон)
* Joomla 6 + UIkit 3
*/
declare(strict_types=1);
defined('_JEXEC') or die;
// Инициализация (подключает автозагрузку классов и WebAssetManager)
require_once __DIR__ . '/php/init.php';
/** * Подсказки для IDE (PhpStorm / VSCode)
* @var \Joomla\CMS\Document\HtmlDocument $this
* @var \Wmarka\Template\Helper $tpl
*/
?>
<!DOCTYPE html>
<?php echo $tpl->renderHTML(); ?>
<head>
<jdoc:include type="metas" />
<jdoc:include type="styles" />
<jdoc:include type="scripts" />
</head>
<?php /* Подключаем системные мета-теги и ассеты из joomla.asset.json */ ?>
<jdoc:include type="head" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body class="<?php echo $tpl->getBodyClasses(); ?> uk-background-white">
<main class="uk-section uk-section-small">
<div class="uk-container">
<?php /* Вывод основного содержимого компонента */ ?>
<jdoc:include type="component" />
</div>
</main>
</body>
</html>