Added option to hide credit in footer
This commit is contained in:
parent
6311561c74
commit
3a7663af38
1
.env
1
.env
|
@ -10,6 +10,7 @@ NOTIFY_EVENTS=true
|
||||||
NOTIFY_UPDATES=true
|
NOTIFY_UPDATES=true
|
||||||
DISPLAY_FOOTER=true
|
DISPLAY_FOOTER=true
|
||||||
DISPLAY_CREDIT=true
|
DISPLAY_CREDIT=true
|
||||||
|
DISPLAY_CREDIT_FOOTER=true
|
||||||
|
|
||||||
ADMIN_EMAIL=
|
ADMIN_EMAIL=
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,13 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
{"value": "DISPLAY_CREDIT",
|
{"value": "DISPLAY_CREDIT",
|
||||||
"title": "Show credit",
|
"title": "Display credit on user pages",
|
||||||
"description": "Determines whether the credit notice should be displayed."
|
"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",
|
{"value": "HOME_URL",
|
||||||
|
@ -239,6 +244,11 @@
|
||||||
"description": "Determines if admins have to manually verify newly registered users."
|
"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",
|
{"value": "HIDE_VERIFICATION_CHECKMARK",
|
||||||
"title": "Hide verification checkmark",
|
"title": "Hide verification checkmark",
|
||||||
"description": "Hides verification badge displayed on admin and VIP pages."
|
"description": "Hides verification badge displayed on admin and VIP pages."
|
||||||
|
|
|
@ -239,6 +239,7 @@ function text($key){
|
||||||
{{toggle('MANUAL_USER_VERIFICATION')}}
|
{{toggle('MANUAL_USER_VERIFICATION')}}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
{{text('ADMIN_EMAIL')}}
|
||||||
|
|
||||||
{{-- start home url --}}
|
{{-- start home url --}}
|
||||||
<?php $configValue2 = str_replace('"', "", EnvEditor::getKey('HOME_URL')); ?>
|
<?php $configValue2 = str_replace('"', "", EnvEditor::getKey('HOME_URL')); ?>
|
||||||
|
@ -400,6 +401,8 @@ document.getElementById("MAINTENANCE_MODE-form").addEventListener("change", func
|
||||||
|
|
||||||
{{toggle('DISPLAY_CREDIT')}}
|
{{toggle('DISPLAY_CREDIT')}}
|
||||||
|
|
||||||
|
{{toggle('DISPLAY_CREDIT_FOOTER')}}
|
||||||
|
|
||||||
{{toggle('DISPLAY_FOOTER_HOME')}}
|
{{toggle('DISPLAY_FOOTER_HOME')}}
|
||||||
{{text('TITLE_FOOTER_HOME')}}
|
{{text('TITLE_FOOTER_HOME')}}
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,9 @@ use App\Models\Page;
|
||||||
if(EnvEditor::keyExists('MANUAL_USER_VERIFICATION')){ /* Do nothing if key already exists */
|
if(EnvEditor::keyExists('MANUAL_USER_VERIFICATION')){ /* Do nothing if key already exists */
|
||||||
} else {EnvEditor::addKey('MANUAL_USER_VERIFICATION', 'false');}
|
} 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(EnvEditor::keyExists('ADMIN_EMAIL')){} else
|
||||||
{if(Auth::user()->id == 1){EnvEditor::addKey('ADMIN_EMAIL', App\Models\User::find(1)->email);}
|
{if(Auth::user()->id == 1){EnvEditor::addKey('ADMIN_EMAIL', App\Models\User::find(1)->email);}
|
||||||
else{EnvEditor::addKey('ADMIN_EMAIL', '');}}
|
else{EnvEditor::addKey('ADMIN_EMAIL', '');}}
|
||||||
|
|
|
@ -223,12 +223,14 @@
|
||||||
</ul>
|
</ul>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }}
|
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }}
|
||||||
|
@if(env('DISPLAY_CREDIT_FOOTER') === true)
|
||||||
<span class="">
|
<span class="">
|
||||||
- Made with
|
- Made with
|
||||||
<svg class="icon-15" width="15" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg class="icon-15" width="15" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.85 2.50065C16.481 2.50065 17.111 2.58965 17.71 2.79065C21.401 3.99065 22.731 8.04065 21.62 11.5806C20.99 13.3896 19.96 15.0406 18.611 16.3896C16.68 18.2596 14.561 19.9196 12.28 21.3496L12.03 21.5006L11.77 21.3396C9.48102 19.9196 7.35002 18.2596 5.40102 16.3796C4.06102 15.0306 3.03002 13.3896 2.39002 11.5806C1.26002 8.04065 2.59002 3.99065 6.32102 2.76965C6.61102 2.66965 6.91002 2.59965 7.21002 2.56065H7.33002C7.61102 2.51965 7.89002 2.50065 8.17002 2.50065H8.28002C8.91002 2.51965 9.52002 2.62965 10.111 2.83065H10.17C10.21 2.84965 10.24 2.87065 10.26 2.88965C10.481 2.96065 10.69 3.04065 10.89 3.15065L11.27 3.32065C11.3618 3.36962 11.4649 3.44445 11.554 3.50912C11.6104 3.55009 11.6612 3.58699 11.7 3.61065C11.7163 3.62028 11.7329 3.62996 11.7496 3.63972C11.8354 3.68977 11.9247 3.74191 12 3.79965C13.111 2.95065 14.46 2.49065 15.85 2.50065ZM18.51 9.70065C18.92 9.68965 19.27 9.36065 19.3 8.93965V8.82065C19.33 7.41965 18.481 6.15065 17.19 5.66065C16.78 5.51965 16.33 5.74065 16.18 6.16065C16.04 6.58065 16.26 7.04065 16.68 7.18965C17.321 7.42965 17.75 8.06065 17.75 8.75965V8.79065C17.731 9.01965 17.8 9.24065 17.94 9.41065C18.08 9.58065 18.29 9.67965 18.51 9.70065Z" fill="currentColor"></path>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.85 2.50065C16.481 2.50065 17.111 2.58965 17.71 2.79065C21.401 3.99065 22.731 8.04065 21.62 11.5806C20.99 13.3896 19.96 15.0406 18.611 16.3896C16.68 18.2596 14.561 19.9196 12.28 21.3496L12.03 21.5006L11.77 21.3396C9.48102 19.9196 7.35002 18.2596 5.40102 16.3796C4.06102 15.0306 3.03002 13.3896 2.39002 11.5806C1.26002 8.04065 2.59002 3.99065 6.32102 2.76965C6.61102 2.66965 6.91002 2.59965 7.21002 2.56065H7.33002C7.61102 2.51965 7.89002 2.50065 8.17002 2.50065H8.28002C8.91002 2.51965 9.52002 2.62965 10.111 2.83065H10.17C10.21 2.84965 10.24 2.87065 10.26 2.88965C10.481 2.96065 10.69 3.04065 10.89 3.15065L11.27 3.32065C11.3618 3.36962 11.4649 3.44445 11.554 3.50912C11.6104 3.55009 11.6612 3.58699 11.7 3.61065C11.7163 3.62028 11.7329 3.62996 11.7496 3.63972C11.8354 3.68977 11.9247 3.74191 12 3.79965C13.111 2.95065 14.46 2.49065 15.85 2.50065ZM18.51 9.70065C18.92 9.68965 19.27 9.36065 19.3 8.93965V8.82065C19.33 7.41965 18.481 6.15065 17.19 5.66065C16.78 5.51965 16.33 5.74065 16.18 6.16065C16.04 6.58065 16.26 7.04065 16.68 7.18965C17.321 7.42965 17.75 8.06065 17.75 8.75965V8.79065C17.731 9.01965 17.8 9.24065 17.94 9.41065C18.08 9.58065 18.29 9.67965 18.51 9.70065Z" fill="currentColor"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span> by <a href="https://linkstack.org/" target="_blank">LinkStack</a>.
|
</span> by <a href="https://linkstack.org/" target="_blank">LinkStack</a>.
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -538,12 +538,14 @@ $usrhandl = Auth::user()->littlelink_name;
|
||||||
</ul>
|
</ul>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }}
|
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }}
|
||||||
|
@if(env('DISPLAY_CREDIT_FOOTER') === true)
|
||||||
<span class="">
|
<span class="">
|
||||||
- Made with
|
- Made with
|
||||||
<svg class="icon-15" width="15" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg class="icon-15" width="15" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.85 2.50065C16.481 2.50065 17.111 2.58965 17.71 2.79065C21.401 3.99065 22.731 8.04065 21.62 11.5806C20.99 13.3896 19.96 15.0406 18.611 16.3896C16.68 18.2596 14.561 19.9196 12.28 21.3496L12.03 21.5006L11.77 21.3396C9.48102 19.9196 7.35002 18.2596 5.40102 16.3796C4.06102 15.0306 3.03002 13.3896 2.39002 11.5806C1.26002 8.04065 2.59002 3.99065 6.32102 2.76965C6.61102 2.66965 6.91002 2.59965 7.21002 2.56065H7.33002C7.61102 2.51965 7.89002 2.50065 8.17002 2.50065H8.28002C8.91002 2.51965 9.52002 2.62965 10.111 2.83065H10.17C10.21 2.84965 10.24 2.87065 10.26 2.88965C10.481 2.96065 10.69 3.04065 10.89 3.15065L11.27 3.32065C11.3618 3.36962 11.4649 3.44445 11.554 3.50912C11.6104 3.55009 11.6612 3.58699 11.7 3.61065C11.7163 3.62028 11.7329 3.62996 11.7496 3.63972C11.8354 3.68977 11.9247 3.74191 12 3.79965C13.111 2.95065 14.46 2.49065 15.85 2.50065ZM18.51 9.70065C18.92 9.68965 19.27 9.36065 19.3 8.93965V8.82065C19.33 7.41965 18.481 6.15065 17.19 5.66065C16.78 5.51965 16.33 5.74065 16.18 6.16065C16.04 6.58065 16.26 7.04065 16.68 7.18965C17.321 7.42965 17.75 8.06065 17.75 8.75965V8.79065C17.731 9.01965 17.8 9.24065 17.94 9.41065C18.08 9.58065 18.29 9.67965 18.51 9.70065Z" fill="currentColor"></path>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.85 2.50065C16.481 2.50065 17.111 2.58965 17.71 2.79065C21.401 3.99065 22.731 8.04065 21.62 11.5806C20.99 13.3896 19.96 15.0406 18.611 16.3896C16.68 18.2596 14.561 19.9196 12.28 21.3496L12.03 21.5006L11.77 21.3396C9.48102 19.9196 7.35002 18.2596 5.40102 16.3796C4.06102 15.0306 3.03002 13.3896 2.39002 11.5806C1.26002 8.04065 2.59002 3.99065 6.32102 2.76965C6.61102 2.66965 6.91002 2.59965 7.21002 2.56065H7.33002C7.61102 2.51965 7.89002 2.50065 8.17002 2.50065H8.28002C8.91002 2.51965 9.52002 2.62965 10.111 2.83065H10.17C10.21 2.84965 10.24 2.87065 10.26 2.88965C10.481 2.96065 10.69 3.04065 10.89 3.15065L11.27 3.32065C11.3618 3.36962 11.4649 3.44445 11.554 3.50912C11.6104 3.55009 11.6612 3.58699 11.7 3.61065C11.7163 3.62028 11.7329 3.62996 11.7496 3.63972C11.8354 3.68977 11.9247 3.74191 12 3.79965C13.111 2.95065 14.46 2.49065 15.85 2.50065ZM18.51 9.70065C18.92 9.68965 19.27 9.36065 19.3 8.93965V8.82065C19.33 7.41965 18.481 6.15065 17.19 5.66065C16.78 5.51965 16.33 5.74065 16.18 6.16065C16.04 6.58065 16.26 7.04065 16.68 7.18965C17.321 7.42965 17.75 8.06065 17.75 8.75965V8.79065C17.731 9.01965 17.8 9.24065 17.94 9.41065C18.08 9.58065 18.29 9.67965 18.51 9.70065Z" fill="currentColor"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span> by <a href="https://linkstack.org/" target="_blank">LinkStack</a>.
|
</span> by <a href="https://linkstack.org/" target="_blank">LinkStack</a>.
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -81,12 +81,14 @@
|
||||||
</ul>
|
</ul>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }}
|
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }}
|
||||||
|
@if(env('DISPLAY_CREDIT_FOOTER') === true)
|
||||||
<span class="">
|
<span class="">
|
||||||
- Made with
|
- Made with
|
||||||
<svg class="icon-15" width="15" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg class="icon-15" width="15" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.85 2.50065C16.481 2.50065 17.111 2.58965 17.71 2.79065C21.401 3.99065 22.731 8.04065 21.62 11.5806C20.99 13.3896 19.96 15.0406 18.611 16.3896C16.68 18.2596 14.561 19.9196 12.28 21.3496L12.03 21.5006L11.77 21.3396C9.48102 19.9196 7.35002 18.2596 5.40102 16.3796C4.06102 15.0306 3.03002 13.3896 2.39002 11.5806C1.26002 8.04065 2.59002 3.99065 6.32102 2.76965C6.61102 2.66965 6.91002 2.59965 7.21002 2.56065H7.33002C7.61102 2.51965 7.89002 2.50065 8.17002 2.50065H8.28002C8.91002 2.51965 9.52002 2.62965 10.111 2.83065H10.17C10.21 2.84965 10.24 2.87065 10.26 2.88965C10.481 2.96065 10.69 3.04065 10.89 3.15065L11.27 3.32065C11.3618 3.36962 11.4649 3.44445 11.554 3.50912C11.6104 3.55009 11.6612 3.58699 11.7 3.61065C11.7163 3.62028 11.7329 3.62996 11.7496 3.63972C11.8354 3.68977 11.9247 3.74191 12 3.79965C13.111 2.95065 14.46 2.49065 15.85 2.50065ZM18.51 9.70065C18.92 9.68965 19.27 9.36065 19.3 8.93965V8.82065C19.33 7.41965 18.481 6.15065 17.19 5.66065C16.78 5.51965 16.33 5.74065 16.18 6.16065C16.04 6.58065 16.26 7.04065 16.68 7.18965C17.321 7.42965 17.75 8.06065 17.75 8.75965V8.79065C17.731 9.01965 17.8 9.24065 17.94 9.41065C18.08 9.58065 18.29 9.67965 18.51 9.70065Z" fill="currentColor"></path>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.85 2.50065C16.481 2.50065 17.111 2.58965 17.71 2.79065C21.401 3.99065 22.731 8.04065 21.62 11.5806C20.99 13.3896 19.96 15.0406 18.611 16.3896C16.68 18.2596 14.561 19.9196 12.28 21.3496L12.03 21.5006L11.77 21.3396C9.48102 19.9196 7.35002 18.2596 5.40102 16.3796C4.06102 15.0306 3.03002 13.3896 2.39002 11.5806C1.26002 8.04065 2.59002 3.99065 6.32102 2.76965C6.61102 2.66965 6.91002 2.59965 7.21002 2.56065H7.33002C7.61102 2.51965 7.89002 2.50065 8.17002 2.50065H8.28002C8.91002 2.51965 9.52002 2.62965 10.111 2.83065H10.17C10.21 2.84965 10.24 2.87065 10.26 2.88965C10.481 2.96065 10.69 3.04065 10.89 3.15065L11.27 3.32065C11.3618 3.36962 11.4649 3.44445 11.554 3.50912C11.6104 3.55009 11.6612 3.58699 11.7 3.61065C11.7163 3.62028 11.7329 3.62996 11.7496 3.63972C11.8354 3.68977 11.9247 3.74191 12 3.79965C13.111 2.95065 14.46 2.49065 15.85 2.50065ZM18.51 9.70065C18.92 9.68965 19.27 9.36065 19.3 8.93965V8.82065C19.33 7.41965 18.481 6.15065 17.19 5.66065C16.78 5.51965 16.33 5.74065 16.18 6.16065C16.04 6.58065 16.26 7.04065 16.68 7.18965C17.321 7.42965 17.75 8.06065 17.75 8.75965V8.79065C17.731 9.01965 17.8 9.24065 17.94 9.41065C18.08 9.58065 18.29 9.67965 18.51 9.70065Z" fill="currentColor"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span> by <a href="https://linkstack.org/" target="_blank">LinkStack</a>.
|
</span> by <a href="https://linkstack.org/" target="_blank">LinkStack</a>.
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Reference in New Issue