fix(download): use FA5 class form for download box fallback icons
This commit is contained in:
@@ -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 : '<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_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 : '<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_modifier = ($has_paid_access ? ' resource-download-box__btn--owned' : '') . ($button_class !== '' ? ' resource-download-box__btn--custom' : '');
|
||||
$btn_target = ' target="_blank"';
|
||||
|
||||
Reference in New Issue
Block a user