From b80455e34df4cb61587100a5b29d06e90769afc0 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:11:02 +0100 Subject: [PATCH] Update theme.blade.php --- resources/views/linkstack/modules/theme.blade.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/resources/views/linkstack/modules/theme.blade.php b/resources/views/linkstack/modules/theme.blade.php index 0e178c7..d13a514 100644 --- a/resources/views/linkstack/modules/theme.blade.php +++ b/resources/views/linkstack/modules/theme.blade.php @@ -1,4 +1,4 @@ - + +$customBackgroundExists = false; +@endphp @foreach($information as $info) @php $GLOBALS['themeName'] = $info->theme; @endphp @endforeach @@ -27,11 +29,7 @@ return $path;} $customBackgroundFile = findBackground($userinfo->id); $customBackgroundPath = base_path('assets/img/background-img/'.$customBackgroundFile); $customBackgroundURL = url('assets/img/background-img/'.$customBackgroundFile); -$customBackgroundExists = file_exists($customBackgroundPath); -if($customBackgroundExists == true){ - $customBackgroundBrightness = analyzeImageBrightness($customBackgroundFile); - } else { - $customBackgroundBrightness = false;} +$customBackgroundExists = file_exists($customBackgroundPath) @endphp @if($customBackgroundExists == true)