42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
<?php
|
|
/**
|
|
* @package Bicycle
|
|
* @description layout.html — главный шаблон сайта; верхнее и боковое меню
|
|
* приходят уже отрендеренными (см. Controller::renderMenuTop/renderMenuSide)
|
|
*
|
|
* @var string $content Содержимое страницы
|
|
* @var string $menu_top HTML верхнего меню
|
|
* @var string $menu_side HTML бокового меню; пустая строка — колонка не рисуется
|
|
*/
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Bicycle</title>
|
|
<link rel="stylesheet" href="/vendor/twbs/bootstrap/dist/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="/vendor/twbs/bootstrap-icons/font/bootstrap-icons.css">
|
|
<?php $this->getStyles(); ?>
|
|
</head>
|
|
<body>
|
|
<?= $menu_top ?>
|
|
<?php if ($menu_side !== ''): ?>
|
|
<div class="container py-3">
|
|
<div class="row">
|
|
<aside class="col-md-3 col-lg-2 mb-3"><?= $menu_side ?></aside>
|
|
<main class="col-md-9 col-lg-10"><?= $content ?></main>
|
|
</div>
|
|
</div>
|
|
<?php else: ?>
|
|
<main class="container py-3">
|
|
<?= $content ?>
|
|
</main>
|
|
<?php endif; ?>
|
|
<script src="/vendor/components/jquery/jquery.min.js"></script>
|
|
<script src="/vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
|
<?php $this->getScripts(); ?>
|
|
<?= \System\Classes\ProfilerToolbar::render() ?>
|
|
</body>
|
|
</html>
|