mirror of
https://github.com/danielbrendel/hortusfox-web.git
synced 2026-05-04 12:50:00 -05:00
Resolves #140
This commit is contained in:
@@ -29,6 +29,12 @@ class ThemeModule {
|
||||
if (!file_exists($path . '/' . self::$theme_data->banner)) {
|
||||
throw new \Exception('Banner asset not found');
|
||||
}
|
||||
|
||||
if ((isset(self::$theme_data->include)) && (file_exists(public_path() . '/themes/' . self::$theme_data->name . '/' . self::$theme_data->include))) {
|
||||
self::$theme_data->include = asset('themes/' . self::$theme_data->name . '/' . self::$theme_data->include);
|
||||
} else {
|
||||
self::$theme_data->include = null;
|
||||
}
|
||||
|
||||
self::$theme_data->banner_url = asset('themes/' . self::$theme_data->name . '/' . self::$theme_data->banner);
|
||||
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
<link rel="icon" type="image/png" href="{{ asset('logo.png') }}"/>
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('css/bulma.css') }}"/>
|
||||
|
||||
@if ((ThemeModule::ready()) && (ThemeModule::data()->include))
|
||||
<link rel="stylesheet" type="text/css" href="{{ ThemeModule::data()->include }}"/>
|
||||
@endif
|
||||
|
||||
<link rel="manifest" href="{{ asset('manifest.json') }}"/>
|
||||
|
||||
@if (env('APP_DEBUG'))
|
||||
|
||||
Reference in New Issue
Block a user