Added option to disable custom background images

This commit is contained in:
Julian Prieber 2023-02-15 19:00:03 +01:00
parent 87424e1d2e
commit bf0182b8fa
5 changed files with 17 additions and 2 deletions

2
.env
View File

@ -112,3 +112,5 @@ TITLE_FOOTER_CONTACT="Contact"
HOME_FOOTER_LINK=""
HIDE_VERIFICATION_CHECKMARK=false
ALLOW_CUSTOM_BACKGROUNDS=true

View File

@ -214,6 +214,10 @@
"description": "Enter any URL to redirect your home link URL.<br>Leave empty to use the default link."
},
{"value": "ALLOW_CUSTOM_BACKGROUNDS",
"title": "Allow custom backgrounds",
"description": "Allow users to upload custom background images for their pages."
},
{"value": "HIDE_VERIFICATION_CHECKMARK",
"title": "Hide verification checkmark",

View File

@ -293,6 +293,10 @@ foreach($users as $user){if($user->littlelink_name != $configValue2){echo '<opti
{{toggle('USE_THEME_PREVIEW_IFRAME')}}
{{toggle('ALLOW_CUSTOM_BACKGROUNDS')}}
<a name="Security"><h2 class="ch2">Security</h2></a>

View File

@ -36,6 +36,9 @@ use Illuminate\Support\Facades\File;
if(EnvEditor::keyExists('HIDE_VERIFICATION_CHECKMARK')){ /* Do nothing if key already exists */
} else {EnvEditor::addKey('HIDE_VERIFICATION_CHECKMARK', 'false');}
if(EnvEditor::keyExists('ALLOW_CUSTOM_BACKGROUNDS')){ /* Do nothing if key already exists */
} else {EnvEditor::addKey('ALLOW_CUSTOM_BACKGROUNDS', 'true');}
// Footer page customization
if(EnvEditor::keyExists('DISPLAY_FOOTER_HOME')){} else {EnvEditor::addKey('DISPLAY_FOOTER_HOME', 'true');}

View File

@ -112,3 +112,5 @@ TITLE_FOOTER_CONTACT="Contact"
HOME_FOOTER_LINK=""
HIDE_VERIFICATION_CHECKMARK=false
ALLOW_CUSTOM_BACKGROUNDS=true