管理菜单修复

This commit is contained in:
Skywt2003 2021-09-24 22:48:39 +08:00
parent a65df1965a
commit a1e21daff5
3 changed files with 25 additions and 2 deletions

View File

@ -11,7 +11,6 @@
<span class="font-weight-900"><?php $comments->author(); ?></span> <span class="font-weight-900"><?php $comments->author(); ?></span>
<br> <br>
<span class="small"><?php $comments->date('F jS, Y'); ?> at <?php $comments->date('h:i a'); ?></span> <span class="small"><?php $comments->date('F jS, Y'); ?> at <?php $comments->date('h:i a'); ?></span>
<!-- <p><?php #$comments->content(); ?></p> -->
</div> </div>
</div> </div>
</div> </div>

View File

@ -67,7 +67,7 @@
</a> </a>
<?php endif; ?> <?php endif; ?>
<?php if ($this->is('page')): ?> <?php if ($this->is('page')): ?>
<a class="badge badge-primary ml-1 mr-1" href="<?php $this->options->siteUrl();?>admin/write-post.php?cid=<?php $this->cid();?>" title="Edit"> <a class="badge badge-primary ml-1 mr-1" href="<?php $this->options->siteUrl();?>admin/write-page.php?cid=<?php $this->cid();?>" title="Edit">
<i class="far fa-edit"></i> <i class="far fa-edit"></i>
<?php _e('编辑此页'); ?> <?php _e('编辑此页'); ?>
</a> </a>

View File

@ -57,6 +57,30 @@ $this->need('functions.php'); // 不知道为啥,似乎模版页面不会自
<![endif]--> <![endif]-->
<body> <body>
<?php if ($this->user->hasLogin()): ?>
<nav class="container fixed-bottom p-2 navbar navbar-light">
<div>
欢迎,<a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin'); ?>" title="Backstage">
<i class="fas fa-user-cog"></i>
<?php _e('网站后台'); ?>
</a>
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->siteUrl('admin/options-theme.php'); ?>" title="Settings">
<i class="far fa-cog"></i>
<?php _e('主题设置'); ?>
</a>
<a class="badge badge-default ml-1 mr-1" href="#" onclick="javascript:location.reload();" title="Refresh">
<i class="fas fa-redo"></i>
<?php _e('刷新'); ?>
</a>
<a class="badge badge-default ml-1 mr-1" href="<?php $this->options->logoutUrl(); ?>" title="Logout">
<i class="fas fa-sign-out-alt"></i>
<?php _e('退出'); ?>
</a>
</div>
</nav>
<?php endif; ?>
<div class="flex-container"> <div class="flex-container">
<header id="header" class="clearfix mb-4"> <header id="header" class="clearfix mb-4">
<div class="container"> <div class="container">