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