File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
resources/views/linkstack/modules Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
- <? php
1
+ @ php
2
2
// Theme Config
3
3
if (! function_exists (' theme' )) {
4
4
function theme ($key ){
@@ -18,7 +18,9 @@ function themeAsset($path){
18
18
$path = url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-assets/' . $path );
19
19
return $path ;}
20
20
}
21
- ? >
21
+
22
+ $customBackgroundExists = false ;
23
+ @endphp
22
24
23
25
@foreach ($information as $info ) @php $GLOBALS [' themeName' ] = $info -> theme ; @endphp @endforeach
24
26
@@ -27,11 +29,7 @@ function themeAsset($path){
27
29
$customBackgroundFile = findBackground ($userinfo -> id );
28
30
$customBackgroundPath = base_path (' assets/img/background-img/' . $customBackgroundFile );
29
31
$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 )
35
33
@endphp
36
34
37
35
@if ($customBackgroundExists == true )
You can’t perform that action at this time.
0 commit comments