add_section( 'color_scheme', array( 'title' => esc_html__( 'Color Scheme', 'ashlar' ), 'priority' => 60, 'capability' => 'edit_theme_options', 'panel' => 'theme_colors_panel', ) ); // Color Scheme. $wp_customize->add_setting( 'ashlar_color_schema', array( 'default' => $ashlar_default['ashlar_color_schema'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_select' ) ); $wp_customize->add_control( new Ashlar_Custom_Radio_Color_Schema( $wp_customize, 'ashlar_color_schema', array( 'settings' => 'ashlar_color_schema', 'section' => 'color_scheme', 'label' => esc_html__( 'Color Scheme', 'ashlar' ), 'choices' => array( 'default' => array( 'color' => array('#ffffff','#000','#0027ff','#000'), 'title' => esc_html__('Default','ashlar'), ), 'fancy' => array( 'color' => array('#faf7f2','#017eff','#fc9285','#455d58'), 'title' => esc_html__('Fancy','ashlar'), ), 'dark' => array( 'color' => array('#222222','#007CED','#fb7268','#ffffff'), 'title' => esc_html__('Dark','ashlar'), ), ) ) ) ); $wp_customize->add_setting( 'ashlar_primary_color', array( 'default' => $ashlar_default['ashlar_primary_color'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'ashlar_primary_color', array( 'label' => esc_html__( 'Primary Color', 'ashlar' ), 'section' => 'colors', 'settings' => 'ashlar_primary_color', ) ) ); $wp_customize->add_setting( 'ashlar_secondary_color', array( 'default' => $ashlar_default['ashlar_secondary_color'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'ashlar_secondary_color', array( 'label' => esc_html__( 'Secondary Color', 'ashlar' ), 'section' => 'colors', 'settings' => 'ashlar_secondary_color', ) ) ); $wp_customize->add_setting( 'ashlar_general_color', array( 'default' => $ashlar_default['ashlar_general_color'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'ashlar_general_color', array( 'label' => esc_html__( 'General Color', 'ashlar' ), 'section' => 'colors', 'settings' => 'ashlar_general_color', ) ) ); $wp_customize->add_setting( 'ashlar_premium_notiece_color_schema', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Ashlar_Premium_Notiece_Control( $wp_customize, 'ashlar_premium_notiece_color_schema', array( 'label' => esc_html__( 'Color Schemes', 'ashlar' ), 'settings' => 'ashlar_premium_notiece_color_schema', 'section' => 'color_scheme', ) ) ); $wp_customize->add_setting( 'ashlar_premium_notiece_color', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Ashlar_Premium_Notiece_Control( $wp_customize, 'ashlar_premium_notiece_color', array( 'label' => esc_html__( 'Color Options', 'ashlar' ), 'settings' => 'ashlar_premium_notiece_color', 'section' => 'colors', ) ) );