add_section('bLab_blog_single_content', array( 'title' => __('Content Typography', 'beauty-lab'), 'panel' => 'beauty_lab_blog_single', 'priority' => 8, )); //---post content color---- $wp_customize->add_setting('bLab_single_post_content_color', array( 'default' => '#515151', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control('bLab_single_post_content_color_control', array( 'label' => __('Color', 'beauty-lab'), 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_single_post_content_color', 'type' => 'color', ) ); //---post content font size ---- $wp_customize->add_setting('bLab_single_post_content_font_size', array( 'default' => 15, 'transport' => 'refresh', 'sanitize_callback' => 'themecon_intval', )); $wp_customize->add_control('bLab_single_post_content_font_size_control', array( 'label' => __('Font Size (px)', 'beauty-lab'), 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_single_post_content_font_size', 'type' => 'number', ) ); //---post content line height---- $wp_customize->add_setting('bLab_single_post_content_line_height', array( 'default' => '1.6', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_sanitize_float', )); $wp_customize->add_control('bLab_single_post_content_line_height_control', array( 'label' => __('Line Height (em)', 'beauty-lab'), 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_single_post_content_line_height', 'type' => 'number', ) ); //---post content font weight---- $wp_customize->add_setting('bLab_single_post_content_font_weight', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_sanitize_select', )); $wp_customize->add_control('bLab_single_post_content_font_weight_control', array( 'label' => __('Font Weight', 'beauty-lab'), 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_single_post_content_font_weight', 'type' => 'select', 'choices' => themecon_customizer_font_weight(),//it from customizer-select-options.php ) ); //---post content text transform---- $wp_customize->add_setting('bLab_single_post_content_text_transform', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_sanitize_select', )); $wp_customize->add_control('bLab_single_post_content_text_transform_control', array( 'label' => __('Text Transform', 'beauty-lab'), 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_single_post_content_text_transform', 'type' => 'select', 'choices' => themecon_customizer_text_transform(),//it from customizer-select-options.php ) ); //---post content font family---- $wp_customize->add_setting('bLab_single_post_content_font_family', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_sanitize_select', )); $wp_customize->add_control('bLab_single_post_content_font_family_control', array( 'label' => __('Font Family', 'beauty-lab'), 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_single_post_content_font_family', 'type' => 'select', 'choices' => themecon_customizer_google_fonts(),//it's from customizer-select-options.php ) ); //---post content Paragraph Spacing ---- $wp_customize->add_setting('bLab_single_post_content_para_specing', array( 'default' => 10, 'transport' => 'refresh', 'sanitize_callback' => 'themecon_intval', )); $wp_customize->add_control('bLab_single_post_content_para_specing_control', array( 'label' => __('Paragraph Spacing (px)', 'beauty-lab'), 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_single_post_content_para_specing', 'type' => 'number', ) ); //---blog single font family---- $wp_customize->add_setting('bLab_blog_single_heading_font_family', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_sanitize_select', )); $wp_customize->add_control('bLab_blog_single_heading_font_family_control', array( 'label' => __('Blog Content Heading Font Family', 'beauty-lab'), 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_blog_single_heading_font_family', 'type' => 'select', 'choices' => themecon_customizer_google_fonts(),//it's from customizer-select-options.php ) ); //----post content responsive separator---- $wp_customize->add_setting( 'bLab_single_post_separator', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => __('Responsive Style', 'beauty-lab'), ) ); $wp_customize->add_control( new Beauty_Lab_Separator_Control( $wp_customize, 'bLab_single_post_separator_control', array( 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_single_post_separator', ) ) ); //---post content mobile font size ---- $wp_customize->add_setting('bLab_single_post_content_mbl_font_size', array( 'default' => 15, 'transport' => 'refresh', 'sanitize_callback' => 'themecon_intval', )); $wp_customize->add_control('bLab_single_post_content_mbl_font_size_control', array( 'label' => __('Font Size (px)', 'beauty-lab'), 'section' => 'bLab_blog_single_content', 'settings' => 'bLab_single_post_content_mbl_font_size', 'type' => 'number', ) ); } add_action( 'customize_register', 'beauty_lab_customize_blog_single_content' ); ?>