fix(icons): 清理 FA4 残留图标类,统一为 Font Awesome 5 约定

- 通用 fa fa-X 前缀改为 fa fas fa-X(12 个生产文件)
- 重命名图标映射:fa-sign-in→fa-sign-in-alt、fa-envelope-o→far fa-envelope、
  fa-trash-o→far fa-trash-alt、fa-file-image-o→far fa-file-image、
  fa-dot-circle-o→far fa-dot-circle、fa-play-circle-o→far fa-play-circle、
  fa-pencil→fas fa-pencil-alt
- 修复 FA5 中不存在的 fa-pencil-square→fas fa-edit
This commit is contained in:
2026-09-02 21:48:42 +08:00
parent ddf7c37556
commit 5984d4e42d
12 changed files with 43 additions and 43 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ final class UserRenderer {
if ($url === '') {
return '';
}
return '<a rel="nofollow" class="newadd-btns ' . esc_attr($class) . '" href="' . esc_url($url) . '"><icon class="jb-green"><i class="fa fas fa-pencil-square" aria-hidden="true"></i></icon><text>' . esc_html($text) . '</text></a>';
return '<a rel="nofollow" class="newadd-btns ' . esc_attr($class) . '" href="' . esc_url($url) . '"><icon class="jb-green"><i class="fa fas fa-edit" aria-hidden="true"></i></icon><text>' . esc_html($text) . '</text></a>';
}
private static function card_link(string $url, string $class, string $text, bool $nofollow = false): string {