BookStack/resources/views/layouts/base.blade.php

59 lines
1.8 KiB
PHP
Raw Normal View History

2015-07-12 19:01:42 +00:00
<!DOCTYPE html>
<html lang="{{ config('app.lang') }}"
dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
class="{{ setting()->getForCurrentUser('dark-mode-enabled') ? 'dark-mode ' : '' }}@yield('body-class')">
2015-07-12 19:01:42 +00:00
<head>
<title>{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}</title>
<!-- Meta -->
2015-07-12 19:01:42 +00:00
<meta name="viewport" content="width=device-width">
2015-08-12 22:42:42 +00:00
<meta name="token" content="{{ csrf_token() }}">
<meta name="base-url" content="{{ url('/') }}">
2015-10-18 18:40:33 +00:00
<meta charset="utf-8">
<!-- Social Cards Meta -->
<meta property="og:title" content="{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}">
<meta property="og:url" content="{{ url()->current() }}">
@stack('social-meta')
<!-- Styles and Fonts -->
<link rel="stylesheet" href="{{ versioned_asset('dist/styles.css') }}">
<link rel="stylesheet" media="print" href="{{ versioned_asset('dist/print-styles.css') }}">
2015-07-12 20:31:15 +00:00
@yield('head')
<!-- Custom Styles & Head Content -->
@include('common.custom-styles')
@include('common.custom-head')
@stack('head')
<!-- Translations for JS -->
@stack('translations')
</head>
<body class="@yield('body-class')">
2015-08-31 10:43:28 +00:00
@include('common.skip-to-content')
@include('common.notifications')
@include('common.header')
2015-07-21 21:11:30 +00:00
<div id="content" components="@yield('content-components')" class="block">
2015-07-12 19:01:42 +00:00
@yield('content')
</div>
2015-07-12 19:01:42 +00:00
@include('common.footer')
<div back-to-top class="primary-background print-hidden">
<div class="inner">
@icon('chevron-up') <span>{{ trans('common.back_to_top') }}</span>
</div>
</div>
@yield('bottom')
<script src="{{ versioned_asset('dist/app.js') }}"></script>
@yield('scripts')
2015-07-12 19:01:42 +00:00
</body>
</html>