add_setting( 'bc_logo' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bc_logo', array( 'label' => __( 'Logo', 'broadcast-lite' ), 'description' => __( 'This image should be square, at least 300 x 300 pixels.', 'broadcast-lite'), 'section' => 'bc_logo_image_settings', 'settings' => 'bc_logo', ) ) ); // END SETTING // SETTING - bc_logo_size $wp_customize->add_setting( 'bc_logo_size' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_logo_size', array( 'label' => __( 'Logo Width', 'broadcast-lite' ), 'description' => __( 'Adjust the maximum width of the logo. defaults to 300.', 'broadcast-lite'), 'type' => 'number', 'input_attrs' => array( 'min' => 100, 'max' => 500, 'step' => 25 ), 'section' => 'bc_logo_image_settings', 'settings' => 'bc_logo_size', ) ); // END SETTING // SETTING - bc_logo_check $wp_customize->add_setting( 'bc_logo_check' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_checkbox', ) ); $wp_customize->add_control( 'bc_logo_check', array( 'label' => __( 'Add a logo border', 'broadcast-lite' ), 'description' => __( 'Check this box if you would like to add a colored border to your logo.', 'broadcast-lite'), 'section' => 'bc_logo_image_settings', 'settings' => 'bc_logo_check', 'type' => 'checkbox', ) ); // END SETTING // SETTING - bc_colour_theme $wp_customize->add_setting( 'bc_logo_border_color' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bc_logo_border_color', array( 'label' => __( 'Logo Border Color', 'broadcast-lite' ), 'description' => __( 'Choose a border color for your site logo.', 'broadcast-lite'), 'section' => 'bc_logo_image_settings', 'settings' => 'bc_logo_border_color', ) ) ); // END SETTING } add_action( 'customize_register', 'broadcast_customize_logo_settings' );