@@ -403,51 +403,51 @@ |
||
403 | 403 | * Multicolor Control. |
404 | 404 | */ |
405 | 405 | Kirki::add_field( 'kirki_demo', array( |
406 | - 'type' => 'multicolor', |
|
407 | - 'settings' => 'multicolor_setting', |
|
408 | - 'label' => esc_attr__( 'Label', 'kirki' ), |
|
409 | - 'section' => 'multicolor_section', |
|
410 | - 'priority' => 10, |
|
411 | - 'choices' => array( |
|
412 | - 'link' => esc_attr__( 'Color', 'kirki' ), |
|
413 | - 'hover' => esc_attr__( 'Hover', 'kirki' ), |
|
414 | - 'active' => esc_attr__( 'Active', 'kirki' ), |
|
415 | - ), |
|
416 | - 'default' => array( |
|
417 | - 'link' => '#0088cc', |
|
418 | - 'hover' => '#00aaff', |
|
419 | - 'active' => '#00ffff', |
|
420 | - ), |
|
406 | + 'type' => 'multicolor', |
|
407 | + 'settings' => 'multicolor_setting', |
|
408 | + 'label' => esc_attr__( 'Label', 'kirki' ), |
|
409 | + 'section' => 'multicolor_section', |
|
410 | + 'priority' => 10, |
|
411 | + 'choices' => array( |
|
412 | + 'link' => esc_attr__( 'Color', 'kirki' ), |
|
413 | + 'hover' => esc_attr__( 'Hover', 'kirki' ), |
|
414 | + 'active' => esc_attr__( 'Active', 'kirki' ), |
|
415 | + ), |
|
416 | + 'default' => array( |
|
417 | + 'link' => '#0088cc', |
|
418 | + 'hover' => '#00aaff', |
|
419 | + 'active' => '#00ffff', |
|
420 | + ), |
|
421 | 421 | ) ); |
422 | 422 | |
423 | 423 | /** |
424 | 424 | * Number Control. |
425 | 425 | */ |
426 | 426 | Kirki::add_field( 'kirki_demo', array( |
427 | - 'type' => 'number', |
|
428 | - 'settings' => 'number_setting', |
|
429 | - 'label' => esc_attr__( 'Label', 'kirki' ), |
|
430 | - 'section' => 'number_section', |
|
431 | - 'priority' => 10, |
|
432 | - 'choices' => array( |
|
427 | + 'type' => 'number', |
|
428 | + 'settings' => 'number_setting', |
|
429 | + 'label' => esc_attr__( 'Label', 'kirki' ), |
|
430 | + 'section' => 'number_section', |
|
431 | + 'priority' => 10, |
|
432 | + 'choices' => array( |
|
433 | 433 | 'min' => -5, |
434 | 434 | 'max' => 5, |
435 | 435 | 'step' => 1, |
436 | - ), |
|
436 | + ), |
|
437 | 437 | ) ); |
438 | 438 | /** |
439 | 439 | * Palette Control. |
440 | 440 | */ |
441 | 441 | Kirki::add_field( 'kirki_demo', array( |
442 | - 'type' => 'palette', |
|
443 | - 'settings' => 'palette_setting', |
|
444 | - 'label' => esc_attr__( 'Label', 'kirki' ), |
|
445 | - 'section' => 'palette_section', |
|
442 | + 'type' => 'palette', |
|
443 | + 'settings' => 'palette_setting', |
|
444 | + 'label' => esc_attr__( 'Label', 'kirki' ), |
|
445 | + 'section' => 'palette_section', |
|
446 | 446 | 'default' => 'blue', |
447 | - 'choices' => array( |
|
447 | + 'choices' => array( |
|
448 | 448 | 'a200' => Kirki_Helper::get_material_design_colors( 'A200' ), |
449 | 449 | 'blue' => Kirki_Helper::get_material_design_colors( 'blue' ), |
450 | 450 | 'green' => array( '#E8F5E9', '#C8E6C9', '#A5D6A7', '#81C784', '#66BB6A', '#4CAF50', '#43A047', '#388E3C', '#2E7D32', '#1B5E20', '#B9F6CA', '#69F0AE', '#00E676', '#00C853' ), |
451 | 451 | 'bnw' => array( '#000000', '#ffffff' ), |
452 | - ), |
|
452 | + ), |
|
453 | 453 | ) ); |