2016-07-21 22:01:57 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<title>@yield('title') - {{ Option::get('site_name') }}</title>
|
2016-09-05 22:18:34 +08:00
|
|
|
<link rel="shortcut icon" href="{{ assets('images/favicon.ico') }}">
|
2016-07-21 22:01:57 +08:00
|
|
|
<!-- Tell the browser to be responsive to screen width -->
|
|
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
|
|
<!-- App Styles -->
|
2016-09-05 22:18:34 +08:00
|
|
|
<link rel="stylesheet" href="{{ assets('css/app.min.css') }}">
|
2016-07-21 22:01:57 +08:00
|
|
|
<!-- AdminLTE Skins -->
|
2016-09-05 22:18:34 +08:00
|
|
|
<link rel="stylesheet" href="{{ assets('libs/skins/'.Option::get('color_scheme').'.min.css') }}">
|
2016-07-21 22:01:57 +08:00
|
|
|
|
2016-09-05 22:18:34 +08:00
|
|
|
<link rel="stylesheet" href="{{ assets('css/user.css') }}">
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
@yield('style')
|
|
|
|
|
2016-07-23 21:51:25 +08:00
|
|
|
<style>{!! Option::get('custom_css') !!}</style>
|
2016-07-21 22:01:57 +08:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="hold-transition {{ Option::get('color_scheme') }} sidebar-mini">
|
|
|
|
<div class="wrapper">
|
|
|
|
|
|
|
|
<!-- Main Header -->
|
|
|
|
<header class="main-header">
|
|
|
|
|
|
|
|
<!-- Logo -->
|
|
|
|
<a href="{{ Option::get('site_url') }}" class="logo">
|
|
|
|
<!-- mini logo for sidebar mini 50x50 pixels -->
|
|
|
|
<span class="logo-mini"> <i class="fa fa-bookmark"></i> </span>
|
|
|
|
<!-- logo for regular state and mobile devices -->
|
|
|
|
<span class="logo-lg">{{ Option::get('site_name') }}</span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- Header Navbar -->
|
|
|
|
<nav class="navbar navbar-static-top" role="navigation">
|
|
|
|
<!-- Sidebar toggle button-->
|
|
|
|
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
</a>
|
|
|
|
<!-- Navbar Right Menu -->
|
|
|
|
<div class="navbar-custom-menu">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<!-- User Account Menu -->
|
|
|
|
<li class="dropdown user user-menu">
|
|
|
|
<!-- Menu Toggle Button -->
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-user"></i>
|
|
|
|
<!-- hidden-xs hides the username on small devices so only the image appears. -->
|
2016-08-07 16:56:54 +08:00
|
|
|
<span class="hidden-xs nickname">{{ Utils::getNameOrEmail($user) }}</span>
|
2016-07-21 22:01:57 +08:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<!-- The user image in the menu -->
|
|
|
|
<li class="user-header">
|
2016-09-05 22:18:34 +08:00
|
|
|
<img src="{{ avatar($user, 128) }}" alt="User Image">
|
2016-08-16 22:52:00 +08:00
|
|
|
<p>{{ $user->email }}</p>
|
2016-07-21 22:01:57 +08:00
|
|
|
</li>
|
|
|
|
<!-- Menu Footer-->
|
|
|
|
<li class="user-footer">
|
|
|
|
<div class="pull-left">
|
2016-09-10 17:02:47 +08:00
|
|
|
<a href="{{ url('user/profile') }}" class="btn btn-default btn-flat">我的资料</a>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
|
|
|
<a href="javascript:logout();" class="btn btn-default btn-flat">登出</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<!-- Left side column. contains the logo and sidebar -->
|
|
|
|
<aside class="main-sidebar">
|
|
|
|
|
|
|
|
<!-- sidebar: style can be found in sidebar.less -->
|
|
|
|
<section class="sidebar">
|
|
|
|
|
|
|
|
<!-- Sidebar user panel (optional) -->
|
|
|
|
<div class="user-panel">
|
|
|
|
<div class="pull-left image">
|
2016-09-05 22:18:34 +08:00
|
|
|
<img src="{{ avatar($user, 45) }}" alt="User Image">
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
<div class="pull-left info">
|
2016-08-07 16:56:54 +08:00
|
|
|
<p class="nickname">{{ Utils::getNameOrEmail($user) }}</p>
|
2016-07-21 22:01:57 +08:00
|
|
|
<i class="fa fa-circle text-success"></i> Online
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Sidebar Menu -->
|
|
|
|
<ul class="sidebar-menu">
|
|
|
|
<li class="header">用户中心</li>
|
|
|
|
<?php $menu = require BASE_DIR."/config/menu.php"; ?>
|
|
|
|
|
|
|
|
@foreach ($menu['user'] as $key => $value)
|
|
|
|
<li class="{{ ($__env->yieldContent('title') == $value['title']) ? 'active' : '' }}">
|
2016-09-10 17:02:47 +08:00
|
|
|
<a href="{{ url($value['link']) }}"><i class="fa {{ $value['icon'] }}"></i> <span>{{ $value['title'] }}</span></a>
|
2016-07-21 22:01:57 +08:00
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
<li class="header">浏览</li>
|
2016-09-10 17:02:47 +08:00
|
|
|
<li><a href="{{ url('skinlib') }}"><i class="fa fa-archive"></i> <span>皮肤库</span></a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
@if ($user->is_admin)
|
|
|
|
<li class="header">管理</li>
|
2016-09-10 17:02:47 +08:00
|
|
|
<li><a href="{{ url('admin') }}"><i class="fa fa-cog"></i> <span>管理面板</span></a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
@endif
|
|
|
|
</ul><!-- /.sidebar-menu -->
|
|
|
|
</section>
|
|
|
|
<!-- /.sidebar -->
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
@yield('content')
|
|
|
|
|
|
|
|
<!-- Main Footer -->
|
|
|
|
<footer class="main-footer">
|
|
|
|
@if (Option::get('show_footer_copyright'))
|
|
|
|
<!-- To the right -->
|
|
|
|
<div class="pull-right hidden-xs">
|
|
|
|
Powered with ❤ by <a href="https://github.com/printempw/blessing-skin-server">Blessing Skin Server</a>.
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<!-- Default to the left -->
|
2016-08-15 22:07:59 +08:00
|
|
|
{!! Utils::getStringReplaced(Option::get('copyright_text'), ['{site_name}' => Option::get('site_name'), '{site_url}' => Option::get('site_url')]) !!}
|
2016-07-21 22:01:57 +08:00
|
|
|
</footer>
|
|
|
|
|
|
|
|
</div><!-- ./wrapper -->
|
|
|
|
|
|
|
|
<!-- App Scripts -->
|
2016-09-05 22:18:34 +08:00
|
|
|
<script type="text/javascript" src="{{ assets('js/app.min.js') }}"></script>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
2016-09-05 22:18:34 +08:00
|
|
|
<script type="text/javascript" src="{{ assets('js/user.js') }}"></script>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
@yield('script')
|
|
|
|
|
2016-09-05 22:18:34 +08:00
|
|
|
@if (Session::has('msg'))
|
2016-07-23 15:20:10 +08:00
|
|
|
<script>
|
2016-09-05 22:18:34 +08:00
|
|
|
toastr.info('{{ Session::pull('msg') }}');
|
2016-07-23 15:20:10 +08:00
|
|
|
</script>
|
|
|
|
@endif
|
|
|
|
|
2016-07-23 21:51:25 +08:00
|
|
|
<script>{!! Option::get('custom_js') !!}</script>
|
2016-07-21 22:01:57 +08:00
|
|
|
</body>
|
|
|
|
</html>
|