S2OJ/web/app/views/main-nav.php

109 lines
3.4 KiB
PHP
Raw Permalink Normal View History

2023-02-23 10:28:20 +00:00
<div class="navbar navbar-light navbar-expand-md bg-body shadow-sm
2023-02-04 03:29:12 +00:00
<?php if (!isset($disable_navbar_margin_bottom)) : ?>
2023-01-30 10:47:44 +00:00
mb-4
<?php endif ?>
" role="navigation">
2023-02-05 12:55:14 +00:00
<div class="container">
2023-01-30 10:47:44 +00:00
<a class="navbar-brand fw-normal" href="<?= HTML::url('/') ?>">
2023-02-05 12:55:14 +00:00
<img src="<?= HTML::url('/images/logo_small.png') ?>" alt="Logo" width="24" height="24" class="d-inline-block align-text-top" />
2022-09-23 13:00:17 +00:00
<?= UOJConfig::$data['profile']['oj-name-short'] ?>
</a>
2023-02-05 12:55:14 +00:00
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
2023-02-04 03:29:12 +00:00
2023-02-05 12:55:14 +00:00
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="<?= HTML::url('/contests') ?>">
<i class="bi bi-bar-chart"></i>
<?= UOJLocale::get('contests') ?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::url('/problems') ?>">
<i class="bi bi-list-task"></i>
<?= UOJLocale::get('problems') ?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::url('/groups') ?>">
<i class="bi bi-people"></i>
<?= UOJLocale::get('groups') ?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::url('/lists') ?>">
<i class="bi bi-card-list"></i>
<?= UOJLocale::get('problems lists') ?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::url('/submissions') ?>">
<i class="bi bi-pie-chart"></i>
<?= UOJLocale::get('submissions') ?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::url('/hacks') ?>">
<i class="bi bi-flag"></i>
<?= UOJLocale::get('hacks') ?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::blog_list_url() ?>">
<i class="bi bi-pencil-square"></i>
<?= UOJLocale::get('blogs') ?>
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-grid-3x3-gap"></i>
<?= UOJLocale::get('apps') ?>
</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="<?= HTML::url('/apps/image_hosting') ?>">
<i class="bi bi-images"></i>
<?= UOJLocale::get('image hosting') ?>
2022-09-23 13:00:17 +00:00
</a>
</li>
2023-02-05 12:55:14 +00:00
<li>
<a class="dropdown-item" href="<?= HTML::url('/apps/html2markdown') ?>">
<i class="bi bi-markdown"></i>
<?= UOJLocale::get('html to markdown') ?>
2023-02-04 03:29:12 +00:00
</a>
</li>
2023-02-05 12:55:14 +00:00
<li>
<a class="dropdown-item" href="<?= HTML::url('/apps/diff_online') ?>">
<i class="bi bi-file-earmark-diff"></i>
<?= UOJLocale::get('diff online') ?>
2022-09-23 13:00:17 +00:00
</a>
</li>
2023-02-05 12:55:14 +00:00
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::url('/faq') ?>">
<i class="bi bi-question-circle"></i>
<?= UOJLocale::get('help') ?>
</a>
</li>
</ul>
<hr class="d-md-none text-muted">
2023-02-23 10:28:20 +00:00
<?php uojIncludeView('nav-right', [
'new_msg_tot' => $new_msg_tot,
'new_user_msg_num' => $new_user_msg_num,
'new_system_msg_num' => $new_system_msg_num,
]) ?>
2022-09-23 13:00:17 +00:00
</div>
2023-02-05 12:55:14 +00:00
</div>
2016-07-18 16:39:37 +00:00
</div>
2022-09-23 13:00:17 +00:00
2022-09-23 23:01:13 +00:00
<script>
var zan_link = '';
</script>