mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 05:48:41 +00:00
refactor: backgrounds
This commit is contained in:
parent
6caffead0e
commit
b50b3ee67c
@ -65,18 +65,27 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if (Auth::check() && isNormalUser($myUser)): ?>
|
<?php if (Auth::check()): ?>
|
||||||
<div class="mt-4">
|
<?php if (isNormalUser($myUser)): ?>
|
||||||
<h4><?= UOJLocale::get('top solver') ?></h4>
|
<div class="mt-4 card">
|
||||||
<?php echoRanklist(array('echo_full' => true, 'top10' => true, 'by_accepted' => true)) ?>
|
<div class="card-body">
|
||||||
<div class="text-center">
|
<h4 class="card-title"><?= UOJLocale::get('top solver') ?></h4>
|
||||||
<a href="/solverlist"
|
<?php echoRanklist(array(
|
||||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
'echo_full' => true,
|
||||||
class="text-decoration-none"
|
'top10' => true,
|
||||||
<?php endif ?>
|
'by_accepted' => true,
|
||||||
><?= UOJLocale::get('view all') ?></a>
|
'table_classes' => array('table', 'text-center'),
|
||||||
|
)) ?>
|
||||||
|
<div class="text-center">
|
||||||
|
<a href="/solverlist"
|
||||||
|
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||||
|
class="text-decoration-none"
|
||||||
|
<?php endif ?>
|
||||||
|
><?= UOJLocale::get('view all') ?></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="mt-4 card card-default">
|
<div class="mt-4 card card-default">
|
||||||
<div class="card-body text-center">
|
<div class="card-body text-center">
|
||||||
@ -91,7 +100,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card card-default mt-4">
|
<div class="card card-default mt-4">
|
||||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||||
<div class="card-header">
|
<div class="card-header bg-white">
|
||||||
<b>倒计时</b>
|
<b>倒计时</b>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
@ -127,7 +136,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card card-default mt-4">
|
<div class="card card-default mt-4">
|
||||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||||
<div class="card-header">
|
<div class="card-header bg-white">
|
||||||
<b>友情链接</b>
|
<b>友情链接</b>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
@ -6,7 +6,13 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="navbar navbar-light navbar-expand-md bg-light mb-4" role="navigation">
|
<div class="navbar navbar-light navbar-expand-md
|
||||||
|
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||||
|
bg-white shadow-sm
|
||||||
|
<?php else: ?>
|
||||||
|
bg-light
|
||||||
|
<?php endif ?>
|
||||||
|
mb-4" role="navigation">
|
||||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php if ($ShowPageFooter): ?>
|
<?php if ($ShowPageFooter): ?>
|
||||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||||
<footer class="bg-light text-muted pt-3 pb-4 mt-4" style="font-size: 0.9em">
|
<footer class="bg-white text-muted pt-3 pb-4 mt-4" style="font-size: 0.9em">
|
||||||
<div class="container d-lg-flex justify-content-lg-between">
|
<div class="container d-lg-flex justify-content-lg-between">
|
||||||
<p>
|
<p>
|
||||||
© <?= date('Y') ?>
|
© <?= date('Y') ?>
|
||||||
|
@ -237,7 +237,7 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||||
<body class="d-flex flex-column min-vh-100">
|
<body class="d-flex flex-column min-vh-100 bg-light">
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<body>
|
<body>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user