add_section( 'single_author_box_options', array( 'title' => __( 'Author Info Box Options', 'blogmine' ), 'panel' => 'single_posts_options_panel', ) ); $wp_customize->add_setting( 'show_author_info', array( 'default' => $theme_options_defaults['show_author_info'], 'sanitize_callback' => 'blogmine_sanitize_checkbox', ) ); $wp_customize->add_control( new Blogmine_Toggle_Control( $wp_customize, 'show_author_info', array( 'label' => __( 'Show Author Info Box', 'blogmine' ), 'section' => 'single_author_box_options', 'priority' => 10, ) ) ); /*Author box bg Color*/ $wp_customize->add_setting( 'author_info_bg_color', array( 'default' => $theme_options_defaults['author_info_bg_color'], 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'author_info_bg_color', array( 'label' => __( 'Author Info Box Background Color', 'blogmine' ), 'section' => 'single_author_box_options', 'type' => 'color', 'priority' => 20, ) ) );