feat: include sidebar in index page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-26 18:56:38 +08:00
parent e013100989
commit 42591677e5
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 13 additions and 4 deletions

View File

@ -111,10 +111,10 @@
<?php endif ?> <?php endif ?>
</div> </div>
<div class="col"> <div class="col">
<div class="d-none d-md-block"> <div class="d-none d-md-block mb-4">
<img class="media-object img-thumbnail" src="/images/logo.png" alt="Logo" /> <img class="media-object img-thumbnail" src="/images/logo.png" alt="Logo" />
</div> </div>
<div class="card card-default mt-4"> <div class="card card-default mb-2">
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="card-header bg-white"> <div class="card-header bg-white">
<b><?= UOJLocale::get('countdowns') ?></b> <b><?= UOJLocale::get('countdowns') ?></b>
@ -154,7 +154,12 @@
<?php endif ?> <?php endif ?>
</div> </div>
</div> </div>
<div class="card card-default mt-4">
<?php if (Auth::check()): ?>
<?php uojIncludeView('sidebar') ?>
<?php endif ?>
<div class="card card-default mb-2">
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="card-header bg-white"> <div class="card-header bg-white">
<b><?= UOJLocale::get('friend links') ?></b> <b><?= UOJLocale::get('friend links') ?></b>

View File

@ -1,4 +1,6 @@
<?php if (!isset($group_announcements_hidden) && Auth::check()): ?> <?php if (Auth::check()): ?>
<?php if (!isset($group_announcements_hidden)): ?>
<?php $groups = queryGroupsOfUser(Auth::id()); ?> <?php $groups = queryGroupsOfUser(Auth::id()); ?>
<?php if (count($groups)): ?> <?php if (count($groups)): ?>
<div class="card card-default mb-2" id="group-user-announcements"> <div class="card card-default mb-2" id="group-user-announcements">
@ -80,3 +82,5 @@
</div> </div>
</div> </div>
<?php endif ?> <?php endif ?>
<?php endif // Auth::check() ?>