]> BookStack Code Mirror - bookstack/blobdiff - config/view.php
Updated 'Spanish Argentina' translation.
[bookstack] / config / view.php
index e193ab61d910e0ce50230fc4616c5f9d9c9cdc33..e9a96c8ab8df3c04d6de5801b57920b4ec6706d9 100644 (file)
@@ -1,7 +1,25 @@
 <?php
 
+$viewPaths = [realpath(base_path('resources/views'))];
+if ($theme = env('APP_THEME', false)) {
+    array_unshift($viewPaths, base_path('themes/' . $theme));
+}
+
 return [
 
+    /*
+    |--------------------------------------------------------------------------
+    | App theme
+    |--------------------------------------------------------------------------
+    |
+    | This option defines the theme to use for the application. When a theme
+    | is set there mush be a `themes/<theme_name>` folder to hold the
+    | custom theme overrides.
+    |
+    */
+
+    'theme' => env('APP_THEME', false),
+
     /*
     |--------------------------------------------------------------------------
     | View Storage Paths
@@ -13,9 +31,7 @@ return [
     |
     */
 
-    'paths' => [
-        realpath(base_path('resources/views')),
-    ],
+    'paths' => $viewPaths,
 
     /*
     |--------------------------------------------------------------------------