31 lines
1.0 KiB
PHP
31 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* 独立页骨架(登录 / 安装 / 错误提示)。
|
|
*
|
|
* ⚠️ 这个文件存在的唯一理由:renderBare() 早先只 require 内容模板,
|
|
* 输出里没有 <head> 与 CSS 链接 —— 浏览器只能拿默认样式渲染,
|
|
* 于是登录页看起来「完全没样式」。裸页也必须是一份完整的 HTML 文档。
|
|
*
|
|
* 变量:$pageTitle / $tplFile / $extraHead(均由 View::renderBare 提供)
|
|
*/
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title><?= e($pageTitle) ?> · 岁月家</title>
|
|
<link rel="icon" href="/favicon.ico">
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
<meta name="theme-color" content="#A84A28">
|
|
<link rel="stylesheet" href="<?= e(asset('/assets/css/app.css')) ?>">
|
|
<?= $extraHead ?? '' ?>
|
|
</head>
|
|
<body>
|
|
|
|
<?php require $tplFile; ?>
|
|
|
|
<script src="<?= e(asset('/assets/js/app.js')) ?>"></script>
|
|
</body>
|
|
</html>
|