2016-09-02 10:42:05 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="generator" content="{{ config('app.name') }} v{{ config('app.version') }} (framework v{{ App::VERSION() }})">
|
|
|
|
|
2016-09-05 15:28:56 +01:00
|
|
|
<title>@yield('title') | {{ UserConfig::get('app_name') }}</title>
|
2017-09-06 10:33:22 +01:00
|
|
|
<base href="{{ $appBaseUrl }}">
|
2016-09-02 10:42:05 +01:00
|
|
|
|
2016-09-08 23:22:29 +01:00
|
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
|
2016-09-02 10:42:05 +01:00
|
|
|
{{-- Cannot use $theme_url here: if a theme uses the base layout, it would also have to provide all these dependencies! --}}
|
2016-09-02 10:56:07 +01:00
|
|
|
{{-- As these files are shipped with core (not a theme) use the main app.version instead of the current theme's version --}}
|
2017-03-22 09:25:14 +00:00
|
|
|
@if (App::environment() == 'production')
|
2017-03-22 16:55:39 +00:00
|
|
|
<link href="css/blue-twilight.min.css?v={{ $app_version_url }}" rel="stylesheet" />
|
2017-03-22 09:25:14 +00:00
|
|
|
@else
|
2017-03-22 16:55:39 +00:00
|
|
|
<link href="css/blue-twilight.css?v={{ $app_version_url }}" rel="stylesheet" />
|
2016-09-02 12:36:34 +01:00
|
|
|
@endif
|
|
|
|
|
2017-04-18 20:07:03 +01:00
|
|
|
@if (Theme::hasStylesheet())
|
|
|
|
<link href="{{ $theme_url }}/theme.css?v={{ $app_version_url }}" rel="stylesheet">
|
|
|
|
@endif
|
|
|
|
|
2016-09-02 10:42:05 +01:00
|
|
|
@stack('styles')
|
|
|
|
</head>
|
|
|
|
<body>
|
2017-03-24 14:43:53 +00:00
|
|
|
@include(Theme::viewName('partials.navbar'))
|
2016-09-02 10:42:05 +01:00
|
|
|
|
2017-03-22 16:55:39 +00:00
|
|
|
{{-- Render breadcrumb within a container if present in the sub-view --}}
|
|
|
|
@if (View::hasSection('breadcrumb'))
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
@yield('breadcrumb')
|
|
|
|
</ol>
|
2016-10-03 14:11:24 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-22 16:55:39 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2016-10-03 14:11:24 +01:00
|
|
|
|
2017-03-22 16:55:39 +00:00
|
|
|
@if (isset($error))
|
|
|
|
<div class="container">
|
2017-04-08 09:41:41 +01:00
|
|
|
<div class="alert alert-danger alert-dismissable fade show" role="alert">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2017-03-22 16:55:39 +00:00
|
|
|
<strong><i class="fa fa-exclamation-circle fa-fw"></i></strong> {{ $error }}
|
2016-09-05 14:06:41 +01:00
|
|
|
</div>
|
2017-03-22 16:55:39 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2016-09-05 14:06:41 +01:00
|
|
|
|
2017-03-22 16:55:39 +00:00
|
|
|
@if (isset($warning))
|
|
|
|
<div class="container">
|
2017-04-08 09:41:41 +01:00
|
|
|
<div class="alert alert-warning alert-dismissable fade show" role="alert">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2017-03-22 16:55:39 +00:00
|
|
|
<strong><i class="fa fa-warning fa-fw"></i></strong> {{ $warning }}
|
2016-09-05 15:28:56 +01:00
|
|
|
</div>
|
2017-03-22 16:55:39 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2016-09-05 15:28:56 +01:00
|
|
|
|
2017-03-22 16:55:39 +00:00
|
|
|
@if (isset($success))
|
|
|
|
<div class="container">
|
2017-04-08 09:41:41 +01:00
|
|
|
<div class="alert alert-success alert-dismissable fade show" role="alert">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2017-03-22 16:55:39 +00:00
|
|
|
<strong><i class="fa fa-info-circle fa-fw"></i></strong> {{ $success }}
|
2016-09-06 14:45:51 +01:00
|
|
|
</div>
|
2017-03-22 16:55:39 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2016-09-06 14:45:51 +01:00
|
|
|
|
2017-03-22 16:55:39 +00:00
|
|
|
@if (isset($info))
|
|
|
|
<div class="container">
|
2017-04-08 09:41:41 +01:00
|
|
|
<div class="alert alert-info alert-dismissable fade show" role="alert">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2017-03-22 16:55:39 +00:00
|
|
|
<strong><i class="fa fa-info-circle fa-fw"></i></strong> {{ $info }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2016-10-05 16:31:37 +01:00
|
|
|
|
2017-03-22 16:55:39 +00:00
|
|
|
@yield('content')
|
|
|
|
|
2017-09-10 15:10:45 +01:00
|
|
|
@can('photo.quick_upload')
|
|
|
|
@include(Theme::viewName('partials.quick_upload'))
|
|
|
|
@endcan
|
|
|
|
|
2017-03-22 16:55:39 +00:00
|
|
|
@if (isset($is_admin) && $is_admin)
|
|
|
|
@include(\App\Facade\Theme::viewName('partials.copyright_admin'))
|
|
|
|
@elseif (!\App\Facade\UserConfig::get('remove_copyright'))
|
|
|
|
@include(\App\Facade\Theme::viewName('partials.copyright_gallery'))
|
|
|
|
@endif
|
2016-09-02 10:42:05 +01:00
|
|
|
|
|
|
|
{{-- Cannot use $theme_url here: if a theme uses the base layout, it would also have to provide all these dependencies! --}}
|
2016-09-02 10:56:07 +01:00
|
|
|
{{-- As these files are shipped with core (not a theme) use the main app.version instead of the current theme's version --}}
|
2017-03-22 16:55:39 +00:00
|
|
|
@if (App::environment() == 'production')
|
|
|
|
<script type="text/javascript" src="js/blue-twilight.min.js?v={{ $app_version_url }}"></script>
|
|
|
|
@else
|
|
|
|
<script type="text/javascript" src="js/blue-twilight.js?v={{ $app_version_url }}"></script>
|
|
|
|
@endif
|
2016-09-08 23:22:29 +01:00
|
|
|
<script type="text/javascript">
|
2016-10-28 12:59:36 +01:00
|
|
|
function _bt_showLoadingModal() {
|
|
|
|
bootbox.dialog({
|
|
|
|
closeButton: false,
|
|
|
|
message: '<center><img src="{{ asset('ripple.svg') }}"/></center>',
|
|
|
|
title: '@lang('global.please_wait')'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-09-08 23:22:29 +01:00
|
|
|
$.ajaxSetup({
|
|
|
|
headers: {
|
|
|
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
|
|
}
|
|
|
|
});
|
2017-09-10 15:46:16 +01:00
|
|
|
|
|
|
|
// Quick upload
|
|
|
|
$(document).ready(function()
|
|
|
|
{
|
|
|
|
$('#quick-upload-form').submit(function()
|
|
|
|
{
|
|
|
|
$('.modal-footer', '#quick-upload-modal').html('<center><img src="{{ asset('ripple.svg') }}"/></center>');
|
|
|
|
});
|
2018-08-11 09:20:40 +01:00
|
|
|
|
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
2017-09-10 15:46:16 +01:00
|
|
|
});
|
2016-09-08 23:22:29 +01:00
|
|
|
</script>
|
2016-09-02 10:42:05 +01:00
|
|
|
@stack('scripts')
|
2016-10-28 16:07:24 +01:00
|
|
|
{!! \App\Facade\UserConfig::get('analytics_code') !!}
|
2016-09-02 10:42:05 +01:00
|
|
|
</body>
|
|
|
|
</html>
|