Skip to content

Commit bf0182b

Browse files
committed
Added option to disable custom background images
1 parent 87424e1 commit bf0182b

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

.env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,6 @@ TITLE_FOOTER_CONTACT="Contact"
111111

112112
HOME_FOOTER_LINK=""
113113

114-
HIDE_VERIFICATION_CHECKMARK=false
114+
HIDE_VERIFICATION_CHECKMARK=false
115+
116+
ALLOW_CUSTOM_BACKGROUNDS=true

config/config-legends.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@
214214
"description": "Enter any URL to redirect your home link URL.<br>Leave empty to use the default link."
215215
},
216216

217+
{"value": "ALLOW_CUSTOM_BACKGROUNDS",
218+
"title": "Allow custom backgrounds",
219+
"description": "Allow users to upload custom background images for their pages."
220+
},
217221

218222
{"value": "HIDE_VERIFICATION_CHECKMARK",
219223
"title": "Hide verification checkmark",

resources/views/components/config/config.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ function text($key){
293293
{{toggle('USE_THEME_PREVIEW_IFRAME')}}
294294

295295

296+
{{toggle('ALLOW_CUSTOM_BACKGROUNDS')}}
297+
298+
299+
296300
<a name="Security"><h2 class="ch2">Security</h2></a>
297301

298302

resources/views/components/finishing.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
if(EnvEditor::keyExists('HIDE_VERIFICATION_CHECKMARK')){ /* Do nothing if key already exists */
3737
} else {EnvEditor::addKey('HIDE_VERIFICATION_CHECKMARK', 'false');}
3838
39+
if(EnvEditor::keyExists('ALLOW_CUSTOM_BACKGROUNDS')){ /* Do nothing if key already exists */
40+
} else {EnvEditor::addKey('ALLOW_CUSTOM_BACKGROUNDS', 'true');}
41+
3942
4043
// Footer page customization
4144
if(EnvEditor::keyExists('DISPLAY_FOOTER_HOME')){} else {EnvEditor::addKey('DISPLAY_FOOTER_HOME', 'true');}

storage/backups/default_settings

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,6 @@ TITLE_FOOTER_CONTACT="Contact"
111111

112112
HOME_FOOTER_LINK=""
113113

114-
HIDE_VERIFICATION_CHECKMARK=false
114+
HIDE_VERIFICATION_CHECKMARK=false
115+
116+
ALLOW_CUSTOM_BACKGROUNDS=true

0 commit comments

Comments
 (0)