diff --git a/.env b/.env index fe6ab9d..71c9a93 100644 --- a/.env +++ b/.env @@ -10,6 +10,7 @@ NOTIFY_EVENTS=true NOTIFY_UPDATES=true DISPLAY_FOOTER=true DISPLAY_CREDIT=true +DISPLAY_CREDIT_FOOTER=true ADMIN_EMAIL= diff --git a/config/config-legends.json b/config/config-legends.json index 5f40997..a0f7106 100644 --- a/config/config-legends.json +++ b/config/config-legends.json @@ -25,10 +25,15 @@ }, {"value": "DISPLAY_CREDIT", - "title": "Show credit", - "description": "Determines whether the credit notice should be displayed." + "title": "Display credit on user pages", + "description": "Determines whether the credit notice should be displayed on users pages." }, + {"value": "DISPLAY_CREDIT_FOOTER", + "title": "Display credit in footer", + "description": "Determines whether the credit notice should be displayed in the footer." + }, + {"value": "HOME_URL", "title": "Set user page as Home Page", "description": "Set user page as Home Page" @@ -239,6 +244,11 @@ "description": "Determines if admins have to manually verify newly registered users." }, + {"value": "ADMIN_EMAIL", + "title": "Admin email", + "description": "Used to send notification emails." + }, + {"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 07f4d6b..e0b0987 100644 --- a/resources/views/components/config/config.blade.php +++ b/resources/views/components/config/config.blade.php @@ -239,6 +239,7 @@ function text($key){ {{toggle('MANUAL_USER_VERIFICATION')}} @endif +{{text('ADMIN_EMAIL')}} {{-- start home url --}} @@ -400,6 +401,8 @@ document.getElementById("MAINTENANCE_MODE-form").addEventListener("change", func {{toggle('DISPLAY_CREDIT')}} +{{toggle('DISPLAY_CREDIT_FOOTER')}} + {{toggle('DISPLAY_FOOTER_HOME')}} {{text('TITLE_FOOTER_HOME')}} diff --git a/resources/views/components/finishing.blade.php b/resources/views/components/finishing.blade.php index 43c1ec4..6f060ef 100644 --- a/resources/views/components/finishing.blade.php +++ b/resources/views/components/finishing.blade.php @@ -52,6 +52,9 @@ use App\Models\Page; if(EnvEditor::keyExists('MANUAL_USER_VERIFICATION')){ /* Do nothing if key already exists */ } else {EnvEditor::addKey('MANUAL_USER_VERIFICATION', 'false');} + if(EnvEditor::keyExists('DISPLAY_CREDIT_FOOTER')){ /* Do nothing if key already exists */ + } else {EnvEditor::addKey('DISPLAY_CREDIT_FOOTER', 'true');} + if(EnvEditor::keyExists('ADMIN_EMAIL')){} else {if(Auth::user()->id == 1){EnvEditor::addKey('ADMIN_EMAIL', App\Models\User::find(1)->email);} else{EnvEditor::addKey('ADMIN_EMAIL', '');}} diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index f325655..cceaa90 100755 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -223,12 +223,14 @@
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }} + @if(env('DISPLAY_CREDIT_FOOTER') === true) - Made with by LinkStack. + @endif
diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 58947d6..8a42b21 100755 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -538,12 +538,14 @@ $usrhandl = Auth::user()->littlelink_name;
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }} + @if(env('DISPLAY_CREDIT_FOOTER') === true) - Made with by LinkStack. + @endif
diff --git a/resources/views/pages.blade.php b/resources/views/pages.blade.php index a2df2d0..e81c0a5 100755 --- a/resources/views/pages.blade.php +++ b/resources/views/pages.blade.php @@ -81,12 +81,14 @@
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }} + @if(env('DISPLAY_CREDIT_FOOTER') === true) - Made with by LinkStack. + @endif