]> BookStack Code Mirror - bookstack/blobdiff - resources/views/base.blade.php
Merge branch 'footer-links' of git://github.com/james-geiger/BookStack into james...
[bookstack] / resources / views / base.blade.php
index 07548162067404fa82061695c6753fe5bd15e27c..29e4acee7bf8355f7bbda9b17f240e1483cf001f 100644 (file)
@@ -1,5 +1,7 @@
 <!DOCTYPE html>
-<html lang="{{ config('app.lang') }}" class="@yield('body-class')">
+<html lang="{{ config('app.lang') }}"
+      dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
+      class="{{ setting()->getForCurrentUser('dark-mode-enabled') ? 'dark-mode ' : '' }}@yield('body-class')">
 <head>
     <title>{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}</title>
 
@@ -23,7 +25,6 @@
 
     <!-- Translations for JS -->
     @stack('translations')
-
 </head>
 <body class="@yield('body-class')">
 
@@ -34,6 +35,8 @@
         @yield('content')
     </div>
 
+    @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>