chore: new copyright footer options (#392)

Squashed commit of the following:

commit ea640e77447e5a120f679c0b8f27d048487dd560
Author: Cinnamoroll-Rabbit <101342651+Cinnamoroll-Rabbit@users.noreply.github.com>
Date:   Sat Apr 16 23:16:00 2022 +0800

    chore: new copyright footer options
This commit is contained in:
mochaaP 2022-04-17 02:17:54 +08:00
parent b738b388ae
commit 2452ed06da
No known key found for this signature in database
GPG Key ID: 697CA71D6669DCF1
3 changed files with 14 additions and 6 deletions

View File

@ -25,6 +25,8 @@ class HomeController extends Controller
'Powered by Blessing Skin Server.',
'Proudly powered by Blessing Skin Server.',
'由 Blessing Skin Server 强力驱动。',
'采用 Blessing Skin Server 搭建。',
'使用 Blessing Skin Server 稳定运行。',
'自豪地采用 Blessing Skin Server。',
],
option_localized('copyright_prefer', 0)

View File

@ -28,7 +28,9 @@ class OptionsController extends Controller
->option('1', 'Powered by Blessing Skin Server.')
->option('2', 'Proudly powered by Blessing Skin Server.')
->option('3', '由 Blessing Skin Server 强力驱动。')
->option('4', '自豪地采用 Blessing Skin Server。')
->option('4', '采用 Blessing Skin Server 搭建。')
->option('5', '使用 Blessing Skin Server 稳定运行。')
->option('6', '自豪地采用 Blessing Skin Server。')
->description();
$form->textarea('copyright_text')->rows(6)->description();

View File

@ -3,15 +3,19 @@
<!-- YOU CAN NOT MODIFIY THE COPYRIGHT TEXT W/O PERMISSION -->
<div id="copyright-text" class="float-right d-none d-sm-inline">
{% if copyright == 0 %}
Powered with ❤ by <a href="{{ repo }}">Blessing Skin Server</a>.
Powered with ❤ by <a href="{{ repo }}" target="_blank">Blessing Skin Server</a>.
{% elseif copyright == 1 %}
Powered by <a href="{{ repo }}">Blessing Skin Server</a>.
Powered by <a href="{{ repo }}" target="_blank">Blessing Skin Server</a>.
{% elseif copyright == 2 %}
Proudly powered by <a href="{{ repo }}">Blessing Skin Server</a>.
Proudly powered by <a href="{{ repo }}" target="_blank">Blessing Skin Server</a>.
{% elseif copyright == 3 %}
由 <a href="{{ repo }}">Blessing Skin Server</a> 强力驱动。
由 <a href="{{ repo }}" target="_blank">Blessing Skin Server</a> 强力驱动。
{% elseif copyright == 4 %}
采用 <a href="{{ repo }}" target="_blank">Blessing Skin Server</a> 搭建。
{% elseif copyright == 5 %}
使用 <a href="{{ repo }}" target="_blank">Blessing Skin Server</a> 稳定运行。
{% else %}
自豪地采用 <a href="{{ repo }}">Blessing Skin Server</a>。
自豪地采用 <a href="{{ repo }}" target="_blank">Blessing Skin Server</a>。
{% endif %}
</div>