File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ function updateicon() {
278
278
279
279
@endif
280
280
281
+ @if (env (' ALLOW_CUSTOM_BACKGROUNDS' ) == true )
281
282
<br ><br ><br >
282
283
<form action =" {{ route (' themeBackground' ) } }" enctype =" multipart/form-data" method =" post" >
283
284
@csrf
@@ -290,15 +291,17 @@ function updateicon() {
290
291
</div >
291
292
<div class =" form-group col-lg-8" >
292
293
@if (! file_exists (base_path (' /img/background-img/' . findBackground (Auth:: user ()-> id ))) )<p ><i >No image selected</i ></p >@endif
293
- <img style =" width :95% ;max-width :400px ;argin-left :1rem !important ;border-radius :5px ;" src =" @if (file_exists (base_path (' /img/background-img/' . findBackground (Auth:: user ()-> id ))) ){{ url (' /img/background-img/' . findBackground (Auth:: user ()-> id ))} }@else {{ url (' /littlelink/images/themes/no-preview.png' )} }@endif " >
294
- <br ><button class =" mt-3 ml-3 btn btn-primary" style =" background-color :tomato !important ;border-color :tomato !important ;transform : scale (.9 );" title =" Delete background image" ><a href =" {{ url (' /studio/rem-background' ) } }" style =" color :#FFFFFF ;" ><i class =" bi bi-trash-fill" ></i > Remove background</a ></button ><br ><br >
294
+ <img style =" width :95% ;max-width :400px ;argin-left :1rem !important ;border-radius :5px ;" src =" @if (file_exists (base_path (' /img/background-img/' . findBackground (Auth:: user ()-> id ))) ){{ url (' /img/background-img/' . findBackground (Auth:: user ()-> id ))} }@else {{ url (' /littlelink/images/themes/no-preview.png' )} }@endif " ><br >
295
+ @if (file_exists (base_path (' /img/background-img/' . findBackground (Auth:: user ()-> id ))) )<button class =" mt-3 ml-3 btn btn-primary" style =" background-color :tomato !important ;border-color :tomato !important ;transform : scale (.9 );" title =" Delete background image" ><a href =" {{ url (' /studio/rem-background' ) } }" style =" color :#FFFFFF ;" ><i class =" bi bi-trash-fill" ></i > Remove background</a ></button ><br >@endif
296
+ <br >
295
297
<label >Upload background image</label >
296
298
<input type =" file" accept =" image/jpeg,image/jpg,image/png" class =" form-control-file" name =" image" >
297
299
</div >
298
300
<div class =" row" >
299
301
<button type =" submit" class =" mt-3 ml-3 btn btn-secondary" >Upload background</button >
300
302
</div >
301
303
</form >
304
+ @endif
302
305
303
306
<br ><br ><br >
304
307
<form action =" {{ route (' editTheme' ) } }" enctype =" multipart/form-data" method =" post" >
You can’t perform that action at this time.
0 commit comments