add_section( 'aces_header_logo', array( 'title' => esc_html__( 'Logo', 'aces' ), 'priority' => 10, 'panel' => $panel, ) ); $wp_customize->add_setting( 'aces_logo_length', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_control( new Aces_Customizer_Range_Control( $wp_customize, 'aces_logo_length', array( 'label' => esc_html__( 'Logo width (px)', 'aces' ), 'section' => 'aces_header_logo', 'settings' => 'aces_logo_length', 'priority' => 5, 'input_attrs' => array( 'min' => 0, 'max' => 400, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'aces_logo_title_tagline_enable', array( 'default' => false, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_logo_title_tagline_enable', array( 'label' => esc_html__( 'Inline Logo + Title/Tagline', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_header_logo', 'settings' => 'aces_logo_title_tagline_enable', 'priority' => 6, ) ) ); $wp_customize->add_setting( 'aces_tagline_enable', array( 'default' => true, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_tagline_enable', array( 'label' => esc_html__( 'Display Title', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_header_logo', 'settings' => 'aces_tagline_enable', 'priority' => 8, ) ) );