mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 10:28:43 +00:00
refactor: blog_index page with bs5
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
74e502a853
commit
f2b3280e68
@ -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'] . '的博客') ?>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user