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
22// Theme Config
33if (! function_exists (' theme' )) {
44 function theme ($key ){
@@ -18,7 +18,9 @@ function themeAsset($path){
1818$path = url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-assets/' . $path );
1919return $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 )
You can’t perform that action at this time.
0 commit comments