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']; + } ?> -