fix(download): use FA5 class form for download box fallback icons

This commit is contained in:
2026-09-26 21:03:32 +08:00
parent eb14c4afd3
commit d6bc1067f9
+2 -2
View File
@@ -358,7 +358,7 @@ if ($is_need_purchase && $user_amount > 0) {
if ($is_need_login) { if ($is_need_login) {
$btn_href = $login_url; $btn_href = $login_url;
$btn_text = __('登录后下载', 'aksrt'); $btn_text = __('登录后下载', 'aksrt');
$btn_icon = $icon_markup !== '' ? $icon_markup : '<i class="fa fa-sign-in-alt" aria-hidden="true"></i>'; $btn_icon = $icon_markup !== '' ? $icon_markup : '<i class="fa fas fa-sign-in-alt" aria-hidden="true"></i>';
$btn_extra_class = ''; $btn_extra_class = '';
$btn_modifier = ' resource-download-box__btn--login'; $btn_modifier = ' resource-download-box__btn--login';
$btn_target = ''; $btn_target = '';
@@ -366,7 +366,7 @@ if ($is_need_purchase && $user_amount > 0) {
} else { } else {
$btn_href = $url; $btn_href = $url;
$btn_text = $label; $btn_text = $label;
$btn_icon = $icon_markup !== '' ? $icon_markup : '<i class="fa fa-download" aria-hidden="true"></i>'; $btn_icon = $icon_markup !== '' ? $icon_markup : '<i class="fa fas fa-download" aria-hidden="true"></i>';
$btn_extra_class = $button_class !== '' ? ' ' . $button_class : ''; $btn_extra_class = $button_class !== '' ? ' ' . $button_class : '';
$btn_modifier = ($has_paid_access ? ' resource-download-box__btn--owned' : '') . ($button_class !== '' ? ' resource-download-box__btn--custom' : ''); $btn_modifier = ($has_paid_access ? ' resource-download-box__btn--owned' : '') . ($button_class !== '' ? ' resource-download-box__btn--custom' : '');
$btn_target = ' target="_blank"'; $btn_target = ' target="_blank"';