mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 18:48:41 +00:00
fix: blog tags
This commit is contained in:
parent
023f2e392c
commit
2b00906fa1
@ -1312,7 +1312,16 @@ function echoBlog($blog, $config = array()) {
|
|||||||
uojIncludeView('blog-preview', $config);
|
uojIncludeView('blog-preview', $config);
|
||||||
}
|
}
|
||||||
function echoBlogTag($tag) {
|
function echoBlogTag($tag) {
|
||||||
echo '<a class="uoj-blog-tag"><span class="badge badge-pill badge-secondary">', HTML::escape($tag), '</span></a>';
|
global $REQUIRE_LIB;
|
||||||
|
|
||||||
|
if (isset($REQUIRE_LIB['bootstrap5'])) {
|
||||||
|
echo '<a class="uoj-problem-tag my-1">';
|
||||||
|
echo '<span class="badge bg-secondary">';
|
||||||
|
} else {
|
||||||
|
echo '<a class="uoj-problem-tag">';
|
||||||
|
echo '<span class="badge badge-pill badge-secondary">';
|
||||||
|
}
|
||||||
|
echo HTML::escape($tag), '</span></a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function echoUOJPageHeader($page_title, $extra_config = array()) {
|
function echoUOJPageHeader($page_title, $extra_config = array()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user