blessing-skin-server/resources/views/shared/copyright.twig
mochaaP 2452ed06da
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
2022-04-17 02:17:54 +08:00

24 lines
1.1 KiB
Twig

{% set repo = 'https://github.com/bs-community/blessing-skin-server' %}
<!-- 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 }}" target="_blank">Blessing Skin Server</a>.
{% elseif copyright == 1 %}
Powered by <a href="{{ repo }}" target="_blank">Blessing Skin Server</a>.
{% elseif copyright == 2 %}
Proudly powered by <a href="{{ repo }}" target="_blank">Blessing Skin Server</a>.
{% elseif copyright == 3 %}
由 <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 }}" target="_blank">Blessing Skin Server</a>。
{% endif %}
</div>
{% set rules = {'{site_name}': site_name, '{site_url}': site_url} %}
{{ custom_copyright|replace(rules)|raw }}