fix(widgets): align user card action buttons

This commit is contained in:
2026-09-03 21:33:30 +08:00
parent 5b48be68da
commit 4f8ab94fac
5 changed files with 15 additions and 61 deletions
+2 -2
View File
@@ -222,7 +222,7 @@ final class UserRenderer {
}
/**
* 卡片按钮1(legacy zib_get_new_add_btns 的 post 类型 parity)。
* 卡片按钮1(legacy zib_get_new_add_btns 的单按钮 parity:正则剥掉 icon/text,输出纯文字药丸)。
*/
private static function new_add_btn(string $type, string $class, string $text): string {
if ($type !== 'post') {
@@ -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-edit" 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) . '">' . esc_html($text) . '</a>';
}
private static function card_link(string $url, string $class, string $text, bool $nofollow = false): string {