1
0
mirror of https://github.com/suk-ws/ph-Bookshelf.git synced 2024-12-05 01:16:53 +08:00

完成 books 和 links 列出,更新页尾声明

- 使 books 和 links 以特殊的链接组的样式显示
- 页尾添加了文章作者版权声明部分
- 现在版本号显示更加丰富了
  - SiteMeta 添加获取当前版本的方法
  - 更改了项目的 CHANNEL 名
This commit is contained in:
A.C.Sukazyo Eyre 2021-11-22 16:08:50 +08:00
parent 0024f32fb9
commit d5bad3949c
Signed by: Eyre_S
GPG Key ID: EFB47D98FE082FAD
4 changed files with 54 additions and 6 deletions

View File

@ -423,6 +423,22 @@ body {
display: block;
}
#sidebar > .menu-container > .menu#menu-metas > .menu-item-parent > *:first-child {
position: relative;
}
#sidebar > .menu-container > .menu#menu-metas > .menu-item-parent > *:first-child:after {
position: absolute;
left: 0;
margin-left: -1rem;
color: inherit;
}
#sidebar > .menu-container > .menu#menu-metas > .menu-item-parent > .children {
padding-left: 0;
border-left-width: 0;
}
/*
/*

View File

@ -3,5 +3,5 @@
const APP_NAME = "ph-Bookshelf";
const VERSION = "0.3.0.1";
const CHANNEL = "workshop-origin";
const CHANNEL = "suk-ws";
const BRANCH = "master";

View File

@ -11,6 +11,10 @@ class SiteMeta {
return APP_NAME." ".VERSION;
}
public static function getProgramVersion(): string {
return sprintf("%s @%s/%s", VERSION, CHANNEL, BRANCH);
}
/**
* @throws Exception
*/

View File

@ -1,10 +1,30 @@
<? require_once "./src/Data/SiteMeta.php"; ?>
<div id="nav-container"><nav id="sidebar">
<noscript id="noscript-warn">For now, javascript must be enabled to view this site!!</noscript>
<address id="site-title">ph-Bookshelf BEDROCK Demo supports looooooooog title</address>
<div id="menu-container" class="menu-container sidebar-card">
<div id="menu-links" class="menu">
<a class="no-style menu-item" href="https://sukazyo.cc/" target="_blank">Workshop MetaBoard</a>
<a class="no-style menu-item" href="https://srv.sukazyo.cc/" target="_blank">Workshop Services</a>
<div id="menu-metas" class="menu">
<div class="menu-item-parent">
<a class="no-style menu-item" href="#">Links</a>
<div class="children">
<a class="no-style menu-item" href="https://sukazyo.cc/" target="_blank">Workshop MetaBoard</a>
<a class="no-style menu-item" href="https://srv.sukazyo.cc/" target="_blank">Workshop Services</a>
</div>
</div>
<div class="menu-item-parent">
<a class="no-style menu-item" href="#">Books</a>
<div class="children">
<a class="no-style menu-item" href="https://sukazyo.cc/" target="_blank">Template Book</a>
<a class="no-style menu-item" href="https://srv.sukazyo.cc/" target="_blank">phBookshelf Documentation</a>
<div class="menu-item-parent">
<a class="no-style menu-item" href="#">Some other Links</a>
<div class="children">
<a class="no-style menu-item current" href="https://sukazyo.cc/" target="_blank">Template Book</a>
<a class="no-style menu-item" href="https://srv.sukazyo.cc/" target="_blank">phBookshelf Documentation</a>
</div>
</div>
</div>
</div>
</div>
<div id="menu-pages" class="menu">
<a class="no-style menu-item" href="#">Something?</a>
@ -38,9 +58,17 @@
<a class="no-style menu-item" href="#">Something?</a>
</div>
<div id="menu-about" class="menu">
<a class="no-style menu-item" href="https://sukazyo.cc" target="_blank">
<span>hosted by Sukazyo Workshop</span><br>
<small>&nbsp;| @author A.C.Sukazyo Eyre</small><br>
<small>&nbsp;<object><a class="no-style" href="https://laple.me/">| @author Lapis Apple</a></object></small><br>
<small>&nbsp;| @author github contributors&~&</small><br>
<small>&nbsp;| CC BY-NC-SA</small><br>
<small>&nbsp;| CC statement just for testing</small>
</a>
<a class="no-style menu-item" href="https://github.com/suk-ws/ph-Bookshelf" target="_blank">
<span>Published by ph-Bookshelf</span><br>
<small>0.3-dev</small>
<span>published with ph-Bookshelf</span><br>
<small><?=SiteMeta::getProgramVersion()?></small>
</a>
</div>
</div>