PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.4.6
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.4.6
2.1.3 2.1.2 2.1.1 2.1.0 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 trunk 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 All 57 releases
← All changes | src/Admin/Views/ColorControl.php +161 -322 2.0.01.4.6 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2
3 3 /**
4 - * ColorControl class for Color options.
4 + * Views class for Shortcode generator options.
5 5 *
6 6 * @link https://themeatelier.net
7 7 * @since 1.0.0
8 8 *
@@ -12,9 +12,9 @@
12 12 */
13 13
14 14 namespace ThemeAtelier\Darkify\Admin\Views;
15 15
16 -use ThemeAtelier\Darkify\Admin\Schema\SchemaRegistry as Darkify;
16 +use ThemeAtelier\Darkify\Admin\Framework\Classes\Darkify;
17 17
18 18 class ColorControl
19 19 {
20 20 /**
@@ -27,9 +27,9 @@
27 27 {
28 28 Darkify::createSection(
29 29 $prefix,
30 30 array(
31 - 'title' => esc_html__('Colors', 'darkify'),
31 + 'title' => esc_html__('COLORS', 'darkify'),
32 32 'icon' => 'icofont-paint',
33 33 'fields' => array(
34 34
35 35 array(
@@ -38,77 +38,74 @@
38 38 array(
39 39 'title' => esc_html__('Preset', 'darkify'),
40 40 'icon' => 'icofont-color-bucket',
41 41 'fields' => array(
42 - // Intro line, rendered plain above the section card.
43 42 array(
44 - 'type' => 'page_hint',
45 - 'content' => esc_html__('Pick a dark-mode color preset, then fine-tune any individual color for your site.', 'darkify'),
46 - ),
47 - // ===== CHOOSE A PRESET =====
48 - array(
49 - 'type' => 'heading',
50 - 'title' => esc_html__('Choose A Preset', 'darkify'),
51 - 'section_start' => true,
52 - ),
53 - array(
54 43 'id' => 'color_pallets',
55 44 'type' => 'palette',
56 45 'class' => 'darkify_preset',
57 - // Title lifted to the section heading above; the field keeps only its
58 - // short description (rendered above the swatch grid by PaletteField).
59 - 'title_help' =>
60 - esc_html__('Choose from pre-made dark-mode color presets.', 'darkify'),
61 -
46 + 'title' => esc_html__('Choose A Preset', 'darkify'),
47 + 'title_help' => '<div class="darkify-info-label">' . __('Choose from pre-made dark mode color presets.', 'darkify') . '</div><a class="tooltip_btn_primary" href="https://darkifywp.com/colors/" target="_blank">' . __('Live Demo', 'darkify') . '</a><a class="tooltip_btn_secondary" href="https://docs.themeatelier.net/docs/darkify-pro/darkify-settings/colors/" target="_blank">' . __('Open Docs', 'darkify') . '</a>',
62 48 'options' => array(
63 49 'set1' => array(
64 50 'colors' => array('#0F0F0F', '#4A4A4A', '#BEBEBE', '#171717', '#2D2D2D'),
65 51 'name' => esc_html__('Carbon Mist', 'darkify'),
52 + 'demo_url' => 'https://youtu.be/0ervhCG6V4U?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
66 53 ),
67 54 'set3' => array(
68 55 'colors' => array('#211e3c', '#B1BBD8', '#302C57', '#4E478D', '#2A264D'),
69 56 'name' => esc_html__('Midnight Reverie', 'darkify'),
57 + 'demo_url' => 'https://youtu.be/Gz0SDK_08GQ?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
70 58 ),
71 59 'set9' => array(
72 60 'colors' => array('#04261d', '#C1D2BB', '#021e16', '#073d2f', '#095541'),
73 61 'name' => esc_html__('Verdant Depths', 'darkify'),
62 + 'demo_url' => 'https://youtu.be/8r-yeDV83Cs?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
74 63 ),
75 64 'set6' => array(
76 65 'colors' => array('#082032', '#B5D9F3', '#061825', '#144E78', '#0E3755'),
77 66 'name' => esc_html__('Celestial Tide', 'darkify'),
67 + 'demo_url' => 'https://youtu.be/isHN5V4i-aw?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
78 68 ),
79 69 'set10' => array(
80 70 'colors' => array('#171004', '#E0D2BD', '#211706', '#372911', '#5D4010'),
81 71 'name' => esc_html__('Emberwood', 'darkify'),
72 + 'demo_url' => 'https://youtu.be/q4DQOivcurk?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
82 73 ),
83 74 'set2' => array(
84 75 'colors' => array('#092635', '#BEE0F1', '#081E29', '#123d52', '#195979'),
85 76 'name' => esc_html__('Glacier Drift', 'darkify'),
77 + 'demo_url' => 'https://youtu.be/mwf5nG2gSv4?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
86 78 'pro_only' => true,
87 79 ),
88 80 'set4' => array(
89 81 'colors' => array('#1d253a', '#B1BBD8', '#2B3655', '#46598C', '#242F4C'),
90 82 'name' => esc_html__('Indigo Veil', 'darkify'),
83 + 'demo_url' => 'https://youtu.be/o58ns9RRGlU?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
91 84 'pro_only' => true,
92 85 ),
93 86 'set5' => array(
94 87 'colors' => array('#1b1823', '#C6C1D5', '#352f44', '#403953', '#54496f'),
95 88 'name' => esc_html__('Duskmire', 'darkify'),
89 + 'demo_url' => 'https://youtu.be/eAeNuboi--Y?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
96 90 'pro_only' => true,
97 91 ),
98 92 'set7' => array(
99 93 'colors' => array('#07161b', '#C5E6F0', '#0d242e', '#286F8D', '#19495A'),
100 94 'name' => esc_html__('Tidal Frost', 'darkify'),
95 + 'demo_url' => 'https://youtu.be/cUMElxZ0-EY?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
101 96 'pro_only' => true,
102 97 ),
103 98 'set8' => array(
104 99 'colors' => array('#15274C', '#ACC1EA', '#112244', '#244892', '#1a2f5c'),
105 100 'name' => esc_html__('Blue Bastion', 'darkify'),
101 + 'demo_url' => 'https://youtu.be/fi_yopdUul4?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
106 102 'pro_only' => true,
107 103 ),
108 104 'set11' => array(
109 105 'colors' => array('#19081b', '#c09dc2', '#210a24', '#440649', '#2c082f'),
110 106 'name' => esc_html__('Crimson Veil', 'darkify'),
107 + 'demo_url' => 'https://youtu.be/cYHTpisGhBQ?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l',
111 108 'pro_only' => true,
112 109 ),
113 110 ),
114 111 'default' => 'set1',
@@ -113,11 +110,10 @@
113 110 ),
114 111 'default' => 'set1',
115 112 ),
116 113 array(
117 - 'type' => 'heading',
118 - 'title' => esc_html__('Customize Selected Preset', 'darkify'),
119 - 'section_start' => true,
114 + 'type' => 'subheading',
115 + 'title' => esc_html__('Customize Selected Preset', 'darkify'),
120 116 ),
121 117
122 118 // color pallate set 1
123 119 array(
@@ -123,18 +119,14 @@
123 119 array(
124 120 'id' => 'dark_mode_color_set1',
125 121 'type' => 'color_group',
126 122 'title' => esc_html__('Background', 'darkify'),
127 - 'title_help' =>
128 - '<div class="darkify-info-label">' .
129 - __('Set the background colors used when dark mode is enabled on your website.', 'darkify') .
130 - '</div>',
131 - 'options' => array(
132 - 'background' => esc_html__('Primary', 'darkify'),
133 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
123 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
124 + 'dependency' => array('color_pallets', '==', 'set1', 'all'),
125 + 'options' => array(
126 + 'background' => esc_html__('Primary BG', 'darkify'),
127 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
134 128 ),
135 -
136 - 'dependency' => array('color_pallets', '==', 'set1', 'all'),
137 129 'default' => array(
138 130 'background' => '#0F0F0F',
139 131 'secondary_background' => '#171717',
140 132 ),
@@ -142,13 +134,9 @@
142 134 array(
143 135 'id' => 'dark_mode_link_color_set1',
144 136 'type' => 'color_group',
145 137 'title' => esc_html__('Text', 'darkify'),
146 - 'title_help' =>
147 - '<div class="darkify-info-label">' .
148 - __('Set the text color of your website when dark mode is enabled.', 'darkify') .
149 - '</div>',
150 -
138 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
151 139 'dependency' => array('color_pallets', '==', 'set1', 'all'),
152 140 'class' => 'only_pro',
153 141 'options' => array(
154 142 'text' => esc_html__('Text Color', 'darkify'),
@@ -164,21 +152,16 @@
164 152 array(
165 153 'id' => 'dark_mode_input_color_set1',
166 154 'type' => 'color_group',
167 155 'title' => esc_html__('Input', 'darkify'),
168 - 'title_help' =>
169 - '<div class="darkify-info-label">' .
170 - __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
171 - '</div>',
172 -
156 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
173 157 'dependency' => array('color_pallets', '==', 'set1', 'all'),
174 158 'class' => 'only_pro',
175 - 'options' => array(
176 - 'color' => esc_html__('Input Text', 'darkify'),
177 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
178 - 'background' => esc_html__('Input Background', 'darkify'),
159 + 'options' => array(
160 + 'color' => esc_html__('Input Text', 'darkify'),
161 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
162 + 'background' => esc_html('Input Background', 'darkify'),
179 163 ),
180 -
181 164 'default' => array(
182 165 'color' => '#BEBEBE',
183 166 'placeholder' => '#BEBEBE',
184 167 'background' => '#2D2D2D',
@@ -187,13 +170,9 @@
187 170 array(
188 171 'id' => 'dark_mode_border_color_set1',
189 172 'type' => 'color',
190 173 'title' => esc_html__('Border', 'darkify'),
191 - 'title_help' =>
192 - '<div class="darkify-info-label">' .
193 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
194 - '</div>',
195 -
174 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
196 175 'class' => 'only_pro',
197 176 'dependency' => array('color_pallets', '==', 'set1', 'all'),
198 177 'default' => '#4A4A4A',
199 178 ),
@@ -200,22 +179,17 @@
200 179 array(
201 180 'id' => 'dark_mode_btn_color_set1',
202 181 'type' => 'color_group',
203 182 'title' => esc_html__('Button', 'darkify'),
204 - 'title_help' =>
205 - '<div class="darkify-info-label">' .
206 - __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
207 - '</div>',
208 -
209 - 'options' => array(
210 - 'color' => esc_html__('Text Color', 'darkify'),
211 - 'background' => esc_html__('Background', 'darkify'),
212 - 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
213 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
214 - ),
215 -
183 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
216 184 'class' => 'only_pro',
217 185 'dependency' => array('color_pallets', '==', 'set1', 'all'),
186 + 'options' => array(
187 + 'color' => esc_html__('Color', 'darkify'),
188 + 'background' => esc_html('Background', 'darkify'),
189 + 'hover_color' => esc_html__('Hover Color', 'darkify'),
190 + 'hover_background' => esc_html('Hover Background', 'darkify'),
191 + ),
218 192 'default' => array(
219 193 'color' => '#BEBEBE',
220 194 'background' => '#4A4A4A',
221 195 'hover_color' => '#BEBEBE',
@@ -226,19 +200,14 @@
226 200 array(
227 201 'id' => 'dark_mode_color_set3',
228 202 'type' => 'color_group',
229 203 'title' => esc_html__('Background', 'darkify'),
230 - 'title_help' =>
231 - '<div class="darkify-info-label">' .
232 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
233 - '</div>',
234 -
204 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
205 + 'dependency' => array('color_pallets', '==', 'set3', 'all'),
235 206 'options' => array(
236 - 'background' => esc_html__('Primary', 'darkify'),
237 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
207 + 'background' => esc_html__('Primary BG', 'darkify'),
208 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
238 209 ),
239 - 'dependency' => array('color_pallets', '==', 'set3', 'all'),
240 -
241 210 'default' => array(
242 211 'background' => '#211e3c',
243 212 'secondary_background' => '#302C57',
244 213 ),
@@ -246,21 +215,16 @@
246 215 array(
247 216 'id' => 'dark_mode_link_color_set3',
248 217 'type' => 'color_group',
249 218 'title' => esc_html__('Text', 'darkify'),
250 - 'title_help' =>
251 - '<div class="darkify-info-label">' .
252 - __('Set the text and link colors of your website when dark mode is enabled.', 'darkify') .
253 - '</div>',
254 -
255 - 'options' => array(
256 - 'text' => esc_html__('Text Color', 'darkify'),
219 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
220 + 'class' => 'only_pro',
221 + 'dependency' => array('color_pallets', '==', 'set3', 'all'),
222 + 'options' => array(
223 + 'text' => esc_html__('Text Color', 'darkify'),
257 224 'color' => esc_html__('Link Color', 'darkify'),
258 225 'hover' => esc_html__('Link Hover Color', 'darkify'),
259 226 ),
260 -
261 - 'class' => 'only_pro',
262 - 'dependency' => array('color_pallets', '==', 'set3', 'all'),
263 227 'default' => array(
264 228 'text' => '#B1BBD8',
265 229 'color' => '#8071fb',
266 230 'hover' => '#B1BBD8',
@@ -269,21 +233,16 @@
269 233 array(
270 234 'id' => 'dark_mode_input_color_set3',
271 235 'type' => 'color_group',
272 236 'title' => esc_html__('Input', 'darkify'),
273 - 'title_help' =>
274 - '<div class="darkify-info-label">' .
275 - __('Set the input field color of your website when dark mode is enabled.', 'darkify') .
276 - '</div>',
277 -
278 - 'options' => array(
279 - 'color' => esc_html__('Input Text', 'darkify'),
280 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
281 - 'background' => esc_html__('Input Background', 'darkify'),
282 - ),
283 -
237 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
284 238 'class' => 'only_pro',
285 239 'dependency' => array('color_pallets', '==', 'set3', 'all'),
240 + 'options' => array(
241 + 'color' => esc_html__('Input Text', 'darkify'),
242 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
243 + 'background' => esc_html('Input Background', 'darkify'),
244 + ),
286 245 'default' => array(
287 246 'color' => '#B1BBD8',
288 247 'placeholder' => '#B1BBD8',
289 248 'background' => '#2A264D',
@@ -292,13 +251,9 @@
292 251 array(
293 252 'id' => 'dark_mode_border_color_set3',
294 253 'type' => 'color',
295 254 'title' => esc_html__('Border', 'darkify'),
296 - 'title_help' =>
297 - '<div class="darkify-info-label">' .
298 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
299 - '</div>',
300 -
255 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
301 256 'class' => 'only_pro',
302 257 'dependency' => array('color_pallets', '==', 'set3', 'all'),
303 258 'default' => '#4E478D',
304 259 ),
@@ -305,21 +260,17 @@
305 260 array(
306 261 'id' => 'dark_mode_btn_color_set3',
307 262 'type' => 'color_group',
308 263 'title' => esc_html__('Button', 'darkify'),
309 - 'title_help' =>
310 - '<div class="darkify-info-label">' .
311 - __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
312 - '</div>',
313 - 'options' => array(
314 - 'color' => esc_html__('Text Color', 'darkify'),
315 - 'background' => esc_html__('Background', 'darkify'),
316 - 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
317 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
318 - ),
319 -
264 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
320 265 'class' => 'only_pro',
321 266 'dependency' => array('color_pallets', '==', 'set3', 'all'),
267 + 'options' => array(
268 + 'color' => esc_html__('Color', 'darkify'),
269 + 'background' => esc_html('Background', 'darkify'),
270 + 'hover_color' => esc_html('Background', 'darkify'),
271 + 'hover_background' => esc_html('Background', 'darkify'),
272 + ),
322 273 'default' => array(
323 274 'color' => '#4E478D',
324 275 'background' => '#B1BBD8',
325 276 'hover_color' => '#B1BBD8',
@@ -330,18 +281,14 @@
330 281 array(
331 282 'id' => 'dark_mode_color_set6',
332 283 'type' => 'color_group',
333 284 'title' => esc_html__('Background', 'darkify'),
334 - 'title_help' =>
335 - '<div class="darkify-info-label">' .
336 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
337 - '</div>',
338 - 'options' => array(
339 - 'background' => esc_html__('Primary', 'darkify'),
340 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
285 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
286 + 'dependency' => array('color_pallets', '==', 'set6', 'all'),
287 + 'options' => array(
288 + 'background' => esc_html__('Primary BG', 'darkify'),
289 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
341 290 ),
342 -
343 - 'dependency' => array('color_pallets', '==', 'set6', 'all'),
344 291 'default' => array(
345 292 'background' => '#082032',
346 293 'secondary_background' => '#2C394B',
347 294 ),
@@ -349,20 +296,16 @@
349 296 array(
350 297 'id' => 'dark_mode_link_color_set6',
351 298 'type' => 'color_group',
352 299 'title' => esc_html__('Text', 'darkify'),
353 - 'title_help' =>
354 - '<div class="darkify-info-label">' .
355 - __('Set the text color of your website when dark mode is enabled.', 'darkify') .
356 - '</div>',
357 - 'options' => array(
358 - 'text' => esc_html__('Text Color', 'darkify'),
300 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
301 + 'class' => 'only_pro',
302 + 'dependency' => array('color_pallets', '==', 'set6', 'all'),
303 + 'options' => array(
304 + 'text' => esc_html__('Text Color', 'darkify'),
359 305 'color' => esc_html__('Link Color', 'darkify'),
360 306 'hover' => esc_html__('Link Hover Color', 'darkify'),
361 307 ),
362 -
363 - 'class' => 'only_pro',
364 - 'dependency' => array('color_pallets', '==', 'set6', 'all'),
365 308 'default' => array(
366 309 'text' => '#B5D9F3',
367 310 'color' => '#61bbff',
368 311 'hover' => '#B5D9F3',
@@ -372,21 +315,16 @@
372 315 array(
373 316 'id' => 'dark_mode_input_color_set6',
374 317 'type' => 'color_group',
375 318 'title' => esc_html__('Input', 'darkify'),
376 - 'title_help' =>
377 - '<div class="darkify-info-label">' .
378 - __('Set the input field color of your website when dark mode is enabled.', 'darkify') .
379 - '</div>',
380 -
381 - 'options' => array(
382 - 'color' => esc_html__('Input Text', 'darkify'),
383 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
384 - 'background' => esc_html__('Input Background', 'darkify'),
385 - ),
386 -
319 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
387 320 'class' => 'only_pro',
388 321 'dependency' => array('color_pallets', '==', 'set6', 'all'),
322 + 'options' => array(
323 + 'color' => esc_html__('Input Text', 'darkify'),
324 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
325 + 'background' => esc_html('Input Background', 'darkify'),
326 + ),
389 327 'default' => array(
390 328 'color' => '#B5D9F3',
391 329 'placeholder' => '#B5D9F3',
392 330 'background' => '#0E3755',
@@ -396,13 +334,9 @@
396 334 array(
397 335 'id' => 'dark_mode_border_color_set6',
398 336 'type' => 'color',
399 337 'title' => esc_html__('Border', 'darkify'),
400 - 'title_help' =>
401 - '<div class="darkify-info-label">' .
402 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
403 - '</div>',
404 -
338 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
405 339 'class' => 'only_pro',
406 340 'dependency' => array('color_pallets', '==', 'set6', 'all'),
407 341 'default' => '#3B4D65',
408 342 ),
@@ -409,22 +343,17 @@
409 343 array(
410 344 'id' => 'dark_mode_btn_color_set6',
411 345 'type' => 'color_group',
412 346 'title' => esc_html__('Button', 'darkify'),
413 - 'title_help' =>
414 - '<div class="darkify-info-label">' .
415 - __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
416 - '</div>',
417 - 'options' => array(
418 - 'color' => esc_html__('Text Color', 'darkify'),
419 - 'background' => esc_html__('Background', 'darkify'),
420 - 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
421 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
422 - ),
423 -
347 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
424 348 'class' => 'only_pro',
425 349 'dependency' => array('color_pallets', '==', 'set6', 'all'),
426 -
350 + 'options' => array(
351 + 'color' => esc_html__('Color', 'darkify'),
352 + 'background' => esc_html('Background', 'darkify'),
353 + 'hover_color' => esc_html('Background', 'darkify'),
354 + 'hover_background' => esc_html('Background', 'darkify'),
355 + ),
427 356 'default' => array(
428 357 'color' => '#B5D9F3',
429 358 'background' => '#3B4D65',
430 359 'hover_color' => '#B5D9F3',
@@ -435,20 +364,14 @@
435 364 array(
436 365 'id' => 'dark_mode_color_set9',
437 366 'type' => 'color_group',
438 367 'title' => esc_html__('Background', 'darkify'),
439 - 'title_help' =>
440 - '<div class="darkify-info-label">' .
441 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
442 - '</div>',
443 -
368 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
444 369 'dependency' => array('color_pallets', '==', 'set9', 'all'),
445 -
446 - 'options' => array(
447 - 'background' => esc_html__('Primary', 'darkify'),
448 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
370 + 'options' => array(
371 + 'background' => esc_html__('Primary BG', 'darkify'),
372 + 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
449 373 ),
450 -
451 374 'default' => array(
452 375 'background' => '#04261d',
453 376 'secondary_background' => '#021e16',
454 377 ),
@@ -456,20 +379,16 @@
456 379 array(
457 380 'id' => 'dark_mode_link_color_set9',
458 381 'type' => 'color_group',
459 382 'title' => esc_html__('Text', 'darkify'),
460 - 'title_help' =>
461 - '<div class="darkify-info-label">' .
462 - __('Set the text and link colors of your website when dark mode is enabled.', 'darkify') .
463 - '</div>',
464 - 'options' => array(
465 - 'text' => esc_html__('Text Color', 'darkify'),
383 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
384 + 'class' => 'only_pro',
385 + 'dependency' => array('color_pallets', '==', 'set9', 'all'),
386 + 'options' => array(
387 + 'text' => esc_html__('Text Color', 'darkify'),
466 388 'color' => esc_html__('Link Color', 'darkify'),
467 389 'hover' => esc_html__('Link Hover Color', 'darkify'),
468 390 ),
469 -
470 - 'class' => 'only_pro',
471 - 'dependency' => array('color_pallets', '==', 'set9', 'all'),
472 391 'default' => array(
473 392 'text' => '#C1D2BB',
474 393 'color' => '#00d29a',
475 394 'hover' => '#C1D2BB',
@@ -479,21 +398,16 @@
479 398 array(
480 399 'id' => 'dark_mode_input_color_set9',
481 400 'type' => 'color_group',
482 401 'title' => esc_html__('Input', 'darkify'),
483 - 'title_help' =>
484 - '<div class="darkify-info-label">' .
485 - __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
486 - '</div>',
487 -
488 - 'options' => array(
489 - 'color' => esc_html__('Input Text', 'darkify'),
490 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
491 - 'background' => esc_html__('Input Background', 'darkify'),
492 - ),
493 -
402 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
494 403 'class' => 'only_pro',
495 404 'dependency' => array('color_pallets', '==', 'set9', 'all'),
405 + 'options' => array(
406 + 'color' => esc_html__('Input Text', 'darkify'),
407 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
408 + 'background' => esc_html('Input Background', 'darkify'),
409 + ),
496 410 'default' => array(
497 411 'color' => '#C1D2BB',
498 412 'placeholder' => '#C1D2BB',
499 413 'background' => '#073d2f',
@@ -503,13 +417,9 @@
503 417 array(
504 418 'id' => 'dark_mode_border_color_set9',
505 419 'type' => 'color',
506 420 'title' => esc_html__('Border', 'darkify'),
507 - 'title_help' =>
508 - '<div class="darkify-info-label">' .
509 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
510 - '</div>',
511 -
421 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
512 422 'class' => 'only_pro',
513 423 'dependency' => array('color_pallets', '==', 'set9', 'all'),
514 424 'default' => '#095541',
515 425 ),
@@ -516,19 +426,17 @@
516 426 array(
517 427 'id' => 'dark_mode_btn_color_set9',
518 428 'type' => 'color_group',
519 429 'title' => esc_html__('Button', 'darkify'),
520 - 'title_help' => '<div class="darkify-info-label">' .
521 - __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
522 - '</div>',
523 - 'options' => array(
524 - 'color' => esc_html__('Text Color', 'darkify'),
525 - 'background' => esc_html__('Background', 'darkify'),
526 - 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
527 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
528 - ),
430 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
529 431 'class' => 'only_pro',
530 432 'dependency' => array('color_pallets', '==', 'set9', 'all'),
433 + 'options' => array(
434 + 'color' => esc_html__('Color', 'darkify'),
435 + 'background' => esc_html('Background', 'darkify'),
436 + 'hover_color' => esc_html__('Button Text', 'darkify'),
437 + 'hover_background' => esc_html('Button Background', 'darkify'),
438 + ),
531 439 'default' => array(
532 440 'color' => '#C1D2BB',
533 441 'background' => '#095541',
534 442 'hover_color' => '#C1D2BB',
@@ -539,18 +447,14 @@
539 447 array(
540 448 'id' => 'dark_mode_color_set10',
541 449 'type' => 'color_group',
542 450 'title' => esc_html__('Background', 'darkify'),
543 - 'title_help' =>
544 - '<div class="darkify-info-label">' .
545 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
546 - '</div>',
547 - 'options' => array(
548 - 'background' => esc_html__('Primary', 'darkify'),
549 - 'secondary_background' => esc_html__('Secondary', 'darkify'),
451 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
452 + 'dependency' => array('color_pallets', '==', 'set10', 'all'),
453 + 'options' => array(
454 + 'background' => esc_html__('Primary BG', 'darkify'),
455 + 'secondary_background' => esc_html__('Secondary BG Test', 'darkify'),
550 456 ),
551 -
552 - 'dependency' => array('color_pallets', '==', 'set10', 'all'),
553 457 'default' => array(
554 458 'background' => '#171004',
555 459 'secondary_background' => '#211706',
556 460 ),
@@ -558,20 +462,16 @@
558 462 array(
559 463 'id' => 'dark_mode_link_color_set10',
560 464 'type' => 'color_group',
561 465 'title' => esc_html__('Text', 'darkify'),
562 - 'title_help' =>
563 - '<div class="darkify-info-label">' .
564 - __('Set the text color of your website when dark mode is enabled.', 'darkify') .
565 - '</div>',
566 - 'options' => array(
567 - 'text' => esc_html__('Text Color', 'darkify'),
466 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
467 + 'class' => 'only_pro',
468 + 'dependency' => array('color_pallets', '==', 'set10', 'all'),
469 + 'options' => array(
470 + 'text' => esc_html__('Text Color', 'darkify'),
568 471 'color' => esc_html__('Link Color', 'darkify'),
569 472 'hover' => esc_html__('Link Hover Color', 'darkify'),
570 473 ),
571 -
572 - 'class' => 'only_pro',
573 - 'dependency' => array('color_pallets', '==', 'set10', 'all'),
574 474 'default' => array(
575 475 'text' => '#E0D2BD',
576 476 'color' => '#e09525',
577 477 'hover' => '#E0D2BD',
@@ -581,22 +481,16 @@
581 481 array(
582 482 'id' => 'dark_mode_input_color_set10',
583 483 'type' => 'color_group',
584 484 'title' => esc_html__('Input', 'darkify'),
585 - 'title_help' =>
586 - '<div class="darkify-info-label">' .
587 - __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
588 - '</div>',
589 -
590 - 'options' => array(
591 - 'color' => esc_html__('Input Text', 'darkify'),
592 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
593 - 'background' => esc_html__('Input Background', 'darkify'),
594 - ),
595 -
485 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
596 486 'class' => 'only_pro',
597 487 'dependency' => array('color_pallets', '==', 'set10', 'all'),
598 -
488 + 'options' => array(
489 + 'color' => esc_html__('Input Text', 'darkify'),
490 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
491 + 'background' => esc_html('Input Background', 'darkify'),
492 + ),
599 493 'default' => array(
600 494 'color' => '#E0D2BD',
601 495 'placeholder' => '#E0D2BD',
602 496 'background' => '#372911',
@@ -606,13 +500,9 @@
606 500 array(
607 501 'id' => 'dark_mode_border_color_set10',
608 502 'type' => 'color',
609 503 'title' => esc_html__('Border', 'darkify'),
610 - 'title_help' =>
611 - '<div class="darkify-info-label">' .
612 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
613 - '</div>',
614 -
504 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
615 505 'class' => 'only_pro',
616 506 'dependency' => array('color_pallets', '==', 'set10', 'all'),
617 507 'default' => '#5D4010',
618 508 ),
@@ -619,22 +509,17 @@
619 509 array(
620 510 'id' => 'dark_mode_btn_color_set10',
621 511 'type' => 'color_group',
622 512 'title' => esc_html__('Button', 'darkify'),
623 - 'title' => esc_html__('Button', 'darkify'),
624 - 'title_help' =>
625 - '<div class="darkify-info-label">' .
626 - __('Set the color of buttons on your website when dark mode is enabled.', 'darkify') .
627 - '</div>',
628 - 'options' => array(
629 - 'color' => esc_html__('Button Text', 'darkify'),
630 - 'background' => esc_html__('Button Background', 'darkify'),
631 - 'hover_color' => esc_html__('Hover Text', 'darkify'),
632 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
633 - ),
634 -
513 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
635 514 'class' => 'only_pro',
636 515 'dependency' => array('color_pallets', '==', 'set10', 'all'),
516 + 'options' => array(
517 + 'color' => esc_html__('Color', 'darkify'),
518 + 'background' => esc_html('Background', 'darkify'),
519 + 'hover_color' => esc_html__('Button Text', 'darkify'),
520 + 'hover_background' => esc_html('Button Background', 'darkify'),
521 + ),
637 522 'default' => array(
638 523 'color' => '#E0D2BD',
639 524 'background' => '#5D4010',
640 525 'hover_color' => '#E0D2BD',
@@ -645,19 +530,14 @@
645 530 array(
646 531 'id' => 'dark_mode_color_set11',
647 532 'type' => 'color_group',
648 533 'title' => esc_html__('Background', 'darkify'),
649 - 'title_help' =>
650 - '<div class="darkify-info-label">' .
651 - __('Set the background color of your website when dark mode is enabled.', 'darkify') .
652 - '</div>',
653 - 'options' => array(
654 - 'background' => esc_html__('Primary BG', 'darkify'),
534 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>',
535 + 'dependency' => array('color_pallets', '==', 'set11', 'all'),
536 + 'options' => array(
537 + 'background' => esc_html__('Primary BG', 'darkify'),
655 538 'secondary_background' => esc_html__('Secondary BG', 'darkify'),
656 539 ),
657 -
658 - 'dependency' => array('color_pallets', '==', 'set11', 'all'),
659 -
660 540 'default' => array(
661 541 'background' => '#19081b',
662 542 'secondary_background' => '#210a24',
663 543 ),
@@ -665,21 +545,16 @@
665 545 array(
666 546 'id' => 'dark_mode_link_color_set11',
667 547 'type' => 'color_group',
668 548 'title' => esc_html__('Text', 'darkify'),
669 - 'title_help' =>
670 - '<div class="darkify-info-label">' .
671 - __('Set the text color of your website when dark mode is enabled.', 'darkify') .
672 - '</div>',
673 - 'options' => array(
674 - 'text' => esc_html__('Text Color', 'darkify'),
549 + 'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>',
550 + 'class' => 'only_pro',
551 + 'dependency' => array('color_pallets', '==', 'set11', 'all'),
552 + 'options' => array(
553 + 'text' => esc_html__('Text Color', 'darkify'),
675 554 'color' => esc_html__('Link Color', 'darkify'),
676 555 'hover' => esc_html__('Link Hover Color', 'darkify'),
677 556 ),
678 -
679 - 'class' => 'only_pro',
680 - 'dependency' => array('color_pallets', '==', 'set11', 'all'),
681 -
682 557 'default' => array(
683 558 'text' => '#c09dc2',
684 559 'color' => '#c832d4',
685 560 'hover' => '#c09dc2',
@@ -689,21 +564,16 @@
689 564 array(
690 565 'id' => 'dark_mode_input_color_set11',
691 566 'type' => 'color_group',
692 567 'title' => esc_html__('Input', 'darkify'),
693 - 'title_help' =>
694 - '<div class="darkify-info-label">' .
695 - __('Set the input field colors of your website when dark mode is enabled.', 'darkify') .
696 - '</div>',
697 - 'options' => array(
698 - 'color' => esc_html__('Input Text', 'darkify'),
699 - 'placeholder' => esc_html__('Input Placeholder', 'darkify'),
700 - 'background' => esc_html__('Input Background', 'darkify'),
701 - ),
702 -
568 + 'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>',
703 569 'class' => 'only_pro',
704 570 'dependency' => array('color_pallets', '==', 'set11', 'all'),
705 -
571 + 'options' => array(
572 + 'color' => esc_html__('Input Text', 'darkify'),
573 + 'placeholder' => esc_html('Input Placeholder', 'darkify'),
574 + 'background' => esc_html('Input Background', 'darkify'),
575 + ),
706 576 'default' => array(
707 577 'color' => '#c09dc2',
708 578 'placeholder' => '#c09dc2',
709 579 'background' => '#2c082f',
@@ -713,13 +583,9 @@
713 583 array(
714 584 'id' => 'dark_mode_border_color_set11',
715 585 'type' => 'color',
716 586 'title' => esc_html__('Border', 'darkify'),
717 - 'title_help' =>
718 - '<div class="darkify-info-label">' .
719 - __('Set the border color of your website when dark mode is enabled.', 'darkify') .
720 - '</div>',
721 -
587 + 'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>',
722 588 'class' => 'only_pro',
723 589 'dependency' => array('color_pallets', '==', 'set11', 'all'),
724 590 'default' => '#440649',
725 591 ),
@@ -726,23 +592,17 @@
726 592 array(
727 593 'id' => 'dark_mode_btn_color_set11',
728 594 'type' => 'color_group',
729 595 'title' => esc_html__('Button', 'darkify'),
730 - 'title_help' =>
731 - '<div class="darkify-info-label">' .
732 - __('Set the button colors of your website when dark mode is enabled.', 'darkify') .
733 - '</div>',
734 -
735 - 'options' => array(
736 - 'color' => esc_html__('Text Color', 'darkify'),
737 - 'background' => esc_html__('Background', 'darkify'),
738 - 'hover_color' => esc_html__('Hover Text Color', 'darkify'),
739 - 'hover_background' => esc_html__('Hover Background', 'darkify'),
740 - ),
741 -
596 + 'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>',
742 597 'class' => 'only_pro',
743 598 'dependency' => array('color_pallets', '==', 'set11', 'all'),
744 -
599 + 'options' => array(
600 + 'color' => esc_html__('Color', 'darkify'),
601 + 'background' => esc_html('Background', 'darkify'),
602 + 'hover_color' => esc_html__('Button Text', 'darkify'),
603 + 'hover_background' => esc_html('Button Background', 'darkify'),
604 + ),
745 605 'default' => array(
746 606 'color' => '#c09dc2',
747 607 'background' => '#440649',
748 608 'hover_color' => '#c09dc2',
@@ -755,32 +615,17 @@
755 615 array(
756 616 'title' => esc_html__('Scroll Bar', 'darkify'),
757 617 'icon' => 'icofont-scroll-double-down',
758 618 'fields' => array(
759 - // Intro line, rendered plain above the section card.
760 619 array(
761 - 'type' => 'page_hint',
762 - 'content' => esc_html__('Style the browser scrollbar to match dark mode.', 'darkify'),
763 - ),
764 - // ===== SCROLLBAR =====
765 - array(
766 - 'type' => 'heading',
767 - 'title' => esc_html__('Scrollbar', 'darkify'),
768 - 'section_start' => true,
769 - ),
770 - array(
771 620 'id' => 'enable_scrollbar_dark',
772 621 'type' => 'switcher',
773 - 'title' => esc_html__('Enable Dark Mode on Scrollbar', 'darkify'),
774 - 'title_help' =>
775 - '<div class="darkify-info-label">' .
776 - __('Enable dark mode styling for the website scrollbar.', 'darkify') .
777 - '</div>',
778 -
622 + 'title' => esc_html__('Enable Dark Mode On Scrollbar', 'darkify'),
623 + 'title_help' => '<div class="darkify-info-label">' . __('Want to enable dark mode on the scrollbar of the website?', 'darkify') . '</div>',
779 624 'text_on' => esc_html__('Enabled', 'darkify'),
780 625 'text_off' => esc_html__('Disabled', 'darkify'),
781 626 'text_width' => 100,
782 - 'default' => false,
627 + 'default' => true,
783 628 ),
784 629
785 630 array(
786 631 'id' => 'scrollbar_color',
@@ -785,20 +630,14 @@
785 630 array(
786 631 'id' => 'scrollbar_color',
787 632 'type' => 'color_group',
788 633 'title' => esc_html__('Scrollbar Color', 'darkify'),
789 - 'title_help' =>
790 - '<div class="darkify-info-label">' .
791 - __('Set the track and thumb background colors of the scrollbar when dark mode is enabled.', 'darkify') .
792 - '</div>',
793 -
634 + 'title_help' => '<div class="darkify-info-label">' . __('Set the background color of scrollbar\'s track & thumb when dark mode is enabled.', 'darkify') . '</div>',
635 + 'class' => 'only_pro',
794 636 'options' => array(
795 - 'dark_mode_scrollbar_track_bg' => esc_html__('Track Background', 'darkify'),
796 - 'dark_mode_scrollbar_thumb_bg' => esc_html__('Thumb Background', 'darkify'),
637 + 'dark_mode_scrollbar_track_bg' => esc_html__('Trac BG', 'darkify'),
638 + 'dark_mode_scrollbar_thumb_bg' => esc_html__('Thumb BG', 'darkify'),
797 639 ),
798 -
799 - 'class' => 'only_pro',
800 -
801 640 'default' => array(
802 641 'dark_mode_scrollbar_track_bg' => '#29292a',
803 642 'dark_mode_scrollbar_thumb_bg' => '#52565a',
804 643 ),