1
0
mirror of https://github.com/suk-ws/ph-Bookshelf.git synced 2025-01-19 07:22:26 +08:00
ph-Bookshelf/template/header.php
Eyre_S d83fb713f9
添加了 CHANNEL 和 BRANCH 声明,最下方的生成器现在会显示版本
- 修改 constant 声明
  - 添加了 CHANNEL 声明程序来源
  - 添加了 BRANCH 声明程序所处的更新线
  - 将 get_frontpage_generate_version 移动至 SiteMeta 中
- 将 bookshelf 的 getHtml 中的主容器声明和生成器声明移至上层
- 给生成器声明添加了一个灰色小字的版本号声明
  - ph-Bookshelf 的为 VERSION at CHANNEL/BRANCH
  - gitbook 为 VERSION
2021-05-10 12:09:29 +08:00

31 lines
1.3 KiB
PHP

<?php require_once "./src/Data/SiteMeta.php" ?>
<?php require_once "./src/Data/PageMeta.php" ?>
<!DOCTYPE HTML>
<html lang="<?= "" // TODO Page language ?>">
<head>
<!-- Gitbook Meta -->
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Page Meta -->
<link rel="shortcut icon" href="<?= SiteMeta::getGlobalIcon() ?>" type="image/x-icon">
<!-- Unused: <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png"> -->
<title><?= PageMeta::getPageTitle() ?></title>
<meta name="description" content="<?= PageMeta::getDescription() ?>">
<meta name="generator" content="<?= SiteMeta::get_frontpage_generate_version() ?>">
<!-- Gitbook Assets(css) -->
<?php
foreach (SiteMeta::getGitbookStylesheetsList() as $item) {
echo "<link rel=\"stylesheet\" href=\"$item\">";
}
?>
<!-- Customs(css) -->
<style><?= SiteMeta::getCustomCssContent("custom") ?></style>
</head>
<body>
<div class="book">