From 29145239078fb933ff16bbfd371e8841b92501b0 Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Mon, 13 Feb 2023 14:18:53 +0100 Subject: [PATCH] Added option to disable verification checkmark --- .env | 2 ++ config/config-legends.json | 6 ++++++ resources/views/components/config/config.blade.php | 3 +++ resources/views/littlelink.blade.php | 2 +- storage/backups/default_settings | 4 +++- 5 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 55f1a42..d47ba7d 100644 --- a/.env +++ b/.env @@ -110,3 +110,5 @@ TITLE_FOOTER_PRIVACY="Privacy" TITLE_FOOTER_CONTACT="Contact" HOME_FOOTER_LINK="" + +HIDE_VERIFICATION_CHECKMARK=false \ No newline at end of file diff --git a/config/config-legends.json b/config/config-legends.json index 812d86f..6b8a0e7 100644 --- a/config/config-legends.json +++ b/config/config-legends.json @@ -212,5 +212,11 @@ {"value": "HOME_FOOTER_LINK", "title": "
Home footer link URL
", "description": "Enter any URL to redirect your home link URL.
Leave empty to use the default link." + }, + + + {"value": "HIDE_VERIFICATION_CHECKMARK", + "title": "Hide verification checkmark", + "description": "Hides verification badge displayed on admin and VIP pages." } ] diff --git a/resources/views/components/config/config.blade.php b/resources/views/components/config/config.blade.php index 969b6f7..9ebbba1 100644 --- a/resources/views/components/config/config.blade.php +++ b/resources/views/components/config/config.blade.php @@ -276,6 +276,9 @@ foreach($users as $user){if($user->littlelink_name != $configValue2){echo '

Panel settings

{{toggle('NOTIFY_EVENTS')}} diff --git a/resources/views/littlelink.blade.php b/resources/views/littlelink.blade.php index ba6fe29..de955ab 100644 --- a/resources/views/littlelink.blade.php +++ b/resources/views/littlelink.blade.php @@ -259,7 +259,7 @@ function get_operating_system() { @endif -

{{ $info->name }}@if(($userinfo->role == 'vip' or $userinfo->role == 'admin') and theme('disable_verification_badge') != "true")@include('components.verify-svg')@endif

+

{{ $info->name }}@if(($userinfo->role == 'vip' or $userinfo->role == 'admin') and theme('disable_verification_badge') != "true" and env('HIDE_VERIFICATION_CHECKMARK') != true)@include('components.verify-svg')@endif

@if(env('ALLOW_USER_HTML') === true){!! $info->littlelink_description !!}@else{{ $info->littlelink_description }}@endif

diff --git a/storage/backups/default_settings b/storage/backups/default_settings index da29036..e11c120 100644 --- a/storage/backups/default_settings +++ b/storage/backups/default_settings @@ -109,4 +109,6 @@ TITLE_FOOTER_TERMS="Terms" TITLE_FOOTER_PRIVACY="Privacy" TITLE_FOOTER_CONTACT="Contact" -HOME_FOOTER_LINK="" \ No newline at end of file +HOME_FOOTER_LINK="" + +HIDE_VERIFICATION_CHECKMARK=false \ No newline at end of file