Use $app_stylesheet from AppComposer
This commit is contained in:
@@ -31,6 +31,7 @@ class AppComposer
|
||||
$view->withAppBannerType(Setting::get('app_banner_type'));
|
||||
$view->withAppDomain(Setting::get('app_domain'));
|
||||
$view->withAppName(Setting::get('app_name'));
|
||||
$view->withAppStylesheet(Setting::get('app_stylesheet'));
|
||||
$view->withAppUrl(Config::get('app.url'));
|
||||
$view->withShowSupport(Setting::get('show_support'));
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.stylesheet.custom-css') }}</label>
|
||||
<textarea class="form-control autosize" name="stylesheet" rows="10">{{ Setting::get('stylesheet') }}</textarea>
|
||||
<textarea class="form-control autosize" name="stylesheet" rows="10">{{ $app_stylesheet }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
@include('partials.crowdin')
|
||||
|
||||
@if($stylesheet = Setting::get('stylesheet'))
|
||||
@if($stylesheet = $app_stylesheet)
|
||||
<style type="text/css">
|
||||
{!! $stylesheet !!}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user