add_section( 'aces_typography_global_setting' , array( 'title' => esc_html__( 'Typography', 'aces' ), 'priority' => 10, 'panel' => $panel, ) ); $wp_customize->add_setting( 'aces_global_body_typo_enable', array( 'default' => false, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_body_typo_enable', array( 'label' => esc_html__( 'Edit Body & Content', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_body_typo_enable', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_typography_heading', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_global_typography_heading', array( 'label' => esc_html__( 'Body & Content', 'aces' ), 'section' => 'aces_typography_global_setting', 'priority' => 10, 'active_callback' =>'aces_body_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_global_body_font_family', array( 'default' => 'Raleway', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_body_font_family', array( 'label' => esc_html__( 'Font family', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_body_font_family', 'priority' => 10, 'active_callback' =>'aces_body_typo_enable', 'choices' => aces_font_family(), ) ) ); /* Font size */ $wp_customize->add_setting( 'aces_body_desktop_typography_font_size', array( 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_body_tablet_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_setting( 'aces_body_mobile_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Aces_Customizer_Text_Control( $wp_customize, 'aces_global_typography_font_size', array( 'label' => esc_html__( 'Font Size(px)', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_body_desktop_typography_font_size', 'tablet' => 'aces_body_tablet_typography_font_size', 'mobile' => 'aces_body_mobile_typography_font_size', ), 'priority' => 10, 'active_callback' =>'aces_body_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_typography_global_font_weight', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_typography_global_font_weight', array( 'label' => esc_html__( 'Font Weight', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_typography_global_font_weight', 'priority' => 10, 'choices' => array( '100' => esc_html__( '100', 'aces' ), '200' => esc_html__( '200', 'aces' ), '300' => esc_html__( '300', 'aces' ), '400' => esc_html__( '400', 'aces' ), '500' => esc_html__( '500', 'aces' ), '600' => esc_html__( '600', 'aces' ), '700' => esc_html__( '700', 'aces' ), '800' => esc_html__( '800', 'aces' ), '900' => esc_html__( '900', 'aces' ), ), 'active_callback' =>'aces_body_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_typography_global_text_transform', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_typography_global_text_transform', array( 'label' => esc_html__( 'Text Transform', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_typography_global_text_transform', 'priority' => 10, 'choices' => array( '' => esc_html__( 'Default', 'aces' ), 'capitalize' => esc_html__( 'Capitalize', 'aces' ), 'lowercase' => esc_html__( 'Lowercase', 'aces' ), 'uppercase' => esc_html__( 'Uppercase', 'aces' ), 'none' => esc_html__( 'None', 'aces' ), ), 'active_callback' =>'aces_body_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_typography_global_line_height', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_typography_global_tablet_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_typography_global_mobile_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_typography_global_line_height', array( 'label' => esc_html__( 'Line Height', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_typography_global_line_height', 'tablet' => 'aces_typography_global_tablet_line_height', 'mobile' => 'aces_typography_global_mobile_line_height', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 4, 'step' => 0.1, ), 'active_callback' =>'aces_body_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_typography_global_letter_spacing', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_typography_global_tablet_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_typography_global_mobile_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_typography_global_letter_spacing', array( 'label' => esc_html__( 'Letter Spacing', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_typography_global_letter_spacing', 'tablet' => 'aces_typography_global_tablet_letter_spacing', 'mobile' => 'aces_typography_global_mobile_letter_spacing', ), 'priority' => 10, 'input_attrs' => array( 'min' => 1, 'max' => 20, 'step' => 1, ), 'active_callback' =>'aces_body_typo_enable', ) ) ); // all heading starts $wp_customize->add_setting( 'aces_global_typo_all_heading_enable', array( 'default' => false, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_typo_all_heading_enable', array( 'label' => esc_html__( 'Edit All Heading', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_typo_all_heading_enable', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_typo_all_heading', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_global_typo_all_heading', array( 'label' => esc_html__( 'All Heading', 'aces' ), 'section' => 'aces_typography_global_setting', 'priority' => 10, 'active_callback' =>'aces_all_heading_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_global_all_heading_font_family', array( 'default' => 'Raleway', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_all_heading_font_family', array( 'label' => esc_html__( 'Font family', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_all_heading_font_family', 'priority' => 10, 'active_callback' =>'aces_all_heading_typo_enable', 'choices' => array( 'Raleway' => esc_html__( 'Raleway','aces' ), 'Gelasio' => esc_html__( 'Gelasio','aces' ), 'Ma Shan Zheng' => esc_html__( 'Ma Shan Zheng','aces' ), ), ) ) ); $wp_customize->add_setting( 'aces_all_heading_typography_global_font_weight', array( 'transport' => 'postMessage', 'default' => '400', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_all_heading_typography_global_font_weight', array( 'label' => esc_html__( 'Font Weight', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_all_heading_typography_global_font_weight', 'priority' => 10, 'choices' => array( '100' => esc_html__( '100', 'aces' ), '200' => esc_html__( '200', 'aces' ), '300' => esc_html__( '300', 'aces' ), '400' => esc_html__( '400', 'aces' ), '500' => esc_html__( '500', 'aces' ), '600' => esc_html__( '600', 'aces' ), '700' => esc_html__( '700', 'aces' ), '800' => esc_html__( '800', 'aces' ), '900' => esc_html__( '900', 'aces' ), ), 'active_callback' =>'aces_all_heading_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_all_heading_typography_global_text_transform', array( 'transport' => 'postMessage', 'default' => '400', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_all_heading_typography_global_text_transform', array( 'label' => esc_html__( 'Text Transform', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_all_heading_typography_global_text_transform', 'priority' => 10, 'choices' => array( '' => esc_html__( 'Default', 'aces' ), 'capitalize' => esc_html__( 'Capitalize', 'aces' ), 'lowercase' => esc_html__( 'Lowercase', 'aces' ), 'uppercase' => esc_html__( 'Uppercase', 'aces' ), 'none' => esc_html__( 'None', 'aces' ), ), 'active_callback' =>'aces_all_heading_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_all_heading_typography_global_line_height', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_all_heading_typography_global_tablet_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_all_heading_typography_global_mobile_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_all_heading_typography_global_line_height', array( 'label' => esc_html__( 'Line Height', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_all_heading_typography_global_line_height', 'tablet' => 'aces_all_heading_typography_global_tablet_line_height', 'mobile' => 'aces_all_heading_typography_global_mobile_line_height', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 4, 'step' => 0.1, ), 'active_callback' =>'aces_all_heading_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_all_heading_typography_global_letter_spacing', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_all_heading_typography_global_tablet_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_all_heading_typography_global_mobile_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_all_heading_typography_global_letter_spacing', array( 'label' => esc_html__( 'Letter Spacing', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_all_heading_typography_global_letter_spacing', 'tablet' => 'aces_all_heading_typography_global_tablet_letter_spacing', 'mobile' => 'aces_all_heading_typography_global_mobile_letter_spacing', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 0.1, ), 'active_callback' =>'aces_all_heading_typo_enable', ) ) ); // h1 starst $wp_customize->add_setting( 'aces_global_typo_h1_enable', array( 'default' => false, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_typo_h1_enable', array( 'label' => esc_html__( 'Edit Heading (H1)', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_typo_h1_enable', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_typo_heading', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_global_typo_heading', array( 'label' => esc_html__( 'Heading (H1)', 'aces' ), 'section' => 'aces_typography_global_setting', 'priority' => 10, 'active_callback' =>'aces_h1_typo_enable', ) ) ); /* Font size */ $wp_customize->add_setting( 'aces_h1_desktop_typography_font_size', array( 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h1_tablet_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_setting( 'aces_h1_mobile_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Aces_Customizer_Text_Control( $wp_customize, 'aces_global_h1_typography_font_size', array( 'label' => esc_html__( 'Font Size(px)', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h1_desktop_typography_font_size', 'tablet' => 'aces_h1_tablet_typography_font_size', 'mobile' => 'aces_h1_mobile_typography_font_size', ), 'priority' => 10, 'active_callback' =>'aces_h1_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h1_typography_global_font_weight', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h1_typography_global_font_weight', array( 'label' => esc_html__( 'Font Weight', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h1_typography_global_font_weight', 'priority' => 10, 'choices' => array( '100' => esc_html__( '100', 'aces' ), '200' => esc_html__( '200', 'aces' ), '300' => esc_html__( '300', 'aces' ), '400' => esc_html__( '400', 'aces' ), '500' => esc_html__( '500', 'aces' ), '600' => esc_html__( '600', 'aces' ), '700' => esc_html__( '700', 'aces' ), '800' => esc_html__( '800', 'aces' ), '900' => esc_html__( '900', 'aces' ), ), 'active_callback' =>'aces_h1_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h1_typography_global_text_transform', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h1_typography_global_text_transform', array( 'label' => esc_html__( 'Text Transform', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h1_typography_global_text_transform', 'priority' => 10, 'choices' => array( '' => esc_html__( 'Default', 'aces' ), 'capitalize' => esc_html__( 'Capitalize', 'aces' ), 'lowercase' => esc_html__( 'Lowercase', 'aces' ), 'uppercase' => esc_html__( 'Uppercase', 'aces' ), 'none' => esc_html__( 'None', 'aces' ), ), 'active_callback' =>'aces_h1_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h1_typography_global_line_height', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h1_typography_global_tablet_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h1_typography_global_mobile_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h1_typography_global_line_height', array( 'label' => esc_html__( 'Line Height', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h1_typography_global_line_height', 'tablet' => 'aces_h1_typography_global_tablet_line_height', 'mobile' => 'aces_h1_typography_global_mobile_line_height', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 4, 'step' => 0.1, ), 'active_callback' =>'aces_h1_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h1_typography_global_letter_spacing', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h1_typography_global_tablet_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h1_typography_global_mobile_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h1_typography_global_letter_spacing', array( 'label' => esc_html__( 'Letter Spacing', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h1_typography_global_letter_spacing', 'tablet' => 'aces_h1_typography_global_tablet_letter_spacing', 'mobile' => 'aces_h1_typography_global_mobile_letter_spacing', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 0.1, ), 'active_callback' =>'aces_h1_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_global_typo_h2_enable', array( 'default' => false, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_typo_h2_enable', array( 'label' => esc_html__( 'Edit Heading (H2)', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_typo_h2_enable', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_typo_heading_h2', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_global_typo_heading_h2', array( 'label' => esc_html__( 'Heading (H2)', 'aces' ), 'section' => 'aces_typography_global_setting', 'priority' => 10, 'active_callback' =>'aces_h2_typo_enable', ) ) ); /* Font size */ $wp_customize->add_setting( 'aces_h2_desktop_typography_font_size', array( 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h2_tablet_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_setting( 'aces_h2_mobile_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Aces_Customizer_Text_Control( $wp_customize, 'aces_global_h2_typography_font_size', array( 'label' => esc_html__( 'Font Size(px)', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h2_desktop_typography_font_size', 'tablet' => 'aces_h2_tablet_typography_font_size', 'mobile' => 'aces_h2_mobile_typography_font_size', ), 'priority' => 10, 'active_callback' =>'aces_h2_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h2_typography_global_font_weight', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h2_typography_global_font_weight', array( 'label' => esc_html__( 'Font Weight', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h2_typography_global_font_weight', 'priority' => 10, 'choices' => array( '100' => esc_html__( '100', 'aces' ), '200' => esc_html__( '200', 'aces' ), '300' => esc_html__( '300', 'aces' ), '400' => esc_html__( '400', 'aces' ), '500' => esc_html__( '500', 'aces' ), '600' => esc_html__( '600', 'aces' ), '700' => esc_html__( '700', 'aces' ), '800' => esc_html__( '800', 'aces' ), '900' => esc_html__( '900', 'aces' ), ), 'active_callback' =>'aces_h2_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h2_typography_global_text_transform', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h2_typography_global_text_transform', array( 'label' => esc_html__( 'Text Transform', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h2_typography_global_text_transform', 'priority' => 10, 'choices' => array( '' => esc_html__( 'Default', 'aces' ), 'capitalize' => esc_html__( 'Capitalize', 'aces' ), 'lowercase' => esc_html__( 'Lowercase', 'aces' ), 'uppercase' => esc_html__( 'Uppercase', 'aces' ), 'none' => esc_html__( 'None', 'aces' ), ), 'active_callback' =>'aces_h2_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h2_typography_global_line_height', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h2_typography_global_tablet_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h2_typography_global_mobile_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h2_typography_global_line_height', array( 'label' => esc_html__( 'Line Height', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h2_typography_global_line_height', 'tablet' => 'aces_h2_typography_global_tablet_line_height', 'mobile' => 'aces_h2_typography_global_mobile_line_height', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 4, 'step' => 0.1, ), 'active_callback' =>'aces_h2_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h2_typography_global_letter_spacing', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h2_typography_global_tablet_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h2_typography_global_mobile_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h2_typography_global_letter_spacing', array( 'label' => esc_html__( 'Letter Spacing', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h2_typography_global_letter_spacing', 'tablet' => 'aces_h2_typography_global_tablet_letter_spacing', 'mobile' => 'aces_h2_typography_global_mobile_letter_spacing', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 0.1, ), 'active_callback' =>'aces_h2_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_global_typo_h3_enable', array( 'default' => false, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_typo_h3_enable', array( 'label' => esc_html__( 'Edit Heading (H3)', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_typo_h3_enable', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_typo_heading_h3', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_global_typo_heading_h3', array( 'label' => esc_html__( 'Heading (H3)', 'aces' ), 'section' => 'aces_typography_global_setting', 'priority' => 10, 'active_callback' =>'aces_h3_typo_enable', ) ) ); /* Font size */ $wp_customize->add_setting( 'aces_h3_desktop_typography_font_size', array( 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h3_tablet_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_setting( 'aces_h3_mobile_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Aces_Customizer_Text_Control( $wp_customize, 'aces_global_h3_typography_font_size', array( 'label' => esc_html__( 'Font Size(px)', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h3_desktop_typography_font_size', 'tablet' => 'aces_h3_tablet_typography_font_size', 'mobile' => 'aces_h3_mobile_typography_font_size', ), 'priority' => 10, 'active_callback' =>'aces_h3_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h3_typography_global_font_weight', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h3_typography_global_font_weight', array( 'label' => esc_html__( 'Font Weight', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h3_typography_global_font_weight', 'priority' => 10, 'choices' => array( '100' => esc_html__( '100', 'aces' ), '200' => esc_html__( '200', 'aces' ), '300' => esc_html__( '300', 'aces' ), '400' => esc_html__( '400', 'aces' ), '500' => esc_html__( '500', 'aces' ), '600' => esc_html__( '600', 'aces' ), '700' => esc_html__( '700', 'aces' ), '800' => esc_html__( '800', 'aces' ), '900' => esc_html__( '900', 'aces' ), ), 'active_callback' =>'aces_h3_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h3_typography_global_text_transform', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h3_typography_global_text_transform', array( 'label' => esc_html__( 'Text Transform', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h3_typography_global_text_transform', 'priority' => 10, 'choices' => array( '' => esc_html__( 'Default', 'aces' ), 'capitalize' => esc_html__( 'Capitalize', 'aces' ), 'lowercase' => esc_html__( 'Lowercase', 'aces' ), 'uppercase' => esc_html__( 'Uppercase', 'aces' ), 'none' => esc_html__( 'None', 'aces' ), ), 'active_callback' =>'aces_h3_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h3_typography_global_line_height', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h3_typography_global_tablet_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h3_typography_global_mobile_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h3_typography_global_line_height', array( 'label' => esc_html__( 'Line Height', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h3_typography_global_line_height', 'tablet' => 'aces_h3_typography_global_tablet_line_height', 'mobile' => 'aces_h3_typography_global_mobile_line_height', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 4, 'step' => 0.1, ), 'active_callback' =>'aces_h3_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h3_typography_global_letter_spacing', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h3_typography_global_tablet_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h3_typography_global_mobile_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h3_typography_global_letter_spacing', array( 'label' => esc_html__( 'Letter Spacing', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h3_typography_global_letter_spacing', 'tablet' => 'aces_h3_typography_global_tablet_letter_spacing', 'mobile' => 'aces_h3_typography_global_mobile_letter_spacing', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 0.1, ), 'active_callback' =>'aces_h3_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_global_typo_h4_enable', array( 'default' => false, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_typo_h4_enable', array( 'label' => esc_html__( 'Edit Heading (H4)', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_typo_h4_enable', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_typo_heading_h4', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_global_typo_heading_h4', array( 'label' => esc_html__( 'Heading (H4)', 'aces' ), 'section' => 'aces_typography_global_setting', 'priority' => 10, 'active_callback' =>'aces_h4_typo_enable', ) ) ); /* Font size */ $wp_customize->add_setting( 'aces_h4_desktop_typography_font_size', array( 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h4_tablet_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_setting( 'aces_h4_mobile_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Aces_Customizer_Text_Control( $wp_customize, 'aces_global_h4_typography_font_size', array( 'label' => esc_html__( 'Font Size(px)', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h4_desktop_typography_font_size', 'tablet' => 'aces_h4_tablet_typography_font_size', 'mobile' => 'aces_h4_mobile_typography_font_size', ), 'priority' => 10, 'active_callback' =>'aces_h4_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h4_typography_global_font_weight', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h4_typography_global_font_weight', array( 'label' => esc_html__( 'Font Weight', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h4_typography_global_font_weight', 'priority' => 10, 'choices' => array( '100' => esc_html__( '100', 'aces' ), '200' => esc_html__( '200', 'aces' ), '300' => esc_html__( '300', 'aces' ), '400' => esc_html__( '400', 'aces' ), '500' => esc_html__( '500', 'aces' ), '600' => esc_html__( '600', 'aces' ), '700' => esc_html__( '700', 'aces' ), '800' => esc_html__( '800', 'aces' ), '900' => esc_html__( '900', 'aces' ), ), 'active_callback' =>'aces_h4_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h4_typography_global_text_transform', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h4_typography_global_text_transform', array( 'label' => esc_html__( 'Text Transform', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h4_typography_global_text_transform', 'priority' => 10, 'choices' => array( '' => esc_html__( 'Default', 'aces' ), 'capitalize' => esc_html__( 'Capitalize', 'aces' ), 'lowercase' => esc_html__( 'Lowercase', 'aces' ), 'uppercase' => esc_html__( 'Uppercase', 'aces' ), 'none' => esc_html__( 'None', 'aces' ), ), 'active_callback' =>'aces_h4_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h4_typography_global_line_height', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h4_typography_global_tablet_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h4_typography_global_mobile_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h4_typography_global_line_height', array( 'label' => esc_html__( 'Line Height', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h4_typography_global_line_height', 'tablet' => 'aces_h4_typography_global_tablet_line_height', 'mobile' => 'aces_h4_typography_global_mobile_line_height', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 4, 'step' => 0.1, ), 'active_callback' =>'aces_h4_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h4_typography_global_letter_spacing', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h4_typography_global_tablet_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h4_typography_global_mobile_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h4_typography_global_letter_spacing', array( 'label' => esc_html__( 'Letter Spacing', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h4_typography_global_letter_spacing', 'tablet' => 'aces_h4_typography_global_tablet_letter_spacing', 'mobile' => 'aces_h4_typography_global_mobile_letter_spacing', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 0.1, ), 'active_callback' =>'aces_h4_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_global_typo_h5_enable', array( 'default' => false, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_typo_h5_enable', array( 'label' => esc_html__( 'Edit Heading (H5)', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_typo_h5_enable', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_typo_heading_h5', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_global_typo_heading_h5', array( 'label' => esc_html__( 'Heading (H5)', 'aces' ), 'section' => 'aces_typography_global_setting', 'priority' => 10, 'active_callback' =>'aces_h5_typo_enable', ) ) ); /* Font size */ $wp_customize->add_setting( 'aces_h5_desktop_typography_font_size', array( 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h5_tablet_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_setting( 'aces_h5_mobile_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Aces_Customizer_Text_Control( $wp_customize, 'aces_global_h5_typography_font_size', array( 'label' => esc_html__( 'Font Size(px)', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h5_desktop_typography_font_size', 'tablet' => 'aces_h5_tablet_typography_font_size', 'mobile' => 'aces_h5_mobile_typography_font_size', ), 'priority' => 10, 'active_callback' =>'aces_h5_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h5_typography_global_font_weight', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h5_typography_global_font_weight', array( 'label' => esc_html__( 'Font Weight', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h5_typography_global_font_weight', 'priority' => 10, 'choices' => array( '100' => esc_html__( '100', 'aces' ), '200' => esc_html__( '200', 'aces' ), '300' => esc_html__( '300', 'aces' ), '400' => esc_html__( '400', 'aces' ), '500' => esc_html__( '500', 'aces' ), '600' => esc_html__( '600', 'aces' ), '700' => esc_html__( '700', 'aces' ), '800' => esc_html__( '800', 'aces' ), '900' => esc_html__( '900', 'aces' ), ), 'active_callback' =>'aces_h5_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h5_typography_global_text_transform', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h5_typography_global_text_transform', array( 'label' => esc_html__( 'Text Transform', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h5_typography_global_text_transform', 'priority' => 10, 'choices' => array( '' => esc_html__( 'Default', 'aces' ), 'capitalize' => esc_html__( 'Capitalize', 'aces' ), 'lowercase' => esc_html__( 'Lowercase', 'aces' ), 'uppercase' => esc_html__( 'Uppercase', 'aces' ), 'none' => esc_html__( 'None', 'aces' ), ), 'active_callback' =>'aces_h5_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h5_typography_global_line_height', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h5_typography_global_tablet_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h5_typography_global_mobile_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h5_typography_global_line_height', array( 'label' => esc_html__( 'Line Height', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h5_typography_global_line_height', 'tablet' => 'aces_h5_typography_global_tablet_line_height', 'mobile' => 'aces_h5_typography_global_mobile_line_height', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 4, 'step' => 0.1, ), 'active_callback' =>'aces_h5_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h5_typography_global_letter_spacing', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h5_typography_global_tablet_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h5_typography_global_mobile_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h5_typography_global_letter_spacing', array( 'label' => esc_html__( 'Letter Spacing', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h5_typography_global_letter_spacing', 'tablet' => 'aces_h5_typography_global_tablet_letter_spacing', 'mobile' => 'aces_h5_typography_global_mobile_letter_spacing', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 0.1, ), 'active_callback' =>'aces_h5_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_global_typo_h6_enable', array( 'default' => false, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_global_typo_h6_enable', array( 'label' => esc_html__( 'Edit Heading (H6)', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_global_typo_h6_enable', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_typo_heading_h6', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_global_typo_heading_h6', array( 'label' => esc_html__( 'Heading (H6)', 'aces' ), 'section' => 'aces_typography_global_setting', 'priority' => 10, 'active_callback' =>'aces_h6_typo_enable', ) ) ); /* Font size */ $wp_customize->add_setting( 'aces_h6_desktop_typography_font_size', array( 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h6_tablet_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_setting( 'aces_h6_mobile_typography_font_size', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Aces_Customizer_Text_Control( $wp_customize, 'aces_global_h6_typography_font_size', array( 'label' => esc_html__( 'Font Size(px)', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h6_desktop_typography_font_size', 'tablet' => 'aces_h6_tablet_typography_font_size', 'mobile' => 'aces_h6_mobile_typography_font_size', ), 'priority' => 10, 'active_callback' =>'aces_h6_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h6_typography_global_font_weight', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h6_typography_global_font_weight', array( 'label' => esc_html__( 'Font Weight', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h6_typography_global_font_weight', 'priority' => 10, 'choices' => array( '100' => esc_html__( '100', 'aces' ), '200' => esc_html__( '200', 'aces' ), '300' => esc_html__( '300', 'aces' ), '400' => esc_html__( '400', 'aces' ), '500' => esc_html__( '500', 'aces' ), '600' => esc_html__( '600', 'aces' ), '700' => esc_html__( '700', 'aces' ), '800' => esc_html__( '800', 'aces' ), '900' => esc_html__( '900', 'aces' ), ), 'active_callback' =>'aces_h6_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h6_typography_global_text_transform', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_h6_typography_global_text_transform', array( 'label' => esc_html__( 'Text Transform', 'aces' ), 'type' => 'select', 'section' => 'aces_typography_global_setting', 'settings' => 'aces_h6_typography_global_text_transform', 'priority' => 10, 'choices' => array( '' => esc_html__( 'Default', 'aces' ), 'capitalize' => esc_html__( 'Capitalize', 'aces' ), 'lowercase' => esc_html__( 'Lowercase', 'aces' ), 'uppercase' => esc_html__( 'Uppercase', 'aces' ), 'none' => esc_html__( 'None', 'aces' ), ), 'active_callback' =>'aces_h6_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h6_typography_global_line_height', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h6_typography_global_tablet_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h6_typography_global_mobile_line_height', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h6_typography_global_line_height', array( 'label' => esc_html__( 'Line Height', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h6_typography_global_line_height', 'tablet' => 'aces_h6_typography_global_tablet_line_height', 'mobile' => 'aces_h6_typography_global_mobile_line_height', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 4, 'step' => 0.1, ), 'active_callback' =>'aces_h6_typo_enable', ) ) ); $wp_customize->add_setting( 'aces_h6_typography_global_letter_spacing', array( 'type' => 'theme_mod', 'sanitize_callback' => 'aces_sanitize_number', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'aces_h6_typography_global_tablet_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_h6_typography_global_mobile_letter_spacing', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Slider_Control( $wp_customize,'aces_h6_typography_global_letter_spacing', array( 'label' => esc_html__( 'Letter Spacing', 'aces' ), 'section' => 'aces_typography_global_setting', 'settings' => array( 'desktop' => 'aces_h6_typography_global_letter_spacing', 'tablet' => 'aces_h6_typography_global_tablet_letter_spacing', 'mobile' => 'aces_h6_typography_global_mobile_letter_spacing', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 0.1, ), 'active_callback' =>'aces_h6_typo_enable', ) ) ); ?>