From fa218dc2b02b4d1920ce6d266d9d4f5d17e22b3b Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Tue, 23 Mar 2021 00:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E5=92=8C=E5=BD=93=E5=89=8D=E9=A1=B5=E9=9D=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=9A=84=E9=9D=99=E6=80=81=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=9F=BA=E7=A1=80=E7=9A=84?= =?UTF-8?q?(=E7=9C=9F=C2=B7)=E9=A1=B5=E5=A4=B4=E9=A1=B5=E8=84=9A(HTML?= =?UTF-8?q?=E9=99=90=E5=AE=9A=E6=AC=BE)=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Data/PageMeta.php | 20 +++++++++++++++++++ src/Data/SiteMeta.php | 46 +++++++++++++++++++++++++++++++++++++++++++ template/footer.php | 16 +++++++++++++++ template/header.php | 30 ++++++++++++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 src/Data/PageMeta.php create mode 100644 src/Data/SiteMeta.php create mode 100644 template/footer.php create mode 100644 template/header.php diff --git a/src/Data/PageMeta.php b/src/Data/PageMeta.php new file mode 100644 index 0000000..7df9bea --- /dev/null +++ b/src/Data/PageMeta.php @@ -0,0 +1,20 @@ +getName()." - ".self::$book->getName(); + } + + public static function getDescription (): string { + return ""; // todo wip description + } + +} diff --git a/src/Data/SiteMeta.php b/src/Data/SiteMeta.php new file mode 100644 index 0000000..4b240d7 --- /dev/null +++ b/src/Data/SiteMeta.php @@ -0,0 +1,46 @@ + + + + + + + + "; + } + ?> + + + + \ No newline at end of file diff --git a/template/header.php b/template/header.php new file mode 100644 index 0000000..8a5f48c --- /dev/null +++ b/template/header.php @@ -0,0 +1,30 @@ + + + + +"> + + + + + + + + + + + + + <?= PageMeta::getPageTitle() ?> + + + + "; + } + ?> + + +
+ \ No newline at end of file