| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Views class for Shortcode generator options. |
| 5 |
* |
| 6 |
* @link https://themeatelier.net |
| 7 |
* @since 1.0.0 |
| 8 |
* |
| 9 |
* @package darkify |
| 10 |
* @subpackage darkify/src/Admin/Views/ColorControl |
| 11 |
* @author ThemeAtelier<themeatelierbd@gmail.com> |
| 12 |
*/ |
| 13 |
|
| 14 |
namespace ThemeAtelier\Darkify\Admin\Views; |
| 15 |
|
| 16 |
use ThemeAtelier\Darkify\Admin\Framework\Classes\Darkify; |
| 17 |
|
| 18 |
class ColorControl |
| 19 |
{ |
| 20 |
/** |
| 21 |
* Create Option fields for the setting options. |
| 22 |
* |
| 23 |
* @param string $prefix Option setting key prefix. |
| 24 |
* @return void |
| 25 |
*/ |
| 26 |
public static function options($prefix) |
| 27 |
{ |
| 28 |
Darkify::createSection( |
| 29 |
$prefix, |
| 30 |
array( |
| 31 |
'title' => esc_html__('COLORS', 'darkify'), |
| 32 |
'icon' => 'icofont-paint', |
| 33 |
'fields' => array( |
| 34 |
|
| 35 |
array( |
| 36 |
'type' => 'section_tab', |
| 37 |
'tabs' => array( |
| 38 |
array( |
| 39 |
'title' => esc_html__('Preset', 'darkify'), |
| 40 |
'icon' => 'icofont-color-bucket', |
| 41 |
'fields' => array( |
| 42 |
array( |
| 43 |
'id' => 'color_pallets', |
| 44 |
'type' => 'palette', |
| 45 |
'class' => 'darkify_preset', |
| 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>', |
| 48 |
'options' => array( |
| 49 |
'set1' => array( |
| 50 |
'colors' => array('#0F0F0F', '#4A4A4A', '#BEBEBE', '#171717', '#2D2D2D'), |
| 51 |
'name' => esc_html__('Carbon Mist', 'darkify'), |
| 52 |
'demo_url' => 'https://youtu.be/0ervhCG6V4U?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 53 |
), |
| 54 |
'set3' => array( |
| 55 |
'colors' => array('#211e3c', '#B1BBD8', '#302C57', '#4E478D', '#2A264D'), |
| 56 |
'name' => esc_html__('Midnight Reverie', 'darkify'), |
| 57 |
'demo_url' => 'https://youtu.be/Gz0SDK_08GQ?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 58 |
), |
| 59 |
'set9' => array( |
| 60 |
'colors' => array('#04261d', '#C1D2BB', '#021e16', '#073d2f', '#095541'), |
| 61 |
'name' => esc_html__('Verdant Depths', 'darkify'), |
| 62 |
'demo_url' => 'https://youtu.be/8r-yeDV83Cs?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 63 |
), |
| 64 |
'set6' => array( |
| 65 |
'colors' => array('#082032', '#B5D9F3', '#061825', '#144E78', '#0E3755'), |
| 66 |
'name' => esc_html__('Celestial Tide', 'darkify'), |
| 67 |
'demo_url' => 'https://youtu.be/isHN5V4i-aw?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 68 |
), |
| 69 |
'set10' => array( |
| 70 |
'colors' => array('#171004', '#E0D2BD', '#211706', '#372911', '#5D4010'), |
| 71 |
'name' => esc_html__('Emberwood', 'darkify'), |
| 72 |
'demo_url' => 'https://youtu.be/q4DQOivcurk?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 73 |
), |
| 74 |
'set2' => array( |
| 75 |
'colors' => array('#092635', '#BEE0F1', '#081E29', '#123d52', '#195979'), |
| 76 |
'name' => esc_html__('Glacier Drift', 'darkify'), |
| 77 |
'demo_url' => 'https://youtu.be/mwf5nG2gSv4?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 78 |
'pro_only' => true, |
| 79 |
), |
| 80 |
'set4' => array( |
| 81 |
'colors' => array('#1d253a', '#B1BBD8', '#2B3655', '#46598C', '#242F4C'), |
| 82 |
'name' => esc_html__('Indigo Veil', 'darkify'), |
| 83 |
'demo_url' => 'https://youtu.be/o58ns9RRGlU?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 84 |
'pro_only' => true, |
| 85 |
), |
| 86 |
'set5' => array( |
| 87 |
'colors' => array('#1b1823', '#C6C1D5', '#352f44', '#403953', '#54496f'), |
| 88 |
'name' => esc_html__('Duskmire', 'darkify'), |
| 89 |
'demo_url' => 'https://youtu.be/eAeNuboi--Y?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 90 |
'pro_only' => true, |
| 91 |
), |
| 92 |
'set7' => array( |
| 93 |
'colors' => array('#07161b', '#C5E6F0', '#0d242e', '#286F8D', '#19495A'), |
| 94 |
'name' => esc_html__('Tidal Frost', 'darkify'), |
| 95 |
'demo_url' => 'https://youtu.be/cUMElxZ0-EY?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 96 |
'pro_only' => true, |
| 97 |
), |
| 98 |
'set8' => array( |
| 99 |
'colors' => array('#15274C', '#ACC1EA', '#112244', '#244892', '#1a2f5c'), |
| 100 |
'name' => esc_html__('Blue Bastion', 'darkify'), |
| 101 |
'demo_url' => 'https://youtu.be/fi_yopdUul4?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 102 |
'pro_only' => true, |
| 103 |
), |
| 104 |
'set11' => array( |
| 105 |
'colors' => array('#19081b', '#c09dc2', '#210a24', '#440649', '#2c082f'), |
| 106 |
'name' => esc_html__('Crimson Veil', 'darkify'), |
| 107 |
'demo_url' => 'https://youtu.be/cYHTpisGhBQ?list=PLo2IcueX81_BbBsEyPeXx52VOcijnGr6l', |
| 108 |
'pro_only' => true, |
| 109 |
), |
| 110 |
), |
| 111 |
'default' => 'set1', |
| 112 |
), |
| 113 |
array( |
| 114 |
'type' => 'subheading', |
| 115 |
'title' => esc_html__('Customize Selected Preset', 'darkify'), |
| 116 |
), |
| 117 |
|
| 118 |
// color pallate set 1 |
| 119 |
array( |
| 120 |
'id' => 'dark_mode_color_set1', |
| 121 |
'type' => 'color_group', |
| 122 |
'title' => esc_html__('Background', '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'), |
| 128 |
), |
| 129 |
'default' => array( |
| 130 |
'background' => '#0F0F0F', |
| 131 |
'secondary_background' => '#171717', |
| 132 |
), |
| 133 |
), |
| 134 |
array( |
| 135 |
'id' => 'dark_mode_link_color_set1', |
| 136 |
'type' => 'color_group', |
| 137 |
'title' => esc_html__('Text', 'darkify'), |
| 138 |
'title_help' => '<div class="darkify-info-label">' . __('Set the text color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 139 |
'dependency' => array('color_pallets', '==', 'set1', 'all'), |
| 140 |
'class' => 'only_pro', |
| 141 |
'options' => array( |
| 142 |
'text' => esc_html__('Text Color', 'darkify'), |
| 143 |
'color' => esc_html__('Link Color', 'darkify'), |
| 144 |
'hover' => esc_html__('Link Hover Color', 'darkify'), |
| 145 |
), |
| 146 |
'default' => array( |
| 147 |
'text' => '#BEBEBE', |
| 148 |
'color' => '#E7E7E7', |
| 149 |
'hover' => '#BEBEBE', |
| 150 |
), |
| 151 |
), |
| 152 |
array( |
| 153 |
'id' => 'dark_mode_input_color_set1', |
| 154 |
'type' => 'color_group', |
| 155 |
'title' => esc_html__('Input', 'darkify'), |
| 156 |
'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 157 |
'dependency' => array('color_pallets', '==', 'set1', 'all'), |
| 158 |
'class' => 'only_pro', |
| 159 |
'options' => array( |
| 160 |
'color' => esc_html__('Input Text', 'darkify'), |
| 161 |
'placeholder' => esc_html('Input Placeholder', 'darkify'), |
| 162 |
'background' => esc_html('Input Background', 'darkify'), |
| 163 |
), |
| 164 |
'default' => array( |
| 165 |
'color' => '#BEBEBE', |
| 166 |
'placeholder' => '#BEBEBE', |
| 167 |
'background' => '#2D2D2D', |
| 168 |
), |
| 169 |
), |
| 170 |
array( |
| 171 |
'id' => 'dark_mode_border_color_set1', |
| 172 |
'type' => 'color', |
| 173 |
'title' => esc_html__('Border', 'darkify'), |
| 174 |
'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 175 |
'class' => 'only_pro', |
| 176 |
'dependency' => array('color_pallets', '==', 'set1', 'all'), |
| 177 |
'default' => '#4A4A4A', |
| 178 |
), |
| 179 |
array( |
| 180 |
'id' => 'dark_mode_btn_color_set1', |
| 181 |
'type' => 'color_group', |
| 182 |
'title' => esc_html__('Button', 'darkify'), |
| 183 |
'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 184 |
'class' => 'only_pro', |
| 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 |
), |
| 192 |
'default' => array( |
| 193 |
'color' => '#BEBEBE', |
| 194 |
'background' => '#4A4A4A', |
| 195 |
'hover_color' => '#BEBEBE', |
| 196 |
'hover_background' => '#2D2D2D', |
| 197 |
), |
| 198 |
), |
| 199 |
// color pallate set 3 |
| 200 |
array( |
| 201 |
'id' => 'dark_mode_color_set3', |
| 202 |
'type' => 'color_group', |
| 203 |
'title' => esc_html__('Background', 'darkify'), |
| 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'), |
| 206 |
'options' => array( |
| 207 |
'background' => esc_html__('Primary BG', 'darkify'), |
| 208 |
'secondary_background' => esc_html__('Secondary BG', 'darkify'), |
| 209 |
), |
| 210 |
'default' => array( |
| 211 |
'background' => '#211e3c', |
| 212 |
'secondary_background' => '#302C57', |
| 213 |
), |
| 214 |
), |
| 215 |
array( |
| 216 |
'id' => 'dark_mode_link_color_set3', |
| 217 |
'type' => 'color_group', |
| 218 |
'title' => esc_html__('Text', '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'), |
| 224 |
'color' => esc_html__('Link Color', 'darkify'), |
| 225 |
'hover' => esc_html__('Link Hover Color', 'darkify'), |
| 226 |
), |
| 227 |
'default' => array( |
| 228 |
'text' => '#B1BBD8', |
| 229 |
'color' => '#8071fb', |
| 230 |
'hover' => '#B1BBD8', |
| 231 |
), |
| 232 |
), |
| 233 |
array( |
| 234 |
'id' => 'dark_mode_input_color_set3', |
| 235 |
'type' => 'color_group', |
| 236 |
'title' => esc_html__('Input', 'darkify'), |
| 237 |
'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 238 |
'class' => 'only_pro', |
| 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 |
), |
| 245 |
'default' => array( |
| 246 |
'color' => '#B1BBD8', |
| 247 |
'placeholder' => '#B1BBD8', |
| 248 |
'background' => '#2A264D', |
| 249 |
), |
| 250 |
), |
| 251 |
array( |
| 252 |
'id' => 'dark_mode_border_color_set3', |
| 253 |
'type' => 'color', |
| 254 |
'title' => esc_html__('Border', 'darkify'), |
| 255 |
'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 256 |
'class' => 'only_pro', |
| 257 |
'dependency' => array('color_pallets', '==', 'set3', 'all'), |
| 258 |
'default' => '#4E478D', |
| 259 |
), |
| 260 |
array( |
| 261 |
'id' => 'dark_mode_btn_color_set3', |
| 262 |
'type' => 'color_group', |
| 263 |
'title' => esc_html__('Button', 'darkify'), |
| 264 |
'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 265 |
'class' => 'only_pro', |
| 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 |
), |
| 273 |
'default' => array( |
| 274 |
'color' => '#4E478D', |
| 275 |
'background' => '#B1BBD8', |
| 276 |
'hover_color' => '#B1BBD8', |
| 277 |
'hover_background' => '#2A264D', |
| 278 |
), |
| 279 |
), |
| 280 |
// color pallate set 6 |
| 281 |
array( |
| 282 |
'id' => 'dark_mode_color_set6', |
| 283 |
'type' => 'color_group', |
| 284 |
'title' => esc_html__('Background', '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'), |
| 290 |
), |
| 291 |
'default' => array( |
| 292 |
'background' => '#082032', |
| 293 |
'secondary_background' => '#2C394B', |
| 294 |
), |
| 295 |
), |
| 296 |
array( |
| 297 |
'id' => 'dark_mode_link_color_set6', |
| 298 |
'type' => 'color_group', |
| 299 |
'title' => esc_html__('Text', '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'), |
| 305 |
'color' => esc_html__('Link Color', 'darkify'), |
| 306 |
'hover' => esc_html__('Link Hover Color', 'darkify'), |
| 307 |
), |
| 308 |
'default' => array( |
| 309 |
'text' => '#B5D9F3', |
| 310 |
'color' => '#61bbff', |
| 311 |
'hover' => '#B5D9F3', |
| 312 |
), |
| 313 |
), |
| 314 |
|
| 315 |
array( |
| 316 |
'id' => 'dark_mode_input_color_set6', |
| 317 |
'type' => 'color_group', |
| 318 |
'title' => esc_html__('Input', 'darkify'), |
| 319 |
'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 320 |
'class' => 'only_pro', |
| 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 |
), |
| 327 |
'default' => array( |
| 328 |
'color' => '#B5D9F3', |
| 329 |
'placeholder' => '#B5D9F3', |
| 330 |
'background' => '#0E3755', |
| 331 |
), |
| 332 |
), |
| 333 |
|
| 334 |
array( |
| 335 |
'id' => 'dark_mode_border_color_set6', |
| 336 |
'type' => 'color', |
| 337 |
'title' => esc_html__('Border', 'darkify'), |
| 338 |
'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 339 |
'class' => 'only_pro', |
| 340 |
'dependency' => array('color_pallets', '==', 'set6', 'all'), |
| 341 |
'default' => '#3B4D65', |
| 342 |
), |
| 343 |
array( |
| 344 |
'id' => 'dark_mode_btn_color_set6', |
| 345 |
'type' => 'color_group', |
| 346 |
'title' => esc_html__('Button', 'darkify'), |
| 347 |
'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 348 |
'class' => 'only_pro', |
| 349 |
'dependency' => array('color_pallets', '==', 'set6', 'all'), |
| 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 |
), |
| 356 |
'default' => array( |
| 357 |
'color' => '#B5D9F3', |
| 358 |
'background' => '#3B4D65', |
| 359 |
'hover_color' => '#B5D9F3', |
| 360 |
'hover_background' => '#144E78', |
| 361 |
), |
| 362 |
), |
| 363 |
// color pallate set 9 |
| 364 |
array( |
| 365 |
'id' => 'dark_mode_color_set9', |
| 366 |
'type' => 'color_group', |
| 367 |
'title' => esc_html__('Background', 'darkify'), |
| 368 |
'title_help' => '<div class="darkify-info-label">' . __('Set the background color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 369 |
'dependency' => array('color_pallets', '==', 'set9', 'all'), |
| 370 |
'options' => array( |
| 371 |
'background' => esc_html__('Primary BG', 'darkify'), |
| 372 |
'secondary_background' => esc_html__('Secondary BG', 'darkify'), |
| 373 |
), |
| 374 |
'default' => array( |
| 375 |
'background' => '#04261d', |
| 376 |
'secondary_background' => '#021e16', |
| 377 |
), |
| 378 |
), |
| 379 |
array( |
| 380 |
'id' => 'dark_mode_link_color_set9', |
| 381 |
'type' => 'color_group', |
| 382 |
'title' => esc_html__('Text', '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'), |
| 388 |
'color' => esc_html__('Link Color', 'darkify'), |
| 389 |
'hover' => esc_html__('Link Hover Color', 'darkify'), |
| 390 |
), |
| 391 |
'default' => array( |
| 392 |
'text' => '#C1D2BB', |
| 393 |
'color' => '#00d29a', |
| 394 |
'hover' => '#C1D2BB', |
| 395 |
), |
| 396 |
), |
| 397 |
|
| 398 |
array( |
| 399 |
'id' => 'dark_mode_input_color_set9', |
| 400 |
'type' => 'color_group', |
| 401 |
'title' => esc_html__('Input', 'darkify'), |
| 402 |
'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 403 |
'class' => 'only_pro', |
| 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 |
), |
| 410 |
'default' => array( |
| 411 |
'color' => '#C1D2BB', |
| 412 |
'placeholder' => '#C1D2BB', |
| 413 |
'background' => '#073d2f', |
| 414 |
), |
| 415 |
), |
| 416 |
|
| 417 |
array( |
| 418 |
'id' => 'dark_mode_border_color_set9', |
| 419 |
'type' => 'color', |
| 420 |
'title' => esc_html__('Border', 'darkify'), |
| 421 |
'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 422 |
'class' => 'only_pro', |
| 423 |
'dependency' => array('color_pallets', '==', 'set9', 'all'), |
| 424 |
'default' => '#095541', |
| 425 |
), |
| 426 |
array( |
| 427 |
'id' => 'dark_mode_btn_color_set9', |
| 428 |
'type' => 'color_group', |
| 429 |
'title' => esc_html__('Button', 'darkify'), |
| 430 |
'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 431 |
'class' => 'only_pro', |
| 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 |
), |
| 439 |
'default' => array( |
| 440 |
'color' => '#C1D2BB', |
| 441 |
'background' => '#095541', |
| 442 |
'hover_color' => '#C1D2BB', |
| 443 |
'hover_background' => '#073d2f', |
| 444 |
), |
| 445 |
), |
| 446 |
// color pallate set 10 |
| 447 |
array( |
| 448 |
'id' => 'dark_mode_color_set10', |
| 449 |
'type' => 'color_group', |
| 450 |
'title' => esc_html__('Background', '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'), |
| 456 |
), |
| 457 |
'default' => array( |
| 458 |
'background' => '#171004', |
| 459 |
'secondary_background' => '#211706', |
| 460 |
), |
| 461 |
), |
| 462 |
array( |
| 463 |
'id' => 'dark_mode_link_color_set10', |
| 464 |
'type' => 'color_group', |
| 465 |
'title' => esc_html__('Text', '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'), |
| 471 |
'color' => esc_html__('Link Color', 'darkify'), |
| 472 |
'hover' => esc_html__('Link Hover Color', 'darkify'), |
| 473 |
), |
| 474 |
'default' => array( |
| 475 |
'text' => '#E0D2BD', |
| 476 |
'color' => '#e09525', |
| 477 |
'hover' => '#E0D2BD', |
| 478 |
), |
| 479 |
), |
| 480 |
|
| 481 |
array( |
| 482 |
'id' => 'dark_mode_input_color_set10', |
| 483 |
'type' => 'color_group', |
| 484 |
'title' => esc_html__('Input', 'darkify'), |
| 485 |
'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 486 |
'class' => 'only_pro', |
| 487 |
'dependency' => array('color_pallets', '==', 'set10', 'all'), |
| 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 |
'default' => array( |
| 494 |
'color' => '#E0D2BD', |
| 495 |
'placeholder' => '#E0D2BD', |
| 496 |
'background' => '#372911', |
| 497 |
), |
| 498 |
), |
| 499 |
|
| 500 |
array( |
| 501 |
'id' => 'dark_mode_border_color_set10', |
| 502 |
'type' => 'color', |
| 503 |
'title' => esc_html__('Border', 'darkify'), |
| 504 |
'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 505 |
'class' => 'only_pro', |
| 506 |
'dependency' => array('color_pallets', '==', 'set10', 'all'), |
| 507 |
'default' => '#5D4010', |
| 508 |
), |
| 509 |
array( |
| 510 |
'id' => 'dark_mode_btn_color_set10', |
| 511 |
'type' => 'color_group', |
| 512 |
'title' => esc_html__('Button', 'darkify'), |
| 513 |
'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 514 |
'class' => 'only_pro', |
| 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 |
), |
| 522 |
'default' => array( |
| 523 |
'color' => '#E0D2BD', |
| 524 |
'background' => '#5D4010', |
| 525 |
'hover_color' => '#E0D2BD', |
| 526 |
'hover_background' => '#372911', |
| 527 |
), |
| 528 |
), |
| 529 |
// color pallate set 11 |
| 530 |
array( |
| 531 |
'id' => 'dark_mode_color_set11', |
| 532 |
'type' => 'color_group', |
| 533 |
'title' => esc_html__('Background', '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'), |
| 538 |
'secondary_background' => esc_html__('Secondary BG', 'darkify'), |
| 539 |
), |
| 540 |
'default' => array( |
| 541 |
'background' => '#19081b', |
| 542 |
'secondary_background' => '#210a24', |
| 543 |
), |
| 544 |
), |
| 545 |
array( |
| 546 |
'id' => 'dark_mode_link_color_set11', |
| 547 |
'type' => 'color_group', |
| 548 |
'title' => esc_html__('Text', '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'), |
| 554 |
'color' => esc_html__('Link Color', 'darkify'), |
| 555 |
'hover' => esc_html__('Link Hover Color', 'darkify'), |
| 556 |
), |
| 557 |
'default' => array( |
| 558 |
'text' => '#c09dc2', |
| 559 |
'color' => '#c832d4', |
| 560 |
'hover' => '#c09dc2', |
| 561 |
), |
| 562 |
), |
| 563 |
|
| 564 |
array( |
| 565 |
'id' => 'dark_mode_input_color_set11', |
| 566 |
'type' => 'color_group', |
| 567 |
'title' => esc_html__('Input', 'darkify'), |
| 568 |
'title_help' => '<div class="darkify-info-label">' . __('Set the input field color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 569 |
'class' => 'only_pro', |
| 570 |
'dependency' => array('color_pallets', '==', 'set11', 'all'), |
| 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 |
), |
| 576 |
'default' => array( |
| 577 |
'color' => '#c09dc2', |
| 578 |
'placeholder' => '#c09dc2', |
| 579 |
'background' => '#2c082f', |
| 580 |
), |
| 581 |
), |
| 582 |
|
| 583 |
array( |
| 584 |
'id' => 'dark_mode_border_color_set11', |
| 585 |
'type' => 'color', |
| 586 |
'title' => esc_html__('Border', 'darkify'), |
| 587 |
'title_help' => '<div class="darkify-info-label">' . __('Set the border color of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 588 |
'class' => 'only_pro', |
| 589 |
'dependency' => array('color_pallets', '==', 'set11', 'all'), |
| 590 |
'default' => '#440649', |
| 591 |
), |
| 592 |
array( |
| 593 |
'id' => 'dark_mode_btn_color_set11', |
| 594 |
'type' => 'color_group', |
| 595 |
'title' => esc_html__('Button', 'darkify'), |
| 596 |
'title_help' => '<div class="darkify-info-label">' . __('Set the color of buttons of your website when dark mode is enabled.', 'darkify') . '</div>', |
| 597 |
'class' => 'only_pro', |
| 598 |
'dependency' => array('color_pallets', '==', 'set11', 'all'), |
| 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 |
), |
| 605 |
'default' => array( |
| 606 |
'color' => '#c09dc2', |
| 607 |
'background' => '#440649', |
| 608 |
'hover_color' => '#c09dc2', |
| 609 |
'hover_background' => '#2c082f', |
| 610 |
), |
| 611 |
), |
| 612 |
) |
| 613 |
), |
| 614 |
|
| 615 |
array( |
| 616 |
'title' => esc_html__('Scroll Bar', 'darkify'), |
| 617 |
'icon' => 'icofont-scroll-double-down', |
| 618 |
'fields' => array( |
| 619 |
array( |
| 620 |
'id' => 'enable_scrollbar_dark', |
| 621 |
'type' => 'switcher', |
| 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>', |
| 624 |
'text_on' => esc_html__('Enabled', 'darkify'), |
| 625 |
'text_off' => esc_html__('Disabled', 'darkify'), |
| 626 |
'text_width' => 100, |
| 627 |
'default' => true, |
| 628 |
), |
| 629 |
|
| 630 |
array( |
| 631 |
'id' => 'scrollbar_color', |
| 632 |
'type' => 'color_group', |
| 633 |
'title' => esc_html__('Scrollbar Color', 'darkify'), |
| 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', |
| 636 |
'options' => array( |
| 637 |
'dark_mode_scrollbar_track_bg' => esc_html__('Trac BG', 'darkify'), |
| 638 |
'dark_mode_scrollbar_thumb_bg' => esc_html__('Thumb BG', 'darkify'), |
| 639 |
), |
| 640 |
'default' => array( |
| 641 |
'dark_mode_scrollbar_track_bg' => '#29292a', |
| 642 |
'dark_mode_scrollbar_thumb_bg' => '#52565a', |
| 643 |
), |
| 644 |
'dependency' => array('enable_scrollbar_dark', '==', 'true'), |
| 645 |
), |
| 646 |
|
| 647 |
|
| 648 |
) |
| 649 |
), |
| 650 |
|
| 651 |
) |
| 652 |
), |
| 653 |
), |
| 654 |
) |
| 655 |
); |
| 656 |
} |
| 657 |
} |
| 658 |
|