шаг 3 завершен
This commit is contained in:
+19
-1
@@ -4,16 +4,34 @@ declare(strict_types=1);
|
||||
|
||||
/** @var string $templatePath */
|
||||
/** @var string $title */
|
||||
/** @var string $metaDescription */
|
||||
/** @var string $metaKeywords */
|
||||
/** @var array<int, array{title: string, url?: string}> $breadcrumbs */
|
||||
/** @var bool $showBackButton */
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= htmlspecialchars($title ?? 'Рыбсток', ENT_QUOTES, 'UTF-8') ?></title>
|
||||
<title><?= e($title) ?></title>
|
||||
<?php if ($metaDescription !== ''): ?>
|
||||
<meta name="description" content="<?= e($metaDescription) ?>">
|
||||
<?php endif; ?>
|
||||
<?php if ($metaKeywords !== ''): ?>
|
||||
<meta name="keywords" content="<?= e($metaKeywords) ?>">
|
||||
<?php endif; ?>
|
||||
<link rel="stylesheet" href="/assets/css/app.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-utility">
|
||||
<?php if ($showBackButton): ?>
|
||||
<button class="back-button" type="button" onclick="history.length > 1 ? history.back() : location.href='/'">Вернуться назад</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php require base_path('views/partials/breadcrumbs.php'); ?>
|
||||
</header>
|
||||
|
||||
<main class="page">
|
||||
<?php require $templatePath; ?>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user