id;
foreach($this->choices as $key => $value ) {
?>
add_section( 'theme_style' , array(
'title' => __('Theme Style Setting', 'appointment'),
'priority' => 900,
) );
//Theme Color Scheme
$wp_customize->add_setting(
'appointment_options[theme_color]', array(
'default' => 'default.css',
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(new WP_color_Customize_Control($wp_customize,'appointment_options[theme_color]',
array(
'label' => __('Predefined Colors', 'appointment'),
'section' => 'theme_style',
'type' => 'radio',
'settings' => 'appointment_options[theme_color]',
'choices' => array(
'default.css' => 'orange.jpg',
'blue.css' => 'blue.jpg',
'green.css' => 'green.jpg',
'red.css' => 'red.jpg',
'cyan.css' => 'cyan.jpg',
'regalblue.css' =>'regal.jpg',
'lightsea.css' => 'lightsea.jpg',
'wadgewood.css' => 'wadge.jpg',
'aqua.css' => 'aqua.jpg',
'yellow.css' => 'yellow.jpg',
'pink.css' => 'pink.jpg',
'cirousblue.css' => 'cirous.jpg',
'mandy.css' => 'mandy.jpg',
)
)));
$wp_customize->add_setting(
'appointment_options[link_color_enable]',
array(
'default' => true,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field',
'type' => 'option',
)
);
$wp_customize->add_control(
'appointment_options[link_color_enable]',
array(
'label' => __('Skin Color Enable','appointment'),
'section' => 'theme_style',
'type' => 'checkbox',
)
);
$wp_customize->add_setting(
'appointment_options[link_color]', array(
'capability' => 'edit_theme_options',
'default' => '#ee591f',
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'appointment_options[link_color]',
array(
'label' => __( 'Skin Color', 'appointment' ),
'section' => 'theme_style',
'settings' => 'appointment_options[link_color]',
'input_attrs'=>array(
'readonly'=>'readonly','disabled'=>'disabled')
) ) );
}
add_action( 'customize_register', 'appointment_style_customizer' );