S2OJ/uoj/1/app/views/blog-nav.php

23 lines
978 B
PHP
Raw Normal View History

2016-11-17 02:08:31 +00:00
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">导航</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
2017-03-30 00:03:31 +00:00
<a class="navbar-brand" href="<?= HTML::blog_url(UOJContext::userid(), '/')?>"><?= UOJContext::userid() ?></a>
2016-11-17 02:08:31 +00:00
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
2017-03-30 00:03:31 +00:00
<li><a href="<?= HTML::blog_url(UOJContext::userid(), '/archive')?>">日志</a></li>
<li><a href="<?= HTML::blog_url(UOJContext::userid(), '/aboutme')?>">关于我</a></li>
2016-11-17 02:08:31 +00:00
<li><a href="<?= HTML::url('/') ?>">UOJ</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<script type="text/javascript">
var uojBlogUrl = '<?= HTML::blog_url(UOJContext::userid(), '')?>';
</script>