fix(header): Batch 4-5 theme/publish polish for zibll parity

This commit is contained in:
2026-07-21 17:19:55 +08:00
parent 1f87ab3b1b
commit 3e58eecbc5
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ trait FacadeBulk {
$s = self::get_all();
return [
'enabled' => !empty($s['header_newposts_enabled']),
// Default on like zibll nav_newposts when key unset.
'enabled' => !isset($s['header_newposts_enabled']) || !empty($s['header_newposts_enabled']),
'text' => trim((string) ($s['header_newposts_text'] ?? '<i class="fa fa-pencil"></i> 发布')),
'radius' => max(0, min(30, (int) ($s['header_newposts_radius'] ?? 20))),
'class' => sanitize_html_class((string) ($s['header_newposts_class'] ?? '')),