← All changes
|
includes/extensions/Custom_Code_Manager/templates/admin-settings.php
+19
-2
51.1.44
→
51.1.86
View file →
| @@ -25,8 +25,25 @@ | ||
| 25 | 25 | </a> |
| 26 | 26 | <h1 class="kng-cc-title"><?php esc_html_e('Settings', 'king-addons'); ?></h1> |
| 27 | 27 | <p class="kng-cc-subtitle"><?php esc_html_e('Configure Custom Code Manager behavior', 'king-addons'); ?></p> |
| 28 | 28 | </div> |
| 29 | + <div class="kng-cc-header-right"> | |
| 30 | + <div class="ka-v3-segmented" id="ka-v3-theme-segment" role="radiogroup" aria-label="<?php echo esc_attr(esc_html__('Theme', 'king-addons')); ?>" data-active="<?php echo esc_attr($theme_mode); ?>"> | |
| 31 | + <span class="ka-v3-segmented-indicator" aria-hidden="true"></span> | |
| 32 | + <button type="button" class="ka-v3-segmented-btn" data-theme="light" aria-pressed="<?php echo $theme_mode === 'light' ? 'true' : 'false'; ?>"> | |
| 33 | + <span class="ka-v3-segmented-icon" aria-hidden="true">☀︎</span> | |
| 34 | + <?php esc_html_e('Light', 'king-addons'); ?> | |
| 35 | + </button> | |
| 36 | + <button type="button" class="ka-v3-segmented-btn" data-theme="dark" aria-pressed="<?php echo $theme_mode === 'dark' ? 'true' : 'false'; ?>"> | |
| 37 | + <span class="ka-v3-segmented-icon" aria-hidden="true">☾</span> | |
| 38 | + <?php esc_html_e('Dark', 'king-addons'); ?> | |
| 39 | + </button> | |
| 40 | + <button type="button" class="ka-v3-segmented-btn" data-theme="auto" aria-pressed="<?php echo $theme_mode === 'auto' ? 'true' : 'false'; ?>"> | |
| 41 | + <span class="ka-v3-segmented-icon" aria-hidden="true">◐</span> | |
| 42 | + <?php esc_html_e('Auto', 'king-addons'); ?> | |
| 43 | + </button> | |
| 44 | + </div> | |
| 45 | + </div> | |
| 29 | 46 | </header> |
| 30 | 47 | |
| 31 | 48 | <div class="kng-cc-settings-content"> |
| 32 | 49 | <form id="kng-cc-settings-form" class="kng-cc-settings-form"> |
| @@ -56,10 +73,10 @@ | ||
| 56 | 73 | <!-- Default Settings --> |
| 57 | 74 | <div class="kng-cc-settings-card"> |
| 58 | 75 | <div class="kng-cc-settings-card-header"> |
| 59 | 76 | <h3> |
| 60 | - <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="20" height="20"> | |
| 61 | - <path d="M12 3v18M3 12h18"/> | |
| 77 | + <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="20" height="20"> | |
| 78 | + <line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/> | |
| 62 | 79 | </svg> |
| 63 | 80 | <?php esc_html_e('Defaults', 'king-addons'); ?> |
| 64 | 81 | </h3> |
| 65 | 82 | </div> |