mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-30 14:09:58 +08:00
Extract copyright as view
This commit is contained in:
parent
d55387a0d3
commit
1c72171a5e
@ -89,8 +89,8 @@ class AdminController extends Controller
|
||||
->option('0', 'Powered with ❤ by Blessing Skin Server.')
|
||||
->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('3', '由 Blessing Skin Server 强力驱动。')
|
||||
->option('4', '自豪地采用 Blessing Skin Server。')
|
||||
->description();
|
||||
|
||||
$form->textarea('copyright_text')->rows(6)->description();
|
||||
|
@ -171,23 +171,6 @@ if (! function_exists('bs_menu')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('bs_copyright')) {
|
||||
function bs_copyright($prefer = null)
|
||||
{
|
||||
$prefer = is_null($prefer) ? option_localized('copyright_prefer', 0) : $prefer;
|
||||
|
||||
$base64CopyrightText = [
|
||||
'UG93ZXJlZCB3aXRoIOKdpCBieSA8YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vcHJpbnRlbXB3L2JsZXNzaW5nLXNraW4tc2VydmVyIj5CbGVzc2luZyBTa2luIFNlcnZlcjwvYT4u',
|
||||
'UG93ZXJlZCBieSA8YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vcHJpbnRlbXB3L2JsZXNzaW5nLXNraW4tc2VydmVyIj5CbGVzc2luZyBTa2luIFNlcnZlcjwvYT4u',
|
||||
'UHJvdWRseSBwb3dlcmVkIGJ5IDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS9wcmludGVtcHcvYmxlc3Npbmctc2tpbi1zZXJ2ZXIiPkJsZXNzaW5nIFNraW4gU2VydmVyPC9hPi4=',
|
||||
'55SxIDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS9wcmludGVtcHcvYmxlc3Npbmctc2tpbi1zZXJ2ZXIiPkJsZXNzaW5nIFNraW4gU2VydmVyPC9hPiDlvLrlipvpqbHliqgu',
|
||||
'6Ieq6LGq5Zyw6YeH55SoIDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS9wcmludGVtcHcvYmxlc3Npbmctc2tpbi1zZXJ2ZXIiPkJsZXNzaW5nIFNraW4gU2VydmVyPC9hPi4=',
|
||||
];
|
||||
|
||||
return base64_decode(Arr::get($base64CopyrightText, $prefer, $base64CopyrightText[0]));
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('option')) {
|
||||
/**
|
||||
* Get / set the specified option value.
|
||||
|
@ -73,7 +73,7 @@
|
||||
<footer class="main-footer">
|
||||
<!-- YOU CAN NOT MODIFIY THE COPYRIGHT TEXT W/O PERMISSION -->
|
||||
<div id="copyright-text" class="pull-right hidden-xs">
|
||||
{!! bs_copyright() !!}
|
||||
@include('common.copyright')
|
||||
</div>
|
||||
<!-- Default to the left -->
|
||||
@include('common.custom-copyright')
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
<!-- YOU CAN NOT MODIFIY THE COPYRIGHT TEXT W/O PERMISSION -->
|
||||
<div id="copyright-text" class="hide">
|
||||
{!! bs_copyright() !!}
|
||||
@include('common.copyright')
|
||||
</div>
|
||||
|
||||
<!-- App Scripts -->
|
||||
|
12
resources/views/common/copyright.blade.php
Normal file
12
resources/views/common/copyright.blade.php
Normal file
@ -0,0 +1,12 @@
|
||||
{!!
|
||||
Arr::get(
|
||||
[
|
||||
'Powered with ❤ by <a href="https://github.com/bs-community/blessing-skin-server">Blessing Skin Server</a>.',
|
||||
'Powered by <a href="https://github.com/bs-community/blessing-skin-server">Blessing Skin Server</a>.',
|
||||
'Proudly powered by <a href="https://github.com/bs-community/blessing-skin-server">Blessing Skin Server</a>.',
|
||||
'由 <a href="https://github.com/bs-community/blessing-skin-server">Blessing Skin Server</a> 强力驱动。',
|
||||
'自豪地采用 <a href="https://github.com/bs-community/blessing-skin-server">Blessing Skin Server</a>。'
|
||||
],
|
||||
option_localized('copyright_prefer', 0)
|
||||
)
|
||||
!!}
|
@ -118,7 +118,7 @@
|
||||
<div class="container">
|
||||
<!-- YOU CAN NOT MODIFIY THE COPYRIGHT TEXT W/O PERMISSION -->
|
||||
<div id="copyright-text" class="pull-right hidden-xs">
|
||||
{!! bs_copyright() !!}
|
||||
@include('common.copyright')
|
||||
</div>
|
||||
<!-- Default to the left -->
|
||||
@include('common.custom-copyright')
|
||||
|
@ -74,7 +74,7 @@
|
||||
<div class="container">
|
||||
<!-- YOU CAN NOT MODIFIY THE COPYRIGHT TEXT W/O PERMISSION -->
|
||||
<div id="copyright-text" class="pull-right hidden-xs">
|
||||
{!! bs_copyright() !!}
|
||||
@include('common.copyright')
|
||||
</div>
|
||||
<!-- Default to the left -->
|
||||
@include('common.custom-copyright')
|
||||
|
@ -78,7 +78,7 @@
|
||||
<footer class="main-footer">
|
||||
<!-- YOU CAN NOT MODIFIY THE COPYRIGHT TEXT W/O PERMISSION -->
|
||||
<div id="copyright-text" class="pull-right hidden-xs">
|
||||
{!! bs_copyright() !!}
|
||||
@include('common.copyright')
|
||||
</div>
|
||||
<!-- Default to the left -->
|
||||
@include('common.custom-copyright')
|
||||
|
Loading…
Reference in New Issue
Block a user