diff --git a/templates/parts/resource-download-box.php b/templates/parts/resource-download-box.php index b69d213c..81ec3e44 100644 --- a/templates/parts/resource-download-box.php +++ b/templates/parts/resource-download-box.php @@ -358,7 +358,7 @@ if ($is_need_purchase && $user_amount > 0) { if ($is_need_login) { $btn_href = $login_url; $btn_text = __('登录后下载', 'aksrt'); - $btn_icon = $icon_markup !== '' ? $icon_markup : ''; + $btn_icon = $icon_markup !== '' ? $icon_markup : ''; $btn_extra_class = ''; $btn_modifier = ' resource-download-box__btn--login'; $btn_target = ''; @@ -366,7 +366,7 @@ if ($is_need_purchase && $user_amount > 0) { } else { $btn_href = $url; $btn_text = $label; - $btn_icon = $icon_markup !== '' ? $icon_markup : ''; + $btn_icon = $icon_markup !== '' ? $icon_markup : ''; $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_target = ' target="_blank"';