|
@@ -58,11 +58,13 @@ if ( ! function_exists( 'coutoire_setup' ) ) :
|
|
*
|
|
*
|
|
* - if the customizer color is empty, use the default
|
|
* - if the customizer color is empty, use the default
|
|
*/
|
|
*/
|
|
- $colors_array = get_theme_mod( 'colors_manager' ); // color annotations array()
|
|
|
|
- $primary = ! empty( $colors_array ) ? $colors_array['colors']['link'] : '#0000FF'; // $config-global--color-primary-default;
|
|
|
|
- $secondary = ! empty( $colors_array ) ? $colors_array['colors']['fg1'] : '#FF0000'; // $config-global--color-secondary-default;
|
|
|
|
- $foreground = ! empty( $colors_array ) ? $colors_array['colors']['txt'] : '#444444'; // $config-global--color-foreground-default;
|
|
|
|
- $background = ! empty( $colors_array ) ? $colors_array['colors']['bg'] : '#FFFFFF'; // $config-global--color-background-default;
|
|
|
|
|
|
+ $colors_array = get_theme_mod( 'colors_manager' ); // color annotations array()
|
|
|
|
+ $primary = ! empty( $colors_array ) ? $colors_array['colors']['link'] : '#000000'; // $config-global--color-primary-default;
|
|
|
|
+ $secondary = ! empty( $colors_array ) ? $colors_array['colors']['fg1'] : '#FF7A5C'; // $config-global--color-secondary-default;
|
|
|
|
+ $background = ! empty( $colors_array ) ? $colors_array['colors']['bg'] : '#FFFFFF'; // $config-global--color-background-default;
|
|
|
|
+ $foreground = ! empty( $colors_array ) ? $colors_array['colors']['txt'] : '#444444'; // $config-global--color-foreground-default;
|
|
|
|
+ $foreground_light = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#444444' ) ? $colors_array['colors']['txt'] : '#767676'; // $config-global--color-foreground-light-default;
|
|
|
|
+ $foreground_dark = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#444444' ) ? $colors_array['colors']['txt'] : '#111111'; // $config-global--color-foreground-dark-default;
|
|
|
|
|
|
// Editor color palette.
|
|
// Editor color palette.
|
|
add_theme_support(
|
|
add_theme_support(
|
|
@@ -78,15 +80,25 @@ if ( ! function_exists( 'coutoire_setup' ) ) :
|
|
'slug' => 'secondary',
|
|
'slug' => 'secondary',
|
|
'color' => $secondary,
|
|
'color' => $secondary,
|
|
),
|
|
),
|
|
|
|
+ array(
|
|
|
|
+ 'name' => __( 'Background', 'coutoire' ),
|
|
|
|
+ 'slug' => 'background',
|
|
|
|
+ 'color' => $background,
|
|
|
|
+ ),
|
|
array(
|
|
array(
|
|
'name' => __( 'Foreground', 'coutoire' ),
|
|
'name' => __( 'Foreground', 'coutoire' ),
|
|
'slug' => 'foreground',
|
|
'slug' => 'foreground',
|
|
'color' => $foreground,
|
|
'color' => $foreground,
|
|
),
|
|
),
|
|
array(
|
|
array(
|
|
- 'name' => __( 'Background', 'coutoire' ),
|
|
|
|
- 'slug' => 'background',
|
|
|
|
- 'color' => $background,
|
|
|
|
|
|
+ 'name' => __( 'Foreground Light', 'coutoire' ),
|
|
|
|
+ 'slug' => 'foreground-light',
|
|
|
|
+ 'color' => $foreground_light,
|
|
|
|
+ ),
|
|
|
|
+ array(
|
|
|
|
+ 'name' => __( 'Foreground Dark', 'coutoire' ),
|
|
|
|
+ 'slug' => 'foreground-dark',
|
|
|
|
+ 'color' => $foreground_dark,
|
|
),
|
|
),
|
|
)
|
|
)
|
|
);
|
|
);
|