From 898b52edcb47bcb3e9d6106e74ca73e74ea01e70 Mon Sep 17 00:00:00 2001 From: sillylaird Date: Thu, 3 Sep 2026 00:33:59 +0000 Subject: import live www.sillylaird.ca webroot --- guestbook.php | 168 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 guestbook.php (limited to 'guestbook.php') diff --git a/guestbook.php b/guestbook.php new file mode 100644 index 0000000..bbcc4b4 --- /dev/null +++ b/guestbook.php @@ -0,0 +1,168 @@ + '', 'ja' => '_jp', 'zh' => '_zh'][$lang]; +$h = fn(string $k) => htmlspecialchars(t($k), ENT_QUOTES, 'UTF-8'); + +// EN serves the shared/iframe flow; JP/ZH serve the localStorage-only flow +// with the red theme. Two real layouts behind one PHP entry point. +$isShared = ($lang === 'en'); + +$titleKey = $isShared ? 'guestbook.title' : 'guestbook.local_title'; +$descKey = $isShared ? 'guestbook.desc' : 'guestbook.local_desc'; +$h1Key = $isShared ? 'guestbook.h1' : 'guestbook.local_h1'; +$subtitleKey = $isShared ? 'guestbook.subtitle' : 'guestbook.local_subtitle'; +?> + + + + + + + <?= $h($titleKey) ?> + $lang, 'title'=>t($titleKey), 'desc'=>t($descKey), 'base'=>'guestbook']; include __DIR__ . '/partials/head_meta.php'; ?> + + + + + + + + + + + + + + + +
+
+

+

+ + +
+
+

+ +

+
+ +
+
+ +
+

+ +

+
+ +
+
+
+ +
+
+ + +
+ +
+ + +
+ +
+ + + +
+ +
+ + +
+
+ +
+ +
+
+ + + + + + + + + -- cgit v1.2.3