Dan Brown

Fixed theme color elements not showing on new instance

Also cleaned notification session access  
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
5 */ 5 */
6 return [ 6 return [
7 7
8 - 'app-editor' => 'wysiwyg' 8 + 'app-editor' => 'wysiwyg',
9 + 'app-color' => '#0288D1',
10 + 'app-color-light' => 'rgba(21, 101, 192, 0.15)'
9 11
10 ]; 12 ];
...\ No newline at end of file ...\ No newline at end of file
......
1 -@if(Setting::get('app-color')) 1 +<style>
2 - <style>
3 header, #back-to-top, .primary-background { 2 header, #back-to-top, .primary-background {
4 background-color: {{ Setting::get('app-color') }} !important; 3 background-color: {{ Setting::get('app-color') }} !important;
5 } 4 }
...@@ -18,5 +17,4 @@ ...@@ -18,5 +17,4 @@
18 p.primary:hover, p .primary:hover, span.primary:hover, .text-primary:hover, a, a:hover, a:focus, .text-button, .text-button:hover, .text-button:focus { 17 p.primary:hover, p .primary:hover, span.primary:hover, .text-primary:hover, a, a:hover, a:focus, .text-button, .text-button:hover, .text-button:focus {
19 color: {{ Setting::get('app-color') }}; 18 color: {{ Setting::get('app-color') }};
20 } 19 }
21 - </style>
22 -@endif
...\ No newline at end of file ...\ No newline at end of file
20 +</style>
...\ No newline at end of file ...\ No newline at end of file
......
1 1
2 -<div class="notification anim pos" @if(!Session::has('success')) style="display:none;" @endif> 2 +<div class="notification anim pos" @if(!session()->has('success')) style="display:none;" @endif>
3 - <i class="zmdi zmdi-check-circle"></i> <span>{!! nl2br(htmlentities(Session::get('success'))) !!}</span> 3 + <i class="zmdi zmdi-check-circle"></i> <span>{!! nl2br(htmlentities(session()->get('success'))) !!}</span>
4 </div> 4 </div>
5 5
6 -<div class="notification anim warning stopped" @if(!Session::has('warning')) style="display:none;" @endif> 6 +<div class="notification anim warning stopped" @if(!session()->has('warning')) style="display:none;" @endif>
7 - <i class="zmdi zmdi-info"></i> <span>{!! nl2br(htmlentities(Session::get('warning'))) !!}</span> 7 + <i class="zmdi zmdi-info"></i> <span>{!! nl2br(htmlentities(session()->get('warning'))) !!}</span>
8 </div> 8 </div>
9 9
10 -<div class="notification anim neg stopped" @if(!Session::has('error')) style="display:none;" @endif> 10 +<div class="notification anim neg stopped" @if(!session()->has('error')) style="display:none;" @endif>
11 - <i class="zmdi zmdi-alert-circle"></i> <span>{!! nl2br(htmlentities(Session::get('error'))) !!}</span> 11 + <i class="zmdi zmdi-alert-circle"></i> <span>{!! nl2br(htmlentities(session()->get('error'))) !!}</span>
12 </div> 12 </div>
......