Merge pull request #3730 from jitendra-webkul/master

Changes for admin multi theme system
This commit is contained in:
Jitendra Singh 2020-08-12 13:19:56 +05:30 committed by GitHub
commit 397bf6370a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -143,9 +143,9 @@
<div class="control-group">
<label for="theme">{{ __('admin::app.settings.channels.theme') }}</label>
<select class="control" id="theme" name="theme">
@foreach (themes()->all() as $theme)
<option value="{{ $theme->code }}" {{ old('theme') == $theme->code ? 'selected' : '' }}>
{{ $theme->name }}
@foreach (config('themes.themes') as $themeCode => $theme)
<option value="{{ $themeCode }}" {{ old('theme') == $themeCode ? 'selected' : '' }}>
{{ $theme['name'] }}
</option>
@endforeach
</select>

View File

@ -154,9 +154,9 @@
<?php $selectedOption = old('theme') ?: $channel->theme ?>
<select class="control" id="theme" name="theme">
@foreach (themes()->getChannelThemes() as $theme)
<option value="{{ $theme->code }}" {{ $selectedOption == $theme->code ? 'selected' : '' }}>
{{ $theme->name }}
@foreach (config('themes.themes') as $themeCode => $theme)
<option value="{{ $themeCode }}" {{ $selectedOption == $themeCode ? 'selected' : '' }}>
{{ $theme['name'] }}
</option>
@endforeach
</select>