From 75b3778dccccddb5cc90b2b4e0a3f958826ad8ba Mon Sep 17 00:00:00 2001 From: winter Date: Wed, 15 Jan 2025 20:33:38 +0000 Subject: implement home timeline --- templates/timeline.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'templates/timeline.php') diff --git a/templates/timeline.php b/templates/timeline.php index 7ba2fbf..a65b4ce 100644 --- a/templates/timeline.php +++ b/templates/timeline.php @@ -1,11 +1,20 @@ __("timeline.$kind")], function () { global $items, $kind; - call_template('alertbox', [ - 'variety' => 'info', - 'message' => __("timeline.$kind.description") - ]); + if ($kind != 'home') { + call_template('alertbox', [ + 'variety' => 'info', + 'message' => __("timeline.$kind.description") + ]); + } else { + call_template('live_timeline_updater', [ + 'kind' => 'home', + 'since' => new DateTimeImmutable() + ]); + } + echo '