refactor: blog_index page with bs5
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-29 22:06:36 +08:00
parent 74e502a853
commit f2b3280e68
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -6,14 +6,21 @@
$blogs_pag = new Paginator(array( $blogs_pag = new Paginator(array(
'col_names' => array('*'), 'col_names' => array('*'),
'table_name' => 'blogs', 'table_name' => 'blogs',
'cond' => "poster = '".UOJContext::user()['username']."' and is_hidden = 0", 'cond' => "poster = '".UOJContext::userid()."' and is_hidden = 0",
'tail' => 'order by post_time desc limit 5', 'tail' => 'order by post_time desc limit 5',
'echo_full' => true 'echo_full' => true
)); ));
?>
<?php if (!isset($_COOKIE['bootstrap4'])) {
$REQUIRE_LIB['bootstrap5'] = '';
}
$REQUIRE_LIB['mathjax'] = ''; $REQUIRE_LIB['mathjax'] = '';
if (isset($REQUIRE_LIB['bootstrap5'])) {
$REQUIRE_LIB['hljs'] = '';
} else {
$REQUIRE_LIB['shjs'] = ''; $REQUIRE_LIB['shjs'] = '';
}
?> ?>
<?php echoUOJPageHeader(UOJContext::user()['username'] . '的博客') ?> <?php echoUOJPageHeader(UOJContext::user()['username'] . '的博客') ?>