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>{{ 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-15 11:04:08 +08:00
|
|
|
{!! bs_header('index') !!}
|
2016-07-21 22:01:57 +08:00
|
|
|
|
2016-08-06 18:48:01 +08:00
|
|
|
<style>
|
|
|
|
.wrapper {
|
|
|
|
background-image: url('{{ Option::get('home_pic_url') }}');
|
|
|
|
}
|
|
|
|
</style>
|
2016-07-21 22:01:57 +08:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="hold-transition {{ Option::get('color_scheme') }} layout-top-nav">
|
2016-08-06 18:48:01 +08:00
|
|
|
<div class="wrapper">
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
<header class="main-header">
|
|
|
|
<nav class="navbar navbar-static-top">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<a href="{{ Option::get('site_url') }}" class="navbar-brand">{{ Option::get('site_name') }}</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
|
<div class="collapse navbar-collapse pull-left" id="navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
2016-09-15 09:20:02 +08:00
|
|
|
<li class="active"><a href="{{ url('/') }}">{{ trans('index.index') }}</a></li>
|
|
|
|
<li><a href="{{ url('skinlib') }}">{{ trans('index.skinlib') }}</a></li>
|
|
|
|
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-language" aria-hidden="true"></i> {{ trans('index.langs') }} <span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
@foreach(config('locales') as $locale => $lang)
|
|
|
|
<li><a href="{{ url('/locale/'.$locale) }}">{{ $lang }}</a></li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</li>
|
2016-07-21 22:01:57 +08:00
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
<!-- Navbar Right Menu -->
|
|
|
|
<div class="navbar-custom-menu">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
@if (!is_null($user))
|
|
|
|
<!-- User Account Menu -->
|
|
|
|
<li class="dropdown user user-menu">
|
|
|
|
<!-- Menu Toggle Button -->
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<!-- The user image in the navbar-->
|
2016-09-05 22:18:34 +08:00
|
|
|
<img src="{{ avatar($user, 25) }}" class="user-image" alt="User Image">
|
2016-07-21 22:01:57 +08:00
|
|
|
<!-- 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-15 09:20:02 +08:00
|
|
|
<a href="{{ url('user') }}" class="btn btn-default btn-flat">{{ trans('index.user-center') }}</a>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
2016-09-15 09:20:02 +08:00
|
|
|
<a href="javascript:logout();" class="btn btn-default btn-flat">{{ trans('index.logout') }}</a>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
@else {{-- Anonymous User --}}
|
|
|
|
<!-- User Account Menu -->
|
|
|
|
<li class="dropdown user user-menu">
|
2016-09-15 09:20:02 +08:00
|
|
|
<a href="{{ url('auth/login') }}" class="btn btn-login">{{ trans('index.login') }}</a>
|
2016-07-21 22:01:57 +08:00
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-custom-menu -->
|
|
|
|
</div><!-- /.container-fluid -->
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<!-- Full Width Column -->
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<div class="container">
|
|
|
|
<div class="splash">
|
|
|
|
<h1 class="splash-head">{{ Option::get('site_name') }}</h1>
|
|
|
|
<p class="splash-subhead">
|
|
|
|
{{ Option::get('site_description') }}
|
|
|
|
</p>
|
|
|
|
<p>
|
2016-09-10 17:02:47 +08:00
|
|
|
@if (is_null($user))
|
2016-09-15 09:20:02 +08:00
|
|
|
<a href="{{ url('auth/register') }}" class="button">{{ trans('index.register') }}</a>
|
2016-09-10 17:02:47 +08:00
|
|
|
@else
|
2016-09-15 09:20:02 +08:00
|
|
|
<a href="{{ url('user') }}" class="button">{{ trans('index.user-center') }}</a>
|
2016-09-10 17:02:47 +08:00
|
|
|
@endif
|
2016-07-21 22:01:57 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.content-wrapper -->
|
|
|
|
|
|
|
|
<!-- Main Footer -->
|
|
|
|
<footer class="main-footer">
|
|
|
|
<div class="container text-center">
|
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
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
</div><!-- ./wrapper -->
|
|
|
|
|
|
|
|
<!-- App Scripts -->
|
2016-09-15 11:04:08 +08:00
|
|
|
{!! bs_footer() !!}
|
2016-07-21 22:01:57 +08:00
|
|
|
</body>
|
|
|
|
</html>
|