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

57 lines
1.9 KiB
PHP
Raw Normal View History

2023-02-23 10:28:20 +00:00
<div class="navbar navbar-light navbar-expand-md bg-body shadow-sm mb-4" role="navigation">
2022-09-29 01:11:05 +00:00
<div class="container">
2023-02-05 12:55:14 +00:00
<a class="navbar-brand" href="<?= HTML::blog_url(UOJUserBlog::id(), '/') ?>">
2023-02-07 11:36:48 +00:00
<img src="<?= HTML::avatar_addr(UOJUserBlog::user(), 48) ?>" alt="Logo" width="24" height="24" class="d-inline-block align-text-top uoj-user-avatar" />
2023-02-05 12:55:14 +00:00
<?= UOJUserBlog::id() ?>
</a>
2022-09-29 01:11:05 +00:00
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>
2022-09-29 01:11:05 +00:00
2023-02-05 12:55:14 +00:00
<div class="navbar-collapse collapse" id="navbarSupportedContent">
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link" href="<?= HTML::blog_url(UOJUserBlog::id(), '/archive') ?>">
2022-09-29 01:11:05 +00:00
<i class="bi bi-inbox-fill"></i>
2023-02-05 12:55:14 +00:00
归档
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::blog_url(UOJUserBlog::id(), '/self_reviews') ?>">
2022-09-29 01:11:05 +00:00
<i class="bi bi-sunglasses"></i>
2023-02-05 12:55:14 +00:00
赛后总结
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::blog_url(UOJUserBlog::id(), '/aboutme') ?>">
2022-09-29 01:11:05 +00:00
<i class="bi bi-person-lines-fill"></i>
2023-02-05 12:55:14 +00:00
关于我
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?= HTML::url('/') ?>">
2022-09-29 01:11:05 +00:00
<i class="bi bi-link-45deg"></i>
2023-02-05 12:55:14 +00:00
<?= UOJConfig::$data['profile']['oj-name-short'] ?>
</a>
</li>
</ul>
2022-09-29 01:11:05 +00:00
<hr class="d-md-none text-muted">
2023-02-05 12:55:14 +00:00
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,
]) ?>
2023-02-05 12:55:14 +00:00
</div>
2022-09-29 01:11:05 +00:00
</div>
2016-07-18 16:39:37 +00:00
</div>
2022-09-29 01:11:05 +00:00
<script type="text/javascript">
2023-02-05 12:55:14 +00:00
var uojBlogUrl = '<?= HTML::blog_url(UOJUserBlog::id(), '') ?>';
var zan_link = uojBlogUrl;
2022-09-22 01:41:21 +00:00
</script>