2025-2-26-fixed
This commit is contained in:
22
themes/next/layout/_partials/post/post-reward.swig
Normal file
22
themes/next/layout/_partials/post/post-reward.swig
Normal file
@ -0,0 +1,22 @@
|
||||
<div class="reward-container">
|
||||
<div>{{ page.reward_settings.comment }}</div>
|
||||
<button onclick="var qr = document.getElementById('qr'); qr.style.display = (qr.style.display === 'none') ? 'block' : 'none';">
|
||||
{{ __('reward.donate') }}
|
||||
</button>
|
||||
<div id="qr" style="display: none;">
|
||||
|
||||
{%- for name, image in theme.reward %}
|
||||
{%- set builtin = ['wechatpay', 'alipay', 'paypal', 'bitcoin'] %}
|
||||
{%- if builtin.includes(name) %}
|
||||
{%- set translation = __('reward.' + name) %}
|
||||
{% else %}
|
||||
{%- set translation = name %}
|
||||
{%- endif %}
|
||||
<div style="display: inline-block;">
|
||||
<img src="{{ url_for(image) }}" alt="{{ author }} {{ translation }}">
|
||||
<p>{{ translation }}</p>
|
||||
</div>
|
||||
{%- endfor %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user