]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
96b8c40
)
Added view override support
author
Dan Brown
<redacted>
Sun, 31 Dec 2017 16:25:58 +0000
(16:25 +0000)
committer
Dan Brown
<redacted>
Sun, 31 Dec 2017 16:25:58 +0000
(16:25 +0000)
Relates to #652
config/view.php
patch
|
blob
|
history
themes/.gitignore
[new file with mode: 0755]
patch
|
blob
diff --git
a/config/view.php
b/config/view.php
index e193ab61d910e0ce50230fc4616c5f9d9c9cdc33..8dc2841e748f035bd4860081ab6dfb760c922e53 100644
(file)
--- a/
config/view.php
+++ b/
config/view.php
@@
-1,5
+1,10
@@
<?php
+$viewPaths = [realpath(base_path('resources/views'))];
+if ($theme = env('APP_THEME', false)) {
+ array_unshift($viewPaths, base_path('themes/' . $theme));
+}
+
return [
/*
@@
-13,9
+18,7
@@
return [
|
*/
- 'paths' => [
- realpath(base_path('resources/views')),
- ],
+ 'paths' => $viewPaths,
/*
|--------------------------------------------------------------------------
diff --git a/themes/.gitignore
b/themes/.gitignore
new file mode 100755
(executable)
index 0000000..
d6b7ef3
--- /dev/null
+++ b/
themes/.gitignore
@@ -0,0
+1,2
@@
+*
+!.gitignore