Use $app_stylesheet from AppComposer

This commit is contained in:
James Brooks
2015-11-21 22:47:24 +00:00
parent e5a46a71e7
commit dff9faaa5d
3 changed files with 3 additions and 2 deletions

View File

@@ -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'));
}

View File

@@ -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>

View File

@@ -44,7 +44,7 @@
@include('partials.crowdin')
@if($stylesheet = Setting::get('stylesheet'))
@if($stylesheet = $app_stylesheet)
<style type="text/css">
{!! $stylesheet !!}
</style>