fix(header): Batch 4-5 theme/publish polish for zibll parity
This commit is contained in:
@@ -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'] ?? '')),
|
||||
|
||||
Reference in New Issue
Block a user