]> BookStack Code Mirror - bookstack/blob - resources/views/layouts/base.blade.php
Comments: Added wysiwyg link selector, updated tests, removed command
[bookstack] / resources / views / layouts / base.blade.php
1 <!DOCTYPE html>
2 <html lang="{{ isset($locale) ? $locale->htmlLang() : config('app.default_locale') }}"
3       dir="{{ isset($locale) ? $locale->htmlDirection() : 'auto' }}"
4       class="{{ setting()->getForCurrentUser('dark-mode-enabled') ? 'dark-mode ' : '' }}">
5 <head>
6     <title>{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}</title>
7
8     <!-- Meta -->
9     <meta charset="utf-8">
10     <meta name="viewport" content="width=device-width">
11     <meta name="token" content="{{ csrf_token() }}">
12     <meta name="base-url" content="{{ url('/') }}">
13     <meta name="theme-color" content="{{(setting()->getForCurrentUser('dark-mode-enabled') ? setting('app-color-dark') : setting('app-color'))}}"/>
14
15     <!-- Social Cards Meta -->
16     <meta property="og:title" content="{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}">
17     <meta property="og:url" content="{{ url()->current() }}">
18     @stack('social-meta')
19
20     <!-- Styles -->
21     <link rel="stylesheet" href="{{ versioned_asset('dist/styles.css') }}">
22
23     <!-- Icons -->
24     <link rel="icon" type="image/png" sizes="256x256" href="{{ setting('app-icon') ?: url('/icon.png') }}">
25     <link rel="icon" type="image/png" sizes="180x180" href="{{ setting('app-icon-180') ?: url('/icon-180.png') }}">
26     <link rel="apple-touch-icon" sizes="180x180" href="{{ setting('app-icon-180') ?: url('/icon-180.png') }}">
27     <link rel="icon" type="image/png" sizes="128x128" href="{{ setting('app-icon-128') ?: url('/icon-128.png') }}">
28     <link rel="icon" type="image/png" sizes="64x64" href="{{ setting('app-icon-64') ?: url('/icon-64.png') }}">
29     <link rel="icon" type="image/png" sizes="32x32" href="{{ setting('app-icon-32') ?: url('/icon-32.png') }}">
30
31     <!-- PWA -->
32     <link rel="manifest" href="{{ url('/manifest.json') }}">
33     <meta name="mobile-web-app-capable" content="yes">
34
35     @yield('head')
36
37     <!-- Custom Styles & Head Content -->
38     @include('layouts.parts.custom-styles')
39     @include('layouts.parts.custom-head')
40
41     @stack('head')
42
43     <!-- Translations for JS -->
44     @stack('translations')
45 </head>
46 <body
47     @if(setting()->getForCurrentUser('ui-shortcuts-enabled', false))
48         component="shortcuts"
49         option:shortcuts:key-map="{{ \BookStack\Settings\UserShortcutMap::fromUserPreferences()->toJson() }}"
50     @endif
51       class="@stack('body-class')">
52
53     @include('layouts.parts.base-body-start')
54     @include('layouts.parts.skip-to-content')
55     @include('layouts.parts.notifications')
56     @include('layouts.parts.header')
57
58     <div id="content" components="@yield('content-components')" class="block">
59         @yield('content')
60     </div>
61
62     @include('layouts.parts.footer')
63
64     <div component="back-to-top" class="back-to-top print-hidden">
65         <div class="inner">
66             @icon('chevron-up') <span>{{ trans('common.back_to_top') }}</span>
67         </div>
68     </div>
69
70     @yield('bottom')
71     @stack('post-app-html')
72
73     @if($cspNonce ?? false)
74         <script src="{{ versioned_asset('dist/app.js') }}" nonce="{{ $cspNonce }}"></script>
75     @endif
76     @yield('scripts')
77     @stack('post-app-scripts')
78
79     @include('layouts.parts.base-body-end')
80 </body>
81 </html>