This commit is contained in:
Daniel Brendel
2024-03-10 01:35:23 +01:00
parent dde2a52cae
commit ddd46d6d17
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -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);
+4
View File
@@ -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'))