add_section( 'aces__global_button_setting' , array( 'title' => esc_html__( 'Button', 'aces' ), 'priority' => 10, 'panel' => $panel, ) ); $wp_customize->add_setting( 'aces_color_button_heading', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_color_button_heading', array( 'label' => esc_html__( 'Color', 'aces' ), 'section' => 'aces__global_button_setting', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_button_text_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_global_button_text_color', array( 'label' => esc_html__( 'Text', 'aces' ), 'section' => 'aces__global_button_setting', 'settings' => 'aces_global_button_text_color', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_button_hover_text_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_global_button_hover_text_color', array( 'label' => esc_html__( 'Hover: Text', 'aces' ), 'section' => 'aces__global_button_setting', 'settings' => 'aces_global_button_hover_text_color', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_button_bg_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_global_button_bg_color', array( 'label' => esc_html__( 'Background', 'aces' ), 'section' => 'aces__global_button_setting', 'settings' => 'aces_global_button_bg_color', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_button_hover_bg_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_global_button_hover_bg_color', array( 'label' => esc_html__( 'Hover: Background', 'aces' ), 'section' => 'aces__global_button_setting', 'settings' => 'aces_global_button_hover_bg_color', 'priority' => 10, ) ) ); /** * Theme Buttons Padding */ $wp_customize->add_setting( 'aces_theme_button_top_padding', array( 'transport' => 'postMessage', 'default' => '14', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_button_right_padding', array( 'transport' => 'postMessage', 'default' => '20', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_button_bottom_padding', array( 'transport' => 'postMessage', 'default' => '14', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_button_left_padding', array( 'transport' => 'postMessage', 'default' => '20', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_button_tablet_top_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_button_tablet_right_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_button_tablet_bottom_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_button_tablet_left_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_button_mobile_top_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_button_mobile_right_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_button_mobile_bottom_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_button_mobile_left_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Dimensions_Control( $wp_customize, 'aces_theme_button_padding_dimensions', array( 'label' => esc_html__( 'Padding (px)', 'aces' ), 'section' => 'aces__global_button_setting', 'settings' => array( 'desktop_top' => 'aces_theme_button_top_padding', 'desktop_right' => 'aces_theme_button_right_padding', 'desktop_bottom' => 'aces_theme_button_bottom_padding', 'desktop_left' => 'aces_theme_button_left_padding', 'tablet_top' => 'aces_theme_button_tablet_top_padding', 'tablet_right' => 'aces_theme_button_tablet_right_padding', 'tablet_bottom' => 'aces_theme_button_tablet_bottom_padding', 'tablet_left' => 'aces_theme_button_tablet_left_padding', 'mobile_top' => 'aces_theme_button_mobile_top_padding', 'mobile_right' => 'aces_theme_button_mobile_right_padding', 'mobile_bottom' => 'aces_theme_button_mobile_bottom_padding', 'mobile_left' => 'aces_theme_button_mobile_left_padding', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), ) ) ); /** * Theme Buttons Border Radius */ $wp_customize->add_setting( 'aces_theme_button_border_radius', array( 'transport' => 'postMessage', 'default' => '0', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_control( new Aces_Customizer_Range_Control( $wp_customize, 'aces_theme_button_border_radius', array( 'label' => esc_html__( 'Border Radius (px)', 'aces' ), 'section' => 'aces__global_button_setting', 'settings' => 'aces_theme_button_border_radius', 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), ) ) ); /** * Theme Buttons Border Radius */ $wp_customize->add_setting( 'aces_theme_button_border_size', array( 'default' => '0', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_control( new Aces_Customizer_Range_Control( $wp_customize, 'aces_theme_button_border_size', array( 'label' => esc_html__( 'Border (px)', 'aces' ), 'section' => 'aces__global_button_setting', 'settings' => 'aces_theme_button_border_size', 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 5, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'aces_theme_button_border_color', array( 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_theme_button_border_color', array( 'label' => esc_html__( 'Border Color', 'aces' ), 'section' => 'aces__global_button_setting', 'settings' => 'aces_theme_button_border_color', 'priority' => 10, ) ) ); ?>