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() {
278278
279279@endif
280280
281+ @if (env (' ALLOW_CUSTOM_BACKGROUNDS' ) == true )
281282<br ><br ><br >
282283<form action =" {{ route (' themeBackground' ) } }" enctype =" multipart/form-data" method =" post" >
283284 @csrf
@@ -290,15 +291,17 @@ function updateicon() {
290291 </div >
291292 <div class =" form-group col-lg-8" >
292293 @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 >
295297 <label >Upload background image</label >
296298 <input type =" file" accept =" image/jpeg,image/jpg,image/png" class =" form-control-file" name =" image" >
297299 </div >
298300 <div class =" row" >
299301 <button type =" submit" class =" mt-3 ml-3 btn btn-secondary" >Upload background</button >
300302 </div >
301303</form >
304+ @endif
302305
303306<br ><br ><br >
304307<form action =" {{ route (' editTheme' ) } }" enctype =" multipart/form-data" method =" post" >
You can’t perform that action at this time.
0 commit comments