]> 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 9a3e6f906fada8b09e49c208d74daa9f58294f07..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')">