fix(header): Batch 4-5 theme/publish polish for zibll parity
This commit is contained in:
1 parent
1f87ab3b1b
commit
3e58eecbc5
2 files changed
+6
-5
No files matched your search
+4
-4
@@ -276,8 +276,8 @@ if (!empty($aksrt_bg_styles)) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if (in_array('pc_nav', $aksrt_theme_toggle_positions, true)) : ?>
|
<?php if (in_array('pc_nav', $aksrt_theme_toggle_positions, true)) : ?>
|
||||||
<button type="button" class="btn-outline theme-toggle-desktop" id="theme-toggle-desktop" title="<?php esc_attr_e('切换亮暗色', 'aksrt'); ?>">
|
<button type="button" class="btn-outline theme-toggle-desktop toggle-theme toggle-radius" id="theme-toggle-desktop" title="<?php esc_attr_e('切换亮暗色', 'aksrt'); ?>">
|
||||||
<i class="fas fa-adjust" aria-hidden="true"></i>
|
<i class="fas fa-adjust fa-toggle-theme" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
@@ -513,8 +513,8 @@ if (!empty($aksrt_bg_styles)) {
|
|||||||
|
|
||||||
<?php if (in_array('m_menu', $aksrt_theme_toggle_positions, true)) : ?>
|
<?php if (in_array('m_menu', $aksrt_theme_toggle_positions, true)) : ?>
|
||||||
<div class="nav-drawer__theme-toggle">
|
<div class="nav-drawer__theme-toggle">
|
||||||
<button type="button" class="btn-outline theme-toggle-mobile" id="theme-toggle-mobile" title="<?php esc_attr_e('切换亮暗色', 'aksrt'); ?>">
|
<button type="button" class="btn-outline theme-toggle-mobile toggle-theme toggle-radius" id="theme-toggle-mobile" title="<?php esc_attr_e('切换亮暗色', 'aksrt'); ?>">
|
||||||
<i class="fas fa-adjust" aria-hidden="true"></i>
|
<i class="fas fa-adjust fa-toggle-theme" aria-hidden="true"></i>
|
||||||
<span><?php esc_html_e('切换主题', 'aksrt'); ?></span>
|
<span><?php esc_html_e('切换主题', 'aksrt'); ?></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -58,7 +58,8 @@ trait FacadeBulk {
|
|||||||
$s = self::get_all();
|
$s = self::get_all();
|
||||||
|
|
||||||
return [
|
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> 发布')),
|
'text' => trim((string) ($s['header_newposts_text'] ?? '<i class="fa fa-pencil"></i> 发布')),
|
||||||
'radius' => max(0, min(30, (int) ($s['header_newposts_radius'] ?? 20))),
|
'radius' => max(0, min(30, (int) ($s['header_newposts_radius'] ?? 20))),
|
||||||
'class' => sanitize_html_class((string) ($s['header_newposts_class'] ?? '')),
|
'class' => sanitize_html_class((string) ($s['header_newposts_class'] ?? '')),
|
||||||
|
|||||||
Reference in new issue
Block a user