* remove all magic methods, add type for class properties * refactor codes * fix all * refactor code * fix type * fix all * fix request is method * fix all * fix router * fix get page
19 lines
818 B
PHP
19 lines
818 B
PHP
<?php if (!defined('__TYPECHO_ADMIN__')) exit; ?>
|
|
<div class="typecho-head-nav clearfix" role="navigation">
|
|
<button class="menu-bar"><?php _e('菜单'); ?></button>
|
|
<nav id="typecho-nav-list">
|
|
<?php $menu->output(); ?>
|
|
</nav>
|
|
<div class="operate">
|
|
<?php \Typecho\Plugin::factory('admin/menu.php')->call('navBar'); ?><a title="<?php
|
|
if ($user->logged > 0) {
|
|
$logged = new \Typecho\Date($user->logged);
|
|
_e('最后登录: %s', $logged->word());
|
|
}
|
|
?>" href="<?php $options->adminUrl('profile.php'); ?>" class="author"><?php $user->screenName(); ?></a><a
|
|
class="exit" href="<?php $options->logoutUrl(); ?>"><?php _e('登出'); ?></a><a
|
|
href="<?php $options->siteUrl(); ?>"><?php _e('网站'); ?></a>
|
|
</div>
|
|
</div>
|
|
|