From 2cfed336f12d7769b2f3d80c5202a1cf29742e04 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 7 Oct 2022 18:24:11 +0800 Subject: [PATCH] refactor: announcements page with bs5 --- web/app/controllers/announcements.php | 35 ++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/web/app/controllers/announcements.php b/web/app/controllers/announcements.php index f07cf9d..d2f9e1e 100644 --- a/web/app/controllers/announcements.php +++ b/web/app/controllers/announcements.php @@ -7,6 +7,10 @@ become403Page(); } + if (!isset($_COOKIE['bootstrap4'])) { + $REQUIRE_LIB['bootstrap5'] = ''; + } + requirePHPLib('form'); function echoBlogCell($blog) { @@ -44,8 +48,37 @@ EOD; 'table_classes' => ['table', 'table-hover'], 'page_len' => 40 ]; + + if (isset($REQUIRE_LIB['bootstrap5'])) { + $config['div_classes'] = ['card', 'my-3']; + $config['table_classes'] = ['table', 'uoj-table', 'mb-0']; + } ?> -

公告

+ + +
+ +
+ + +

+ +

+ + + +
+ + + + + + +
+ +