feat(navigation): hard-switch to Zibll navigation and Font Awesome 5

This commit is contained in:
kate522 committed 2026-08-18 20:46:21 +08:00
1 parent 3c3ddac8be
commit a0b84977a2
630 files changed
+101647 -11293

No files matched your search

+3 -3
View File
@@ -76,16 +76,16 @@ $header_style = (string) get_post_meta(get_queried_object_id(), 'page_header_sty
<li class="author-set-right">
<a href="<?php echo esc_url(get_permalink($post)); ?>"><?php echo esc_html(get_the_title($post)); ?></a>
<span class="muted-2-color ml6" title="<?php esc_attr_e('阅读', 'aksrt'); ?>">
<i class="fa fa-eye" aria-hidden="true"></i><?php echo esc_html((string) $views); ?>
<i class="fa fas fa-eye" aria-hidden="true"></i><?php echo esc_html((string) $views); ?>
</span>
<?php if ($comments > 0) : ?>
<span class="muted-2-color ml6" title="<?php esc_attr_e('评论', 'aksrt'); ?>">
<i class="fa fa-comment-o" aria-hidden="true"></i><?php echo esc_html((string) $comments); ?>
<i class="fa fas fa-comment" aria-hidden="true"></i><?php echo esc_html((string) $comments); ?>
</span>
<?php endif; ?>
<?php if ($likes > 0) : ?>
<span class="muted-2-color ml6" title="<?php esc_attr_e('点赞', 'aksrt'); ?>">
<i class="fa fa-thumbs-o-up" aria-hidden="true"></i><?php echo esc_html((string) $likes); ?>
<i class="fa fas fa-thumbs-up" aria-hidden="true"></i><?php echo esc_html((string) $likes); ?>
</span>
<?php endif; ?>
</li>
+3 -3
View File
@@ -35,11 +35,11 @@ $payload = class_exists(BanAppeal::class) ? BanAppeal::get_payload($user_id) : [
<div class="theme-box radius8 main-bg main-shadow box-body aksrt-ban-appeal">
<?php if (!$ban) : ?>
<div class="muted-2-color text-center" style="padding:40px 0;">
<i class="fa fa-check-circle em2x" aria-hidden="true"></i>
<i class="fa fas fa-check-circle em2x" aria-hidden="true"></i>
<p class="mt10"><?php esc_html_e('当前账号未处于禁封状态。', 'aksrt'); ?></p>
</div>
<?php elseif (empty($settings['enabled'])) : ?>
<div class="c-red"><i class="fa fa-info-circle mr6" aria-hidden="true"></i><?php esc_html_e('申诉功能暂未开启', 'aksrt'); ?></div>
<div class="c-red"><i class="fa fas fa-info-circle mr6" aria-hidden="true"></i><?php esc_html_e('申诉功能暂未开启', 'aksrt'); ?></div>
<?php elseif ($status === 'pending') : ?>
<div class="c-red mb10"><?php esc_html_e('您的申诉正在审核中,请耐心等待。', 'aksrt'); ?></div>
<?php if (!empty($payload['reason'])) : ?>
@@ -79,7 +79,7 @@ $payload = class_exists(BanAppeal::class) ? BanAppeal::get_payload($user_id) : [
<?php wp_nonce_field('aksrt_ban_appeal', '_wpnonce', false); ?>
<input type="hidden" name="action" value="aksrt_ban_appeal_submit">
<button type="submit" class="but c-blue padding-lg">
<i class="fa fa-paper-plane" aria-hidden="true"></i> <?php esc_html_e('提交申诉', 'aksrt'); ?>
<i class="fa fas fa-paper-plane" aria-hidden="true"></i> <?php esc_html_e('提交申诉', 'aksrt'); ?>
</button>
</form>
<?php endif; ?>
+8 -8
View File
@@ -33,7 +33,7 @@ if (!$is_download) {
get_header();
echo '<main class="container"><div class="content-wrap"><div class="content-layout">';
echo '<div class="alert jb-red em12" style="margin:2em;"><b>' . esc_html__('该内容不是可下载资源', 'aksrt') . '</b></div>';
echo '<p><a class="but jb-yellow padding-lg" href="' . esc_url(get_permalink($post)) . '#posts-pay"><i class="fa fa-long-arrow-left" aria-hidden="true"></i><span class="ml10">' . esc_html__('返回文章', 'aksrt') . '</span></a></p>';
echo '<p><a class="but jb-yellow padding-lg" href="' . esc_url(get_permalink($post)) . '#posts-pay"><i class="fa fas fa-long-arrow-alt-left" aria-hidden="true"></i><span class="ml10">' . esc_html__('返回文章', 'aksrt') . '</span></a></p>';
echo '</div></div></main>';
get_footer();
exit;
@@ -110,7 +110,7 @@ get_header();
</div>
<?php if ($paid_name !== '') : ?>
<b class="badg jb-red mr6" style="font-size:12px;padding:2px 10px;line-height:1.4;">
<i class="fa fa-check mr6" aria-hidden="true"></i><?php echo esc_html($paid_name); ?>
<i class="fa fas fa-check mr6" aria-hidden="true"></i><?php echo esc_html($paid_name); ?>
</b>
<?php endif; ?>
</div>
@@ -142,7 +142,7 @@ get_header();
?>
</div>
<a style="margin-bottom:2em;" href="<?php echo esc_url($login_url); ?>" class="but jb-red padding-lg">
<i class="fa fa-sign-in" aria-hidden="true"></i>
<i class="fa fas fa-sign-in-alt" aria-hidden="true"></i>
<span class="ml10"><?php esc_html_e('前往登录', 'aksrt'); ?></span>
</a>
<?php elseif ($need_vip) : ?>
@@ -150,11 +150,11 @@ get_header();
<b><?php echo esc_html(is_wp_error($gate) ? $gate->get_error_message() : __('该资源仅限会员购买/下载。', 'aksrt')); ?></b>
</div>
<a style="margin-bottom:1em;" href="<?php echo esc_url($vip_url); ?>" class="but jb-vip padding-lg">
<i class="fa fa-crown" aria-hidden="true"></i>
<i class="fa fas fa-certificate" aria-hidden="true"></i>
<span class="ml10"><?php esc_html_e('开通会员', 'aksrt'); ?></span>
</a>
<a style="margin-bottom:2em;" href="<?php echo esc_url($article_url); ?>" class="but jb-yellow padding-lg">
<i class="fa fa-long-arrow-left" aria-hidden="true"></i>
<i class="fa fas fa-long-arrow-alt-left" aria-hidden="true"></i>
<span class="ml10"><?php esc_html_e('返回文章', 'aksrt'); ?></span>
</a>
<?php elseif ($need_purchase) : ?>
@@ -169,11 +169,11 @@ get_header();
data-post-id="<?php echo esc_attr((string) $post_id); ?>"
style="margin-bottom:1em;"
>
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
<i class="fa fas fa-shopping-cart" aria-hidden="true"></i>
<span class="ml10"><?php printf(esc_html__('立即购买(%s)', 'aksrt'), $price_text); ?></span>
</button>
<a style="margin-bottom:2em;" href="<?php echo esc_url($article_url); ?>" class="but jb-yellow padding-lg">
<i class="fa fa-long-arrow-left" aria-hidden="true"></i>
<i class="fa fas fa-long-arrow-alt-left" aria-hidden="true"></i>
<span class="ml10"><?php esc_html_e('返回文章', 'aksrt'); ?></span>
</a>
<?php else : ?>
@@ -181,7 +181,7 @@ get_header();
<b><?php echo esc_html(is_wp_error($gate) ? $gate->get_error_message() : __('暂无下载权限', 'aksrt')); ?></b>
</div>
<a style="margin-bottom:2em;" href="<?php echo esc_url($article_url); ?>" class="but jb-yellow padding-lg">
<i class="fa fa-long-arrow-left" aria-hidden="true"></i>
<i class="fa fas fa-long-arrow-alt-left" aria-hidden="true"></i>
<span class="ml10"><?php esc_html_e('返回文章', 'aksrt'); ?></span>
</a>
<?php endif; ?>
+13 -13
View File
@@ -74,22 +74,22 @@ $dl_requires_login = function_exists('aksrt_user_can') && !aksrt_user_can('resou
<div class="aksrt-dl-status-bar">
<?php if ($is_logged_in) : ?>
<div class="aksrt-dl-status-bar__item">
<i class="fas fa-coins" aria-hidden="true"></i>
<i class="fa fas fa-money-bill" aria-hidden="true"></i>
<span class="aksrt-dl-status-bar__label"><?php echo esc_html($currency_name); ?></span>
<span class="aksrt-dl-status-bar__value"><?php echo esc_html(number_format_i18n($user_credits)); ?></span>
</div>
<div class="aksrt-dl-status-bar__item">
<i class="fas fa-download" aria-hidden="true"></i>
<i class="fa fas fa-download" aria-hidden="true"></i>
<span class="aksrt-dl-status-bar__label"><?php esc_html_e('已下载', 'aksrt'); ?></span>
<span class="aksrt-dl-status-bar__value"><?php echo esc_html(number_format_i18n($user_download_count)); ?></span>
</div>
<div class="aksrt-dl-status-bar__item aksrt-dl-status-bar__item--hint">
<i class="fas fa-info-circle" aria-hidden="true"></i>
<i class="fa fas fa-info-circle" aria-hidden="true"></i>
<span><?php esc_html_e('下载能力已归入统一内容付费模型,可从文章内容页直接解锁和下载。', 'aksrt'); ?></span>
</div>
<?php else : ?>
<div class="aksrt-dl-status-bar__item aksrt-dl-status-bar__item--hint">
<i class="fas fa-lock" aria-hidden="true"></i>
<i class="fa fas fa-lock" aria-hidden="true"></i>
<span>
<?php if ($dl_requires_login) : ?>
<?php esc_html_e('登录后可查看下载状态、积分余额并解锁可下载内容', 'aksrt'); ?>
@@ -134,7 +134,7 @@ $dl_requires_login = function_exists('aksrt_user_can') && !aksrt_user_can('resou
<p class="aksrt-download-card__excerpt"><?php echo esc_html(wp_trim_words(get_the_excerpt(), 20)); ?></p>
<div class="aksrt-download-card__meta">
<span class="aksrt-download-card__date">
<i class="fas fa-clock"></i>
<i class="fa fas fa-clock"></i>
<?php echo esc_html(get_the_date()); ?>
</span>
<?php
@@ -142,7 +142,7 @@ $dl_requires_login = function_exists('aksrt_user_can') && !aksrt_user_can('resou
if ($dl_count > 0) :
?>
<span class="aksrt-download-card__downloads">
<i class="fas fa-download"></i>
<i class="fa fas fa-download"></i>
<?php echo esc_html(number_format_i18n($dl_count)); ?>
</span>
<?php endif; ?>
@@ -159,7 +159,7 @@ $dl_requires_login = function_exists('aksrt_user_can') && !aksrt_user_can('resou
</span>
<a href="<?php the_permalink(); ?>" class="aksrt-download-card__action">
<?php esc_html_e('进入内容页', 'aksrt'); ?>
<i class="fas fa-arrow-right" aria-hidden="true"></i>
<i class="fa fas fa-arrow-right" aria-hidden="true"></i>
</a>
</div>
</div>
@@ -174,7 +174,7 @@ $dl_requires_login = function_exists('aksrt_user_can') && !aksrt_user_can('resou
?>
<?php else : ?>
<div class="aksrt-download-center__empty">
<i class="fas fa-folder-open"></i>
<i class="fa fas fa-folder-open"></i>
<p><?php esc_html_e('暂无启用下载能力的内容。', 'aksrt'); ?></p>
</div>
<?php endif; ?>
@@ -185,7 +185,7 @@ $dl_requires_login = function_exists('aksrt_user_can') && !aksrt_user_can('resou
<div class="aksrt-dl-sidebar-card">
<h3 class="aksrt-dl-sidebar-card__title">
<i class="fas fa-folder"></i>
<i class="fa fas fa-folder"></i>
<?php esc_html_e('下载类型', 'aksrt'); ?>
</h3>
<?php if (!empty($resource_type_labels)) : ?>
@@ -208,13 +208,13 @@ $dl_requires_login = function_exists('aksrt_user_can') && !aksrt_user_can('resou
<div class="aksrt-dl-sidebar-card">
<h3 class="aksrt-dl-sidebar-card__title">
<i class="fas fa-lightbulb"></i>
<i class="fa fas fa-lightbulb"></i>
<?php esc_html_e('下载须知', 'aksrt'); ?>
</h3>
<div class="aksrt-dl-sidebar-card__tips">
<p><i class="fas fa-book-open" aria-hidden="true"></i> <?php esc_html_e('优先从普通文章内容页进入主付费链路', 'aksrt'); ?></p>
<p><i class="fas fa-clock" aria-hidden="true"></i> <?php esc_html_e('下载链接 10 分钟内有效', 'aksrt'); ?></p>
<p><i class="fas fa-sync-alt" aria-hidden="true"></i> <?php esc_html_e('下载中心作为统一内容付费的补充入口', 'aksrt'); ?></p>
<p><i class="fa fas fa-book" aria-hidden="true"></i> <?php esc_html_e('优先从普通文章内容页进入主付费链路', 'aksrt'); ?></p>
<p><i class="fa fas fa-clock" aria-hidden="true"></i> <?php esc_html_e('下载链接 10 分钟内有效', 'aksrt'); ?></p>
<p><i class="fa fas fa-sync-alt" aria-hidden="true"></i> <?php esc_html_e('下载中心作为统一内容付费的补充入口', 'aksrt'); ?></p>
</div>
</div>
</div>
+28 -28
View File
@@ -29,7 +29,7 @@ if (!$messages_enabled) :
<main id="main-content" class="site-main content-shell" tabindex="-1">
<div class="container messages-center messages-center--disabled">
<div class="messages-empty">
<span class="messages-empty__icon"><i class="fas fa-bell-slash"></i></span>
<span class="messages-empty__icon"><i class="fa fas fa-bell-slash"></i></span>
<p class="messages-empty__text"><?php esc_html_e('站内消息功能未开启', 'aksrt'); ?></p>
<p class="messages-empty__hint"><?php esc_html_e('请联系管理员在后台「用户 → 消息通知」中启用。', 'aksrt'); ?></p>
</div>
@@ -151,28 +151,28 @@ $nav_items = [
}
$icon_map = [
'comment_reply' => 'fas fa-comment-dots',
'comment_approved' => 'fas fa-check-circle',
'credits_added' => 'fas fa-coins',
'credits_deducted' => 'fas fa-coins',
'download_ready' => 'fas fa-download',
'upload_moderation' => 'fas fa-image',
'verify_email' => 'fas fa-envelope-open-text',
'pending_comments' => 'fas fa-clock',
'conversation' => 'fas fa-envelope',
'pay' => 'fas fa-receipt',
'order_paid' => 'fas fa-receipt',
'order_refund' => 'fas fa-undo',
'after_sale' => 'fas fa-undo-alt',
'vip' => 'fas fa-crown',
'pay_vip' => 'fas fa-crown',
'medal' => 'fas fa-medal',
'badge' => 'fas fa-certificate',
'ban_appeal' => 'fas fa-gavel',
'user_ban' => 'fas fa-ban',
'auth_apply' => 'fas fa-id-badge',
'auth_apply_reply' => 'fas fa-id-badge',
'notice' => 'fas fa-bell',
'comment_reply' => 'fa fas fa-comment-dots',
'comment_approved' => 'fa fas fa-check-circle',
'credits_added' => 'fa fas fa-money-bill',
'credits_deducted' => 'fa fas fa-money-bill',
'download_ready' => 'fa fas fa-download',
'upload_moderation' => 'fa fas fa-image',
'verify_email' => 'fa fas fa-envelope-open',
'pending_comments' => 'fa fas fa-clock',
'conversation' => 'fa fas fa-envelope',
'pay' => 'fa fas fa-file-alt',
'order_paid' => 'fa fas fa-file-alt',
'order_refund' => 'fa fas fa-undo',
'after_sale' => 'fa fas fa-undo',
'vip' => 'fa fas fa-certificate',
'pay_vip' => 'fa fas fa-certificate',
'medal' => 'fa fas fa-certificate',
'badge' => 'fa fas fa-certificate',
'ban_appeal' => 'fa fas fa-gavel',
'user_ban' => 'fa fas fa-ban',
'auth_apply' => 'fa fas fa-id-badge',
'auth_apply_reply' => 'fa fas fa-id-badge',
'notice' => 'fa fas fa-bell',
];
$messages_base = function_exists('aksrt_get_messages_page_url') ? aksrt_get_messages_page_url() : get_permalink();
@@ -253,7 +253,7 @@ if (!$messages_base) {
</div>
<?php else : ?>
<div class="messages-empty">
<span class="messages-empty__icon"><i class="fas fa-envelope"></i></span>
<span class="messages-empty__icon"><i class="fa fas fa-envelope"></i></span>
<p class="messages-empty__text"><?php esc_html_e('暂无私信', 'aksrt'); ?></p>
<p class="messages-empty__hint"><?php esc_html_e('你可以在用户主页或文章作者栏发起私信。', 'aksrt'); ?></p>
</div>
@@ -262,13 +262,13 @@ if (!$messages_base) {
<div class="aksrt-pm__thread" id="aksrt-pm-thread" hidden>
<div class="aksrt-pm__thread-header">
<button type="button" class="aksrt-pm__back-btn" id="aksrt-pm-back"><i class="fas fa-arrow-left"></i> <?php esc_html_e('返回', 'aksrt'); ?></button>
<button type="button" class="aksrt-pm__back-btn" id="aksrt-pm-back"><i class="fa fas fa-arrow-left"></i> <?php esc_html_e('返回', 'aksrt'); ?></button>
<span class="aksrt-pm__thread-name" id="aksrt-pm-thread-name"></span>
</div>
<div class="aksrt-pm__messages" id="aksrt-pm-messages"></div>
<div class="aksrt-pm__compose">
<textarea id="aksrt-pm-input" rows="2" placeholder="<?php echo esc_attr($pm_placeholder); ?>"></textarea>
<button type="button" id="aksrt-pm-send" class="aksrt-pm__send-btn" aria-label="<?php echo esc_attr($pm_submit); ?>"><i class="fas fa-paper-plane"></i></button>
<button type="button" id="aksrt-pm-send" class="aksrt-pm__send-btn" aria-label="<?php echo esc_attr($pm_submit); ?>"><i class="fa fas fa-paper-plane"></i></button>
</div>
</div>
@@ -286,7 +286,7 @@ if (!$messages_base) {
$time_str = $is_state
? __('状态提醒', 'aksrt')
: ($created !== '' ? get_date_from_gmt($created, 'Y-m-d H:i') : '');
$icon_cls = $icon_map[$n_type] ?? 'fas fa-bell';
$icon_cls = $icon_map[$n_type] ?? 'fa fas fa-bell';
?>
<article class="message-item<?php echo !$is_read ? ' is-unread' : ''; ?>" data-notification-id="<?php echo esc_attr($n_id); ?>">
<span class="message-item__icon">
@@ -337,7 +337,7 @@ if (!$messages_base) {
<?php else : ?>
<div class="messages-empty">
<span class="messages-empty__icon"><i class="fas fa-bell-slash"></i></span>
<span class="messages-empty__icon"><i class="fa fas fa-bell-slash"></i></span>
<p class="messages-empty__text"><?php esc_html_e('暂无消息', 'aksrt'); ?></p>
</div>
<?php endif; ?>
+1 -1
View File
@@ -158,7 +158,7 @@ get_header();
<p class="modal-title">
<?php esc_html_e('当前页面设置', 'aksrt'); ?>
<button type="button" class="close" data-dismiss="modal" aria-label="<?php esc_attr_e('关闭', 'aksrt'); ?>">
<i class="fa fa-times" aria-hidden="true"></i>
<i class="fa fas fa-times" aria-hidden="true"></i>
</button>
</p>
</div>
+4 -4
View File
@@ -193,7 +193,7 @@ $sign_css_ver = file_exists(get_template_directory() . '/assets/css/routes/sign.
<label for="sign-user-pass"><?php esc_html_e('密码', 'aksrt'); ?></label>
<div class="input-wrap">
<input type="password" name="pwd" id="sign-user-pass" autocomplete="current-password" required>
<button type="button" class="toggle-pwd" data-target="sign-user-pass"><i class="fas fa-eye"></i></button>
<button type="button" class="toggle-pwd" data-target="sign-user-pass"><i class="fa fas fa-eye"></i></button>
</div>
</div>
<div class="form-row-between">
@@ -237,14 +237,14 @@ $sign_css_ver = file_exists(get_template_directory() . '/assets/css/routes/sign.
<label for="sign-reg-pass"><?php esc_html_e('登录密码', 'aksrt'); ?></label>
<div class="input-wrap">
<input type="password" name="user_pass" id="sign-reg-pass" autocomplete="new-password" required minlength="6">
<button type="button" class="toggle-pwd" data-target="sign-reg-pass"><i class="fas fa-eye"></i></button>
<button type="button" class="toggle-pwd" data-target="sign-reg-pass"><i class="fa fas fa-eye"></i></button>
</div>
</div>
<div class="form-field">
<label for="sign-reg-pass2"><?php esc_html_e('确认密码', 'aksrt'); ?></label>
<div class="input-wrap">
<input type="password" name="user_pass_confirm" id="sign-reg-pass2" autocomplete="new-password" required minlength="6">
<button type="button" class="toggle-pwd" data-target="sign-reg-pass2"><i class="fas fa-eye"></i></button>
<button type="button" class="toggle-pwd" data-target="sign-reg-pass2"><i class="fa fas fa-eye"></i></button>
</div>
</div>
<?php
@@ -308,7 +308,7 @@ $sign_css_ver = file_exists(get_template_directory() . '/assets/css/routes/sign.
if(!input)return;
var isPw=input.type==='password';
input.type=isPw?'text':'password';
this.querySelector('i').className=isPw?'fas fa-eye-slash':'fas fa-eye';
this.querySelector('i').className=isPw?'fa fas fa-eye-slash':'fa fas fa-eye';
});
});
})();