2025-2-26-fixed
This commit is contained in:
19
themes/next/layout/_partials/post/post-copyright.swig
Normal file
19
themes/next/layout/_partials/post/post-copyright.swig
Normal file
@ -0,0 +1,19 @@
|
||||
{%- set ccIcon = '<i class="fab fa-fw fa-creative-commons"></i>' %}
|
||||
{%- set ccText = theme.creative_commons.license | upper %}
|
||||
|
||||
<div>
|
||||
<ul class="post-copyright">
|
||||
<li class="post-copyright-author">
|
||||
<strong>{{ __('post.copyright.author') + __('symbol.colon') }} </strong>
|
||||
{{- page.author or author }}
|
||||
</li>
|
||||
<li class="post-copyright-link">
|
||||
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong>
|
||||
{{ next_url(page.permalink, page.permalink, {title: page.title}) }}
|
||||
</li>
|
||||
<li class="post-copyright-license">
|
||||
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
|
||||
{{- __('post.copyright.license_content', next_url(ccURL, ccIcon + ccText)) }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
23
themes/next/layout/_partials/post/post-followme.swig
Normal file
23
themes/next/layout/_partials/post/post-followme.swig
Normal file
@ -0,0 +1,23 @@
|
||||
{%- if theme.follow_me %}
|
||||
|
||||
<div class="followme">
|
||||
<p>{{ __('follow_me.welcome') }}</p>
|
||||
|
||||
<div class="social-list">
|
||||
{%- for name, value in theme.follow_me %}
|
||||
{%- set link = value.split('||')[0] | trim %}
|
||||
{%- set icon = value.split('||')[1] | trim %}
|
||||
|
||||
<div class="social-item">
|
||||
<a target="_blank" class="social-link" href="{{ link }}">
|
||||
<span class="icon">
|
||||
<i class="{{ icon }}"></i>
|
||||
</span>
|
||||
|
||||
<span class="label">{{ name }}</span>
|
||||
</a>
|
||||
</div>
|
||||
{%- endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{%- endif %}
|
||||
7
themes/next/layout/_partials/post/post-footer.swig
Normal file
7
themes/next/layout/_partials/post/post-footer.swig
Normal file
@ -0,0 +1,7 @@
|
||||
{%- if theme.rating.enable %}
|
||||
<div class="post-widgets">
|
||||
<div class="wp_rating">
|
||||
<div id="wpac-rating"></div>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif %}
|
||||
20
themes/next/layout/_partials/post/post-related.swig
Normal file
20
themes/next/layout/_partials/post/post-related.swig
Normal file
@ -0,0 +1,20 @@
|
||||
{%- set popular_posts = popular_posts_json(theme.related_posts.params, page) %}
|
||||
{%- if popular_posts.json and popular_posts.json.length > 0 %}
|
||||
<div class="popular-posts-header">{{ theme.related_posts.title or __('post.related_posts') }}</div>
|
||||
<ul class="popular-posts">
|
||||
{%- for popular_post in popular_posts.json %}
|
||||
<li class="popular-posts-item">
|
||||
{%- if popular_post.date and popular_post.date != '' %}
|
||||
<div class="popular-posts-date">{{ popular_post.date }}</div>
|
||||
{%- endif %}
|
||||
{%- if popular_post.img and popular_post.img != '' %}
|
||||
<div class="popular-posts-img"><img src="{{ popular_post.img }}"></div>
|
||||
{%- endif %}
|
||||
<div class="popular-posts-title"><a href="{{ popular_post.path }}" rel="bookmark">{{ popular_post.title }}</a></div>
|
||||
{%- if popular_post.excerpt and popular_post.excerpt != '' %}
|
||||
<div class="popular-posts-excerpt"><p>{{ popular_post.excerpt }}</p></div>
|
||||
{%- endif %}
|
||||
</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
{%- endif %}
|
||||
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