fix(icons): swap FA4-only class names for FA5 equivalents

fa-clock-o/fa-folder-open-o did not exist in the bundled FA5 fonts and
rendered nothing; fa-file-text-o maps to fa-file-alt in FA5 Free (there
is no fa-file-text glyph either).
This commit is contained in:
2026-09-06 12:59:31 +08:00
parent 5b5db0f8f5
commit d599bbccd9
2 changed files with 6 additions and 6 deletions
@@ -125,7 +125,7 @@ final class ContentRenderer {
if (is_wp_error($href)) {
continue;
}
$icon = '<i class="fa fa-folder-open-o mr6" aria-hidden="true"></i>';
$icon = '<i class="fa fa-folder-open mr6" aria-hidden="true"></i>';
$card = [
'type' => (string) ($instance['type'] ?? 'style-1'),
'class' => 'mb10',
@@ -143,7 +143,7 @@ final class ContentRenderer {
$card['text3'] = '<item data-toggle="tooltip" title="' . esc_attr(sprintf(__('共%d篇文章', 'aksrt'), $count)) . '">' . $icon . $count . '</item>';
} elseif ($type === 'style-3') {
$card['text1'] = $icon . $name;
$card['text3'] = '<i class="fa mr6 fa-file-text-o" aria-hidden="true"></i>' . $count . __('篇文章', 'aksrt');
$card['text3'] = '<i class="fa mr6 fa-file-alt" aria-hidden="true"></i>' . $count . __('篇文章', 'aksrt');
}
$attr = '';