Commit 5092f2d3 authored by Micheal Mand's avatar Micheal Mand

Clean up backend layout

Replace Facade usage with helpers, clean up spacing and style, adjust head items to better match conventions
Signed-off-by: 's avatarMicheal Mand <micheal@kmdwebdesigns.com>
parent ce0a3843
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="{{ locale() }}">
<head> <head>
<base src="{{ URL::asset('/') }}" />
<meta charset="UTF-8"> <meta charset="UTF-8">
<title> <title>
@section('title') @section('title')
@setting('core::site-name') | Admin @setting('core::site-name') | Admin
@show @show
</title> </title>
<meta id="token" name="token" value="{{ csrf_token() }}" />
<meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="user-api-token" content="{{ $currentUser->getFirstApiKey() }}"> <meta name="user-api-token" content="{{ $currentUser->getFirstApiKey() }}">
<meta name="current-locale" content="{{ locale() }}"> <meta name="current-locale" content="{{ locale() }}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover">
<base href="{{ url('/') }}">
<link rel="canonical" href="{{ request()->url() }}">
@foreach($cssFiles as $css) @foreach($cssFiles as $css)
<link media="all" type="text/css" rel="stylesheet" href="{{ URL::asset($css) }}"> <link media="all" type="text/css" rel="stylesheet" href="{{ asset($css) }}">
@endforeach @endforeach
<link media="all" type="text/css" rel="stylesheet" href="{{ mix('css/app.css') }}"> <link media="all" type="text/css" rel="stylesheet" href="{{ mix('css/app.css') }}">
{!! Theme::script('vendor/jquery/jquery.min.js') !!} {!! Theme::script('vendor/jquery/jquery.min.js') !!}
...@@ -39,9 +40,9 @@ ...@@ -39,9 +40,9 @@
<![endif]--> <![endif]-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
@routes @routes
</head> </head>
<body class="{{ config('asgard.core.core.skin', 'skin-blue') }} sidebar-mini" style="padding-bottom: 0 !important;"> <body class="{{ config('asgard.core.core.skin', 'skin-blue') }} sidebar-mini" style="padding-bottom: 0 !important;">
<div class="wrapper" id="app"> <div class="wrapper" id="app">
<header class="main-header"> <header class="main-header">
<a href="{{ route('dashboard.index') }}" class="logo"> <a href="{{ route('dashboard.index') }}" class="logo">
<span class="logo-mini"> <span class="logo-mini">
...@@ -70,12 +71,12 @@ ...@@ -70,12 +71,12 @@
</aside><!-- /.right-side --> </aside><!-- /.right-side -->
@include('partials.footer') @include('partials.footer')
@include('partials.right-sidebar') @include('partials.right-sidebar')
</div><!-- ./wrapper --> </div><!-- ./wrapper -->
@foreach($jsFiles as $js) @foreach($jsFiles as $js)
<script src="{{ URL::asset($js) }}" type="text/javascript"></script> <script src="{{ asset($js) }}" type="text/javascript"></script>
@endforeach @endforeach
<script> <script>
window.AsgardCMS = { window.AsgardCMS = {
translations: {!! $staticTranslations !!}, translations: {!! $staticTranslations !!},
locales: {!! json_encode(LaravelLocalization::getSupportedLocales()) !!}, locales: {!! json_encode(LaravelLocalization::getSupportedLocales()) !!},
...@@ -86,13 +87,13 @@ ...@@ -86,13 +87,13 @@
hideDefaultLocaleInURL: '{{ config('laravellocalization.hideDefaultLocaleInURL') }}', hideDefaultLocaleInURL: '{{ config('laravellocalization.hideDefaultLocaleInURL') }}',
filesystem: '{{ config('asgard.media.config.filesystem') }}' filesystem: '{{ config('asgard.media.config.filesystem') }}'
}; };
</script> </script>
<script src="{{ mix('js/manifest.js') }}"></script> <script src="{{ mix('js/manifest.js') }}"></script>
<script src="{{ mix('js/vendor.js') }}"></script> <script src="{{ mix('js/vendor.js') }}"></script>
<script src="{{ mix('js/app.js') }}"></script> <script src="{{ mix('js/app.js') }}"></script>
<?php if (is_module_enabled('Notification')): ?> @if(is_module_enabled('Notification'))
<script src="https://js.pusher.com/4.1.0/pusher.min.js" integrity="sha384-e9MoFh6Cw/uluf+NZ6MJwfJ1Dm7UOvJf9oTBxxCYDyStJeeAF0q53ztnEbLLDSQP" crossorigin="anonymous"></script> <script src="https://js.pusher.com/4.1.0/pusher.min.js" integrity="sha384-e9MoFh6Cw/uluf+NZ6MJwfJ1Dm7UOvJf9oTBxxCYDyStJeeAF0q53ztnEbLLDSQP" crossorigin="anonymous"></script>
<script src="{{ Module::asset('notification:js/pusherNotifications.js') }}"></script> <script src="{{ Module::asset('notification:js/pusherNotifications.js') }}"></script>
<script> <script>
...@@ -100,22 +101,22 @@ ...@@ -100,22 +101,22 @@
pusherKey: '{{ config('broadcasting.connections.pusher.key') }}', pusherKey: '{{ config('broadcasting.connections.pusher.key') }}',
pusherCluster: '{{ config('broadcasting.connections.pusher.options.cluster') }}', pusherCluster: '{{ config('broadcasting.connections.pusher.options.cluster') }}',
pusherEncrypted: {{ config('broadcasting.connections.pusher.options.encrypted') }}, pusherEncrypted: {{ config('broadcasting.connections.pusher.options.encrypted') }},
loggedInUserId: {{ $currentUser->id }}, loggedInUserId: {{ $currentUser->id }}
}); });
</script> </script>
<?php endif; ?> @endif
<?php if (config('asgard.core.core.ckeditor-config-file-path') !== ''): ?> @if(config('asgard.core.core.ckeditor-config-file-path') !== '')
<script> <script>
$('.ckeditor').each(function() { $('.ckeditor').each(function () {
CKEDITOR.replace($(this).attr('name'), { CKEDITOR.replace($(this).attr('name'), {
customConfig: '{{ config('asgard.core.core.ckeditor-config-file-path') }}' customConfig: '{{ config('asgard.core.core.ckeditor-config-file-path') }}'
}); });
}); });
</script> </script>
<?php endif; ?> @endif
@section('scripts') @section('scripts')
@show @show
@stack('js-stack') @stack('js-stack')
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment