Skip to content

Commit b80455e

Browse files
committed
Update theme.blade.php
1 parent 604ed2d commit b80455e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

resources/views/linkstack/modules/theme.blade.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
@php
22
// Theme Config
33
if (!function_exists('theme')) {
44
function theme($key){
@@ -18,7 +18,9 @@ function themeAsset($path){
1818
$path = url('themes/' . $GLOBALS['themeName'] . '/extra/custom-assets/' . $path);
1919
return $path;}
2020
}
21-
?>
21+
22+
$customBackgroundExists = false;
23+
@endphp
2224

2325
@foreach($information as $info) @php $GLOBALS['themeName'] = $info->theme; @endphp @endforeach
2426

@@ -27,11 +29,7 @@ function themeAsset($path){
2729
$customBackgroundFile = findBackground($userinfo->id);
2830
$customBackgroundPath = base_path('assets/img/background-img/'.$customBackgroundFile);
2931
$customBackgroundURL = url('assets/img/background-img/'.$customBackgroundFile);
30-
$customBackgroundExists = file_exists($customBackgroundPath);
31-
if($customBackgroundExists == true){
32-
$customBackgroundBrightness = analyzeImageBrightness($customBackgroundFile);
33-
} else {
34-
$customBackgroundBrightness = false;}
32+
$customBackgroundExists = file_exists($customBackgroundPath)
3533
@endphp
3634

3735
@if($customBackgroundExists == true)

0 commit comments

Comments
 (0)