add_section( 'feature_box_section' , array(
'title' => esc_html__( 'Home Feature Box', 'abcblog' ),
'priority' => 3,
) );
$wp_customize->add_setting('show_feature_box', array(
'default' => 'yes',
'sanitize_callback' => '__return_false_value',
'transport' => 'postMessage'
));
$wp_customize->add_control(
'show_feature_box', array(
'settings' => 'show_feature_box',
'label' => esc_html__( 'Display Homepage Featured Box?', 'abcblog' ),
'section' => 'feature_box_section',
'type' => 'select',
'priority' => 1,
'choices' => array(
'yes' => 'Yes',
'no' => 'No',
),
));
$wp_customize->add_setting( 'feature_box_bg_color' , array(
'sanitize_callback' => 'sanitize_hex_color',
'default' => '#dcdbdb',
'transport' => 'refresh',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'feature_box_bg_color', array(
'label' => esc_html__( 'Feature Box Background Color', 'abcblog' ),
'description' => esc_html__( 'Chose this section background color', 'abcblog' ),
'section' => 'feature_box_section',
'settings' => 'feature_box_bg_color',
'priority' => 2,
) ) );
$wp_customize->add_setting('first_feature_box_img', array(
'sanitize_callback' => '__return_false_value',
));
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'first_feature_box_img', array(
'label' => esc_html__( 'First Featured Box Image', 'abcblog' ),
'description' => wp_kses_post('Recommended image size 900px width and 640px height', 'abcblog'),
'section' => 'feature_box_section',
'settings' => 'first_feature_box_img',
'priority' => 3,
) ) );
$wp_customize->add_setting('first_box_text', array(
'default' => 'Travel',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'first_box_text', array(
'settings' => 'first_box_text',
'label' => esc_html__( 'First Box Text', 'abcblog' ),
'section' => 'feature_box_section',
'type' => 'text',
'priority' => 5,
));
$wp_customize->add_setting('first_box_link', array(
'default' => '#',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'first_box_link', array(
'settings' => 'first_box_link',
'label' => esc_html__( 'First Box Link', 'abcblog' ),
'section' => 'feature_box_section',
'type' => 'text',
'priority' => 6,
));
$wp_customize->add_setting('second_feature_box_img', array(
'sanitize_callback' => '__return_false_value',
));
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'second_feature_box_img', array(
'label' => esc_html__( 'Second Featured Box Image', 'abcblog' ),
'description' => wp_kses_post('Recommended image size 900px width and 640px height', 'abcblog'),
'section' => 'feature_box_section',
'settings' => 'second_feature_box_img',
'priority' => 7,
) ) );
$wp_customize->add_setting('second_box_text', array(
'default' => 'Food',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'second_box_text', array(
'settings' => 'second_box_text',
'label' => esc_html__( 'Second Box Text', 'abcblog' ),
'section' => 'feature_box_section',
'type' => 'text',
'priority' => 9,
));
$wp_customize->add_setting('second_box_link', array(
'default' => '#',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'second_box_link', array(
'settings' => 'second_box_link',
'label' => esc_html__( 'Second Box Link', 'abcblog' ),
'section' => 'feature_box_section',
'type' => 'text',
'priority' =>10,
));
$wp_customize->add_setting('third_feature_box_img', array(
'sanitize_callback' => '__return_false_value',
));
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'third_feature_box_img', array(
'label' => esc_html__( 'Third Featured Box Image', 'abcblog' ),
'description' => wp_kses_post('Recommended image size 900px width and 640px height', 'abcblog'),
'section' => 'feature_box_section',
'settings' => 'third_feature_box_img',
'priority' => 11,
) ) );
$wp_customize->add_setting('third_box_text', array(
'default' => 'Fashion',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'third_box_text', array(
'settings' => 'third_box_text',
'label' => esc_html__( 'Third Box Text', 'abcblog' ),
'section' => 'feature_box_section',
'type' => 'text',
'priority' => 13,
));
$wp_customize->add_setting('third_box_link', array(
'default' => '#',
'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control(
'third_box_link', array(
'settings' => 'third_box_link',
'label' => esc_html__( 'Third Box Link', 'abcblog' ),
'section' => 'feature_box_section',
'type' => 'text',
'priority' =>14,
));
}
add_action( 'customize_register', 'abcblog_feature_box_settings_register' );