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">
|
2016-09-15 23:03:58 +08:00
|
|
|
<title>@yield('title') - {{ option('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('skinlib') !!}
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
@yield('style')
|
|
|
|
</head>
|
|
|
|
|
2016-09-15 23:03:58 +08:00
|
|
|
<body class="hold-transition {{ option('color_scheme') }} layout-top-nav">
|
2016-07-21 22:01:57 +08:00
|
|
|
<div class="wrapper">
|
|
|
|
|
|
|
|
<header class="main-header">
|
|
|
|
<nav class="navbar navbar-static-top">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
2016-09-15 23:03:58 +08:00
|
|
|
<a href="{{ option('site_url') }}" class="navbar-brand">{{ option('site_name') }}</a>
|
2016-07-21 22:01:57 +08:00
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
|
|
|
|
<i class="fa fa-bars"></i>
|
|
|
|
</button>
|
|
|
|
</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-18 13:30:58 +08:00
|
|
|
<li class="active"><a href="{{ url('skinlib') }}">{{ trans('general.skinlib') }}</a></li>
|
|
|
|
<li><a href="{{ url('user/closet') }}">{{ trans('general.my-closet') }}</a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
@unless (isset($with_out_filter))
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
2016-09-18 13:30:58 +08:00
|
|
|
<i class="fa fa-filter" aria-hidden="true"></i> {{ trans('skinlib.master.filter') }} <span class="caret"></span>
|
2016-07-21 22:01:57 +08:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
2016-09-18 13:30:58 +08:00
|
|
|
<li><a href='?{{ isset($_GET["q"]) ? "q=$q&" : "" }}filter=skin&sort={{ $sort }}'>{{ trans('general.skin') }}<small>{{ trans('skinlib.index.any-model') }}</small></a></li>
|
|
|
|
<li><a href='?{{ isset($_GET["q"]) ? "q=$q&" : "" }}filter=steve&sort={{ $sort }}'>{{ trans('general.skin') }}<small>({{ trans('skinlib.index.steve-model') }})</small></a></li>
|
|
|
|
<li><a href='?{{ isset($_GET["q"]) ? "q=$q&" : "" }}filter=alex&sort={{ $sort }}'>{{ trans('general.skin') }}<small>({{ trans('skinlib.index.alex-model') }})</small></a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
<li class="divider"></li>
|
2016-09-18 13:30:58 +08:00
|
|
|
<li><a href='?{{ isset($_GET["q"]) ? "q=$q&" : "" }}filter=cape&sort={{ $sort }}'>{{ trans('general.cape') }}</a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
@if (!is_null($user))
|
|
|
|
<li class="divider"></li>
|
2016-09-18 13:30:58 +08:00
|
|
|
<li><a href="?filter=user&uid={{ $user->uid }}&sort={{ $sort }}">{{ trans('skinlib.master.my-upload') }}</a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
2016-09-18 13:30:58 +08:00
|
|
|
<i class="fa fa-sort-amount-desc" aria-hidden="true"></i> {{ trans('skinlib.master.sort') }} <span class="caret"></span>
|
2016-07-21 22:01:57 +08:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
2016-09-18 13:30:58 +08:00
|
|
|
<li><a href='?{{ isset($_GET["q"]) ? "q=$q&" : "" }}filter={{ $filter }}{{ isset($_GET['uid']) ? "&uid={$_GET['uid']}" : "" }}&sort=likes'>{{ trans('skinlib.index.most-likes') }}</a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
<li class="divider"></li>
|
2016-09-18 13:30:58 +08:00
|
|
|
<li><a href='?{{ isset($_GET["q"]) ? "q=$q&" : "" }}filter={{ $filter }}{{ isset($_GET['uid']) ? "&uid={$_GET['uid']}" : "" }}&sort=time'>{{ trans('skinlib.index.newest-uploaded') }}</a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
@endunless
|
|
|
|
</ul>
|
2016-09-10 17:02:47 +08:00
|
|
|
<form class="navbar-form navbar-left" role="search" action="{{ url('skinlib/search') }}">
|
2016-07-21 22:01:57 +08:00
|
|
|
<div class="form-group">
|
2016-09-18 13:30:58 +08:00
|
|
|
<input type="text" class="form-control" id="navbar-search-input" name="q" placeholder="{{ trans('skinlib.master.search-textures') }}" value="{{ $q or '' }}" />
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
<!-- Navbar Right Menu -->
|
2016-09-15 09:20:02 +08:00
|
|
|
<div class="navbar-custom-menu">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<!-- Language Menu -->
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
2016-09-15 23:03:58 +08:00
|
|
|
<i class="fa fa-language" aria-hidden="true"></i> {{ trans('general.langs') }} <span class="caret"></span>
|
2016-09-15 09:20:02 +08:00
|
|
|
</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-09-18 13:30:58 +08:00
|
|
|
<li><a href="{{ url('skinlib/upload') }}"><i class="fa fa-upload" aria-hidden="true"></i> {{ trans('skinlib.master.upload-new-skin') }}</a></li>
|
2016-09-15 09:20:02 +08:00
|
|
|
@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-->
|
|
|
|
<img src="{{ avatar($user, 25) }}" class="user-image" alt="User Image">
|
|
|
|
<!-- hidden-xs hides the username on small devices so only the image appears. -->
|
2016-09-15 23:03:58 +08:00
|
|
|
<span class="hidden-xs nickname">{{ bs_nickname($user) }}</span>
|
2016-09-15 09:20:02 +08:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<!-- The user image in the menu -->
|
|
|
|
<li class="user-header">
|
|
|
|
<img src="{{ avatar($user, 128) }}" alt="User Image">
|
|
|
|
<p>{{ $user->email }}</p>
|
|
|
|
</li>
|
|
|
|
<!-- Menu Footer-->
|
|
|
|
<li class="user-footer">
|
|
|
|
<div class="pull-left">
|
2016-09-15 23:03:58 +08:00
|
|
|
<a href="{{ url('user') }}" class="btn btn-default btn-flat">{{ trans('general.user-center') }}</a>
|
2016-09-15 09:20:02 +08:00
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
2016-09-15 23:03:58 +08:00
|
|
|
<a href="javascript:logout();" class="btn btn-default btn-flat">{{ trans('general.logout') }}</a>
|
2016-09-15 09:20:02 +08:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
@else {{-- Anonymous User --}}
|
|
|
|
<!-- User Account Menu -->
|
|
|
|
<li class="dropdown user user-menu">
|
|
|
|
<!-- Menu Toggle Button -->
|
|
|
|
<a href="{{ url('auth/login') }}">
|
|
|
|
<i class="fa fa-user"></i>
|
|
|
|
<!-- hidden-xs hides the username on small devices so only the image appears. -->
|
2016-09-15 23:03:58 +08:00
|
|
|
<span class="hidden-xs nickname">{{ trans('general.anonymous') }}</span>
|
2016-09-15 09:20:02 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-custom-menu -->
|
2016-07-21 22:01:57 +08:00
|
|
|
</div><!-- /.container-fluid -->
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
@yield('content')
|
|
|
|
|
|
|
|
<!-- Main Footer -->
|
|
|
|
<footer class="main-footer">
|
|
|
|
<div class="container">
|
2016-09-15 23:03:58 +08:00
|
|
|
@if (option('show_footer_copyright'))
|
2016-07-21 22:01:57 +08:00
|
|
|
<!-- 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-09-15 23:03:58 +08:00
|
|
|
{!! bs_copyright() !!}
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
</div><!-- ./wrapper -->
|
|
|
|
|
|
|
|
<!-- App Scripts -->
|
2016-09-15 11:04:08 +08:00
|
|
|
{!! bs_footer('skinlib') !!}
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
@yield('script')
|
|
|
|
</body>
|
|
|
|
</html>
|