add_panel( 'wedev_typography_panel', array( 'title' => esc_html__( 'Typography', 'asterisk-lite' ), 'priority' => 50, 'capability' => 'edit_theme_options', ) ); // General Font Section. $wp_customize->add_section( 'wedev_general_typography', array( 'title' => esc_html__( 'General Typography', 'asterisk-lite' ), 'priority' => 50, 'capability' => 'edit_theme_options', 'panel' => 'wedev_typography_panel', ) ); $wp_customize->add_setting( 'wedev_general_font', array( 'default' => $asterisk_lite_default['wedev_general_font'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'wedev_general_font', array( 'label' => esc_html__( 'General Font', 'asterisk-lite' ), 'section' => 'wedev_general_typography', 'type' => 'select', 'choices' => $google_fonts, ) ); $wp_customize->add_setting( 'wedev_general_font_weight', array( 'default' => $asterisk_lite_default['wedev_general_font_weight'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'wedev_general_font_weight', array( 'label' => esc_html__( 'General Font Weight', 'asterisk-lite' ), 'section' => 'wedev_general_typography', 'type' => 'select', 'choices' => $wedev_general_font_variants, ) ); $wp_customize->add_setting( 'asterisk_lite_general_font_size', array( 'default' => $asterisk_lite_default['asterisk_lite_general_font_size'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new Asterisk_Lite_Range_Slider( $wp_customize, 'asterisk_lite_general_font_size', array( 'label' => esc_html__( 'General Font Size', 'asterisk-lite' ), 'settings' => 'asterisk_lite_general_font_size', 'section' => 'wedev_general_typography', 'min' => '1', 'max' => '100', ) ) ); // General Font Section. $wp_customize->add_section( 'wedev_heading_typography', array( 'title' => esc_html__( 'Heading Typography', 'asterisk-lite' ), 'priority' => 50, 'capability' => 'edit_theme_options', 'panel' => 'wedev_typography_panel', ) ); $wp_customize->add_setting( 'wedev_heading_font', array( 'default' => $asterisk_lite_default['wedev_heading_font'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'wedev_heading_font', array( 'label' => esc_html__( 'Heading Font', 'asterisk-lite' ), 'section' => 'wedev_heading_typography', 'type' => 'select', 'choices' => $google_fonts, ) ); $wp_customize->add_setting( 'wedev_heading_font_case', array( 'default' => $asterisk_lite_default['wedev_heading_font_case'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'wedev_heading_font_case', array( 'label' => esc_html__( 'Headings Case', 'asterisk-lite' ), 'section' => 'wedev_heading_typography', 'type' => 'select', 'choices' => array( 'none' => esc_html__( 'Normal', 'asterisk-lite' ), 'uppercase' => esc_html__( 'Uppercase', 'asterisk-lite' ), 'lowercase' => esc_html__( 'Lowercase', 'asterisk-lite' ), ), ) ); $wp_customize->add_setting( 'asterisk_lite_h1_font_size', array( 'default' => $asterisk_lite_default['asterisk_lite_h1_font_size'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new Asterisk_Lite_Range_Slider( $wp_customize, 'asterisk_lite_h1_font_size', array( 'label' => esc_html__( 'H1 Heading Font Size', 'asterisk-lite' ), 'settings' => 'asterisk_lite_h1_font_size', 'section' => 'wedev_heading_typography', 'min' => '1', 'max' => '100', ) ) ); $wp_customize->add_setting( 'asterisk_lite_h1_font_weight', array( 'default' => $asterisk_lite_default['asterisk_lite_h1_font_weight'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'asterisk_lite_h1_font_weight', array( 'label' => esc_html__( 'H1 Heading Font Weight', 'asterisk-lite' ), 'section' => 'wedev_heading_typography', 'type' => 'select', 'choices' => $wedev_heading_font_variants ) ); $wp_customize->add_setting( 'asterisk_lite_h2_font_size', array( 'default' => $asterisk_lite_default['asterisk_lite_h2_font_size'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new Asterisk_Lite_Range_Slider( $wp_customize, 'asterisk_lite_h2_font_size', array( 'label' => esc_html__( 'H2 Heading Font Size', 'asterisk-lite' ), 'settings' => 'asterisk_lite_h2_font_size', 'section' => 'wedev_heading_typography', 'min' => '1', 'max' => '100', ) ) ); $wp_customize->add_setting( 'asterisk_lite_h2_font_weight', array( 'default' => $asterisk_lite_default['asterisk_lite_h2_font_weight'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'asterisk_lite_h2_font_weight', array( 'label' => esc_html__( 'H2 Heading Font Weight', 'asterisk-lite' ), 'section' => 'wedev_heading_typography', 'type' => 'select', 'choices' => $wedev_heading_font_variants ) ); $wp_customize->add_setting( 'asterisk_lite_h3_font_size', array( 'default' => $asterisk_lite_default['asterisk_lite_h3_font_size'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new Asterisk_Lite_Range_Slider( $wp_customize, 'asterisk_lite_h3_font_size', array( 'label' => esc_html__( 'H3 Heading Font Size', 'asterisk-lite' ), 'settings' => 'asterisk_lite_h3_font_size', 'section' => 'wedev_heading_typography', 'min' => '1', 'max' => '100', ) ) ); $wp_customize->add_setting( 'asterisk_lite_h3_font_weight', array( 'default' => $asterisk_lite_default['asterisk_lite_h3_font_weight'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'asterisk_lite_h3_font_weight', array( 'label' => esc_html__( 'H3 Heading Font Weight', 'asterisk-lite' ), 'section' => 'wedev_heading_typography', 'type' => 'select', 'choices' => $wedev_heading_font_variants ) ); $wp_customize->add_setting( 'asterisk_lite_h4_font_size', array( 'default' => $asterisk_lite_default['asterisk_lite_h4_font_size'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new Asterisk_Lite_Range_Slider( $wp_customize, 'asterisk_lite_h4_font_size', array( 'label' => esc_html__( 'H4 Heading Font Size', 'asterisk-lite' ), 'settings' => 'asterisk_lite_h4_font_size', 'section' => 'wedev_heading_typography', 'min' => '1', 'max' => '100', ) ) ); $wp_customize->add_setting( 'asterisk_lite_h4_font_weight', array( 'default' => $asterisk_lite_default['asterisk_lite_h4_font_weight'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'asterisk_lite_h4_font_weight', array( 'label' => esc_html__( 'H4 Heading Font Weight', 'asterisk-lite' ), 'section' => 'wedev_heading_typography', 'type' => 'select', 'choices' => $wedev_heading_font_variants ) ); $wp_customize->add_setting( 'asterisk_lite_h5_font_size', array( 'default' => $asterisk_lite_default['asterisk_lite_h5_font_size'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new Asterisk_Lite_Range_Slider( $wp_customize, 'asterisk_lite_h5_font_size', array( 'label' => esc_html__( 'H5 Heading Font Size', 'asterisk-lite' ), 'settings' => 'asterisk_lite_h5_font_size', 'section' => 'wedev_heading_typography', 'min' => '1', 'max' => '100', ) ) ); $wp_customize->add_setting( 'asterisk_lite_h5_font_weight', array( 'default' => $asterisk_lite_default['asterisk_lite_h5_font_weight'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'asterisk_lite_h5_font_weight', array( 'label' => esc_html__( 'H5 Heading Font Weight', 'asterisk-lite' ), 'section' => 'wedev_heading_typography', 'type' => 'select', 'choices' => $wedev_heading_font_variants ) ); $wp_customize->add_setting( 'asterisk_lite_h6_font_size', array( 'default' => $asterisk_lite_default['asterisk_lite_h6_font_size'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new Asterisk_Lite_Range_Slider( $wp_customize, 'asterisk_lite_h6_font_size', array( 'label' => esc_html__( 'H6 Heading Font Size', 'asterisk-lite' ), 'settings' => 'asterisk_lite_h6_font_size', 'section' => 'wedev_heading_typography', 'min' => '1', 'max' => '100', ) ) ); $wp_customize->add_setting( 'asterisk_lite_h6_font_weight', array( 'default' => $asterisk_lite_default['asterisk_lite_h6_font_weight'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_select', ) ); $wp_customize->add_control( 'asterisk_lite_h6_font_weight', array( 'label' => esc_html__( 'H6 Heading Font Weight', 'asterisk-lite' ), 'section' => 'wedev_heading_typography', 'type' => 'select', 'choices' => $wedev_heading_font_variants ) );