← All changes
|
includes/extensions/Live_Chat/templates/admin-page.php
+13
-4
51.1.44
→
51.1.87
View file →
| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | // Theme mode is per-user |
| 23 | 23 | $theme_mode = get_user_meta(get_current_user_id(), 'king_addons_theme_mode', true); |
| 24 | 24 | $allowed_theme_modes = ['dark', 'light', 'auto']; |
| 25 | 25 | if (!in_array($theme_mode, $allowed_theme_modes, true)) { |
| 26 | - $theme_mode = 'dark'; | |
| 26 | + $theme_mode = 'auto'; | |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | $current_tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : 'inbox'; |
| 30 | 30 | $conversation_id = isset($_GET['conversation']) ? intval($_GET['conversation']) : 0; |
| @@ -765,11 +765,20 @@ | ||
| 765 | 765 | </span> |
| 766 | 766 | <?php endif; ?> |
| 767 | 767 | <div class="ka-v3-segmented" id="ka-v3-theme-segment" role="radiogroup" aria-label="Theme" data-active="<?php echo esc_attr($theme_mode); ?>"> |
| 768 | 768 | <span class="ka-v3-segmented-indicator" aria-hidden="true"></span> |
| 769 | - <button type="button" class="ka-v3-segmented-btn" data-theme="light" aria-pressed="<?php echo $theme_mode === 'light' ? 'true' : 'false'; ?>"><?php esc_html_e('Light', 'king-addons'); ?></button> | |
| 770 | - <button type="button" class="ka-v3-segmented-btn" data-theme="dark" aria-pressed="<?php echo $theme_mode === 'dark' ? 'true' : 'false'; ?>"><?php esc_html_e('Dark', 'king-addons'); ?></button> | |
| 771 | - <button type="button" class="ka-v3-segmented-btn" data-theme="auto" aria-pressed="<?php echo $theme_mode === 'auto' ? 'true' : 'false'; ?>"><?php esc_html_e('Auto', 'king-addons'); ?></button> | |
| 769 | + <button type="button" class="ka-v3-segmented-btn" data-theme="light" aria-pressed="<?php echo $theme_mode === 'light' ? 'true' : 'false'; ?>"> | |
| 770 | + <span class="ka-v3-segmented-icon" aria-hidden="true">☀︎</span> | |
| 771 | + <?php esc_html_e('Light', 'king-addons'); ?> | |
| 772 | + </button> | |
| 773 | + <button type="button" class="ka-v3-segmented-btn" data-theme="dark" aria-pressed="<?php echo $theme_mode === 'dark' ? 'true' : 'false'; ?>"> | |
| 774 | + <span class="ka-v3-segmented-icon" aria-hidden="true">☾</span> | |
| 775 | + <?php esc_html_e('Dark', 'king-addons'); ?> | |
| 776 | + </button> | |
| 777 | + <button type="button" class="ka-v3-segmented-btn" data-theme="auto" aria-pressed="<?php echo $theme_mode === 'auto' ? 'true' : 'false'; ?>"> | |
| 778 | + <span class="ka-v3-segmented-icon" aria-hidden="true">◐</span> | |
| 779 | + <?php esc_html_e('Auto', 'king-addons'); ?> | |
| 780 | + </button> | |
| 772 | 781 | </div> |
| 773 | 782 | </div> |
| 774 | 783 | </div> |
| 775 | 784 | |