function et_divi_customizer_module_settings($wp_customize) { /* Section: Image */ $wp_customize->add_section('et_pagebuilder_image', array('priority' => 10, 'capability' => 'edit_theme_options', 'title' => esc_html__('Image', 'Divi'), 'description' => esc_html__('Image Module Settings', 'Divi'))); $wp_customize->add_setting('et_divi[et_pb_image-animation]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_image_animation')); $wp_customize->add_control('et_divi[et_pb_image-animation]', array('label' => esc_html__('Animation', 'Divi'), 'description' => esc_html__('This controls default direction of the lazy-loading animation.', 'Divi'), 'section' => 'et_pagebuilder_image', 'type' => 'select', 'choices' => et_divi_image_animation_choices())); /* Section: Gallery */ $wp_customize->add_section('et_pagebuilder_gallery', array('priority' => 20, 'capability' => 'edit_theme_options', 'title' => esc_html__('Gallery', 'Divi'))); // Zoom Icon Color $wp_customize->add_setting('et_divi[et_pb_gallery-zoom_icon_color]', array('default' => ET_Global_Settings::get_value('et_pb_gallery-zoom_icon_color', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[et_pb_gallery-zoom_icon_color]', array('label' => esc_html__('Zoom Icon Color', 'Divi'), 'section' => 'et_pagebuilder_gallery', 'settings' => 'et_divi[et_pb_gallery-zoom_icon_color]'))); // Hover Overlay Color $wp_customize->add_setting('et_divi[et_pb_gallery-hover_overlay_color]', array('default' => ET_Global_Settings::get_value('et_pb_gallery-hover_overlay_color', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color')); $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[et_pb_gallery-hover_overlay_color]', array('label' => esc_html__('Hover Overlay Color', 'Divi'), 'section' => 'et_pagebuilder_gallery', 'settings' => 'et_divi[et_pb_gallery-hover_overlay_color]'))); // Title Font Size: Range 10px - 72px $wp_customize->add_setting('et_divi[et_pb_gallery-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_gallery-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_gallery-title_font_size]', array('label' => esc_html__('Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_gallery', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Title Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_gallery-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_gallery-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_gallery-title_font_style]', array('label' => esc_html__('Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_gallery', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // caption font size Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_gallery-caption_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_gallery-caption_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_gallery-caption_font_size]', array('label' => esc_html__('Caption Font Size', 'Divi'), 'section' => 'et_pagebuilder_gallery', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // caption font style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_gallery-caption_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_gallery-caption_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_gallery-caption_font_style]', array('label' => esc_html__('Caption Font Style', 'Divi'), 'section' => 'et_pagebuilder_gallery', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Blurb */ $wp_customize->add_section('et_pagebuilder_blurb', array('priority' => 30, 'capability' => 'edit_theme_options', 'title' => esc_html__('Blurb', 'Divi'))); // Header Font Size: Range 10px - 72px $wp_customize->add_setting('et_divi[et_pb_blurb-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_blurb-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_blurb-header_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_blurb', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); /* Section: Tabs */ $wp_customize->add_section('et_pagebuilder_tabs', array('priority' => 40, 'capability' => 'edit_theme_options', 'title' => esc_html__('Tabs', 'Divi'))); // Tab Title Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_tabs-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_tabs-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_tabs-title_font_size]', array('label' => esc_html__('Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_tabs', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Tab Title Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_tabs-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_tabs-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_tabs-title_font_style]', array('label' => esc_html__('Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_tabs', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Padding: Range 0 - 50px /* If padding is 20px then the content padding is 20px and the tab padding is: { padding: 10px(50%) 20px; } */ $wp_customize->add_setting('et_divi[et_pb_tabs-padding]', array('default' => ET_Global_Settings::get_value('et_pb_tabs-padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_tabs-padding]', array('label' => esc_html__('Padding', 'Divi'), 'section' => 'et_pagebuilder_tabs', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1)))); /* Section: Slider */ $wp_customize->add_section('et_pagebuilder_slider', array('priority' => 50, 'capability' => 'edit_theme_options', 'title' => esc_html__('Slider', 'Divi'))); // Slider Padding: Top/Bottom Only $wp_customize->add_setting('et_divi[et_pb_slider-padding]', array('default' => ET_Global_Settings::get_value('et_pb_slider-padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_slider-padding]', array('label' => esc_html__('Top & Bottom Padding', 'Divi'), 'section' => 'et_pagebuilder_slider', 'type' => 'range', 'input_attrs' => array('min' => 5, 'max' => 50, 'step' => 1)))); // Header Font size: Range 10px - 72px $wp_customize->add_setting('et_divi[et_pb_slider-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_slider-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_slider-header_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_slider', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Header Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_slider-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_slider-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_slider-header_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_slider', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Content Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_slider-body_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_slider-body_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_slider-body_font_size]', array('label' => esc_html__('Content Font Size', 'Divi'), 'section' => 'et_pagebuilder_slider', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Content Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_slider-body_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_slider-body_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_slider-body_font_style]', array('label' => esc_html__('Content Font Style', 'Divi'), 'section' => 'et_pagebuilder_slider', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Testimonial */ $wp_customize->add_section('et_pagebuilder_testimonial', array('priority' => 60, 'capability' => 'edit_theme_options', 'title' => esc_html__('Testimonial', 'Divi'))); // Author Name Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_testimonial-author_name_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_testimonial-author_name_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_testimonial-author_name_font_style]', array('label' => esc_html__('Name Font Style', 'Divi'), 'section' => 'et_pagebuilder_testimonial', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Author Details Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_testimonial-author_details_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_testimonial-author_details_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_testimonial-author_details_font_style]', array('label' => esc_html__('Details Font Style', 'Divi'), 'section' => 'et_pagebuilder_testimonial', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Portrait Border Radius $wp_customize->add_setting('et_divi[et_pb_testimonial-portrait_border_radius]', array('default' => ET_Global_Settings::get_value('et_pb_testimonial-portrait_border_radius', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_testimonial-portrait_border_radius]', array('label' => esc_html__('Portrait Border Radius', 'Divi'), 'section' => 'et_pagebuilder_testimonial', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1)))); // Portrait Width $wp_customize->add_setting('et_divi[et_pb_testimonial-portrait_width]', array('default' => ET_Global_Settings::get_value('et_pb_testimonial-portrait_width', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_testimonial-portrait_width]', array('label' => esc_html__('Image Width', 'Divi'), 'section' => 'et_pagebuilder_testimonial', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 200, 'step' => 1)))); // Portrait Height $wp_customize->add_setting('et_divi[et_pb_testimonial-portrait_height]', array('default' => ET_Global_Settings::get_value('et_pb_testimonial-portrait_height', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_testimonial-portrait_height]', array('label' => esc_html__('Image Height', 'Divi'), 'section' => 'et_pagebuilder_testimonial', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 200, 'step' => 1)))); /* Section: Pricing Table */ $wp_customize->add_section('et_pagebuilder_pricing_table', array('priority' => 70, 'capability' => 'edit_theme_options', 'title' => esc_html__('Pricing Table', 'Divi'))); // Header Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_pricing_tables-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_pricing_tables-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_pricing_tables-header_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_pricing_table', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Header Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_pricing_tables-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_pricing_tables-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_pricing_tables-header_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_pricing_table', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Subhead Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_pricing_tables-subheader_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_pricing_tables-subheader_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_pricing_tables-subheader_font_size]', array('label' => esc_html__('Subheader Font Size', 'Divi'), 'section' => 'et_pagebuilder_pricing_table', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Subhead Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_pricing_tables-subheader_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_pricing_tables-subheader_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_pricing_tables-subheader_font_style]', array('label' => esc_html__('Subheader Font Style', 'Divi'), 'section' => 'et_pagebuilder_pricing_table', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Price font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_pricing_tables-price_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_pricing_tables-price_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_pricing_tables-price_font_size]', array('label' => esc_html__('Price Font Size', 'Divi'), 'section' => 'et_pagebuilder_pricing_table', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 100, 'step' => 1)))); // Price font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_pricing_tables-price_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_pricing_tables-price_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_pricing_tables-price_font_style]', array('label' => esc_html__('Pricing Font Style', 'Divi'), 'section' => 'et_pagebuilder_pricing_table', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Call To Action */ $wp_customize->add_section('et_pagebuilder_call_to_action', array('priority' => 80, 'capability' => 'edit_theme_options', 'title' => esc_html__('Call To Action', 'Divi'))); // Header font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_cta-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_cta-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_cta-header_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_call_to_action', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Header Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_cta-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_cta-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_cta-header_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_call_to_action', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Padding: Range 0px - 200px $wp_customize->add_setting('et_divi[et_pb_cta-custom_padding]', array('default' => ET_Global_Settings::get_value('et_pb_cta-custom_padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_cta-custom_padding]', array('label' => esc_html__('Padding', 'Divi'), 'section' => 'et_pagebuilder_call_to_action', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 200, 'step' => 1)))); /* Section: Audio */ $wp_customize->add_section('et_pagebuilder_audio', array('priority' => 90, 'capability' => 'edit_theme_options', 'title' => esc_html__('Audio', 'Divi'))); // Header Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_audio-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_audio-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_audio-title_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_audio', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Header Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_audio-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_audio-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_audio-title_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_audio', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Subhead Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_audio-caption_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_audio-caption_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_audio-caption_font_size]', array('label' => esc_html__('Subheader Font Size', 'Divi'), 'section' => 'et_pagebuilder_audio', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Subhead Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_audio-caption_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_audio-caption_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_audio-caption_font_style]', array('label' => esc_html__('Subheader Font Style', 'Divi'), 'section' => 'et_pagebuilder_audio', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Email Optin */ $wp_customize->add_section('et_pagebuilder_subscribe', array('priority' => 100, 'capability' => 'edit_theme_options', 'title' => esc_html__('Email Optin', 'Divi'))); // Header font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_signup-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_signup-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_signup-header_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_subscribe', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Header Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_signup-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_signup-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_signup-header_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_subscribe', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Padding: Range 0px - 200px $wp_customize->add_setting('et_divi[et_pb_signup-padding]', array('default' => ET_Global_Settings::get_value('et_pb_signup-padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_signup-padding]', array('label' => esc_html__('Padding', 'Divi'), 'section' => 'et_pagebuilder_subscribe', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 200, 'step' => 1)))); /* Section: Login */ $wp_customize->add_section('et_pagebuilder_login', array('priority' => 110, 'capability' => 'edit_theme_options', 'title' => esc_html__('Login', 'Divi'))); // Header font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_login-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_login-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_login-header_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_login', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Header Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_login-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_login-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_login-header_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_login', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Padding: Range 0px - 200px $wp_customize->add_setting('et_divi[et_pb_login-custom_padding]', array('default' => ET_Global_Settings::get_value('et_pb_login-custom_padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_login-custom_padding]', array('label' => esc_html__('Padding', 'Divi'), 'section' => 'et_pagebuilder_login', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 200, 'step' => 1)))); /* Section: Portfolio */ $wp_customize->add_section('et_pagebuilder_portfolio', array('priority' => 120, 'capability' => 'edit_theme_options', 'title' => esc_html__('Portfolio', 'Divi'))); // Zoom Icon Color $wp_customize->add_setting('et_divi[et_pb_portfolio-zoom_icon_color]', array('default' => ET_Global_Settings::get_value('et_pb_portfolio-zoom_icon_color', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[et_pb_portfolio-zoom_icon_color]', array('label' => esc_html__('Zoom Icon Color', 'Divi'), 'section' => 'et_pagebuilder_portfolio', 'settings' => 'et_divi[et_pb_portfolio-zoom_icon_color]'))); // Hover Overlay Color $wp_customize->add_setting('et_divi[et_pb_portfolio-hover_overlay_color]', array('default' => ET_Global_Settings::get_value('et_pb_portfolio-hover_overlay_color', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color')); $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[et_pb_portfolio-hover_overlay_color]', array('label' => esc_html__('Hover Overlay Color', 'Divi'), 'section' => 'et_pagebuilder_portfolio', 'settings' => 'et_divi[et_pb_portfolio-hover_overlay_color]'))); // Title Font Size: Range 10px - 72px $wp_customize->add_setting('et_divi[et_pb_portfolio-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_portfolio-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_portfolio-title_font_size]', array('label' => esc_html__('Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_portfolio', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Title Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_portfolio-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_portfolio-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_portfolio-title_font_style]', array('label' => esc_html__('Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_portfolio', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Category font size Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_portfolio-caption_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_portfolio-caption_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_portfolio-caption_font_size]', array('label' => esc_html__('Caption Font Size', 'Divi'), 'section' => 'et_pagebuilder_portfolio', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Category Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_portfolio-caption_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_portfolio-caption_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_portfolio-caption_font_style]', array('label' => esc_html__('Caption Font Style', 'Divi'), 'section' => 'et_pagebuilder_portfolio', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Filterable Portfolio */ $wp_customize->add_section('et_pagebuilder_filterable_portfolio', array('priority' => 130, 'capability' => 'edit_theme_options', 'title' => esc_html__('Filterable Portfolio', 'Divi'))); // Zoom Icon Color $wp_customize->add_setting('et_divi[et_pb_filterable_portfolio-zoom_icon_color]', array('default' => ET_Global_Settings::get_value('et_pb_filterable_portfolio-zoom_icon_color', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[et_pb_filterable_portfolio-zoom_icon_color]', array('label' => esc_html__('Zoom Icon Color', 'Divi'), 'section' => 'et_pagebuilder_filterable_portfolio', 'settings' => 'et_divi[et_pb_filterable_portfolio-zoom_icon_color]'))); // Hover Overlay Color $wp_customize->add_setting('et_divi[et_pb_filterable_portfolio-hover_overlay_color]', array('default' => ET_Global_Settings::get_value('et_pb_filterable_portfolio-hover_overlay_color', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color')); $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[et_pb_filterable_portfolio-hover_overlay_color]', array('label' => esc_html__('Hover Overlay Color', 'Divi'), 'section' => 'et_pagebuilder_filterable_portfolio', 'settings' => 'et_divi[et_pb_filterable_portfolio-hover_overlay_color]'))); // Title Font Size: Range 10px - 72px $wp_customize->add_setting('et_divi[et_pb_filterable_portfolio-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_filterable_portfolio-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_filterable_portfolio-title_font_size]', array('label' => esc_html__('Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_filterable_portfolio', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Title Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_filterable_portfolio-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_filterable_portfolio-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_filterable_portfolio-title_font_style]', array('label' => esc_html__('Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_filterable_portfolio', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Category font size Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_filterable_portfolio-caption_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_filterable_portfolio-caption_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_filterable_portfolio-caption_font_size]', array('label' => esc_html__('Caption Font Size', 'Divi'), 'section' => 'et_pagebuilder_filterable_portfolio', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Category Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_filterable_portfolio-caption_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_filterable_portfolio-caption_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_filterable_portfolio-caption_font_style]', array('label' => esc_html__('Caption Font Style', 'Divi'), 'section' => 'et_pagebuilder_filterable_portfolio', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Filters Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_filterable_portfolio-filter_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_filterable_portfolio-filter_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_filterable_portfolio-filter_font_size]', array('label' => esc_html__('Filters Font Size', 'Divi'), 'section' => 'et_pagebuilder_filterable_portfolio', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Filters Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_filterable_portfolio-filter_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_filterable_portfolio-filter_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_filterable_portfolio-filter_font_style]', array('label' => esc_html__('Filters Font Style', 'Divi'), 'section' => 'et_pagebuilder_filterable_portfolio', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Bar Counter */ $wp_customize->add_section('et_pagebuilder_bar_counter', array('priority' => 140, 'capability' => 'edit_theme_options', 'title' => esc_html__('Bar Counter', 'Divi'))); // Label Font Size $wp_customize->add_setting('et_divi[et_pb_counters-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_counters-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_counters-title_font_size]', array('label' => esc_html__('Label Font Size', 'Divi'), 'section' => 'et_pagebuilder_bar_counter', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Labels Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_counters-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_counters-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_counters-title_font_style]', array('label' => esc_html__('Label Font Style', 'Divi'), 'section' => 'et_pagebuilder_bar_counter', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Percent Font Size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_counters-percent_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_counters-percent_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_counters-percent_font_size]', array('label' => esc_html__('Percent Font Size', 'Divi'), 'section' => 'et_pagebuilder_bar_counter', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Percent Font Style: : B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_counters-percent_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_counters-percent_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_counters-percent_font_style]', array('label' => esc_html__('Percent Font Style', 'Divi'), 'section' => 'et_pagebuilder_bar_counter', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Bar Padding: Range 0px - 30px (top and bottom padding only) $wp_customize->add_setting('et_divi[et_pb_counters-padding]', array('default' => ET_Global_Settings::get_value('et_pb_counters-padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_counters-padding]', array('label' => esc_html__('Bar Padding', 'Divi'), 'section' => 'et_pagebuilder_bar_counter', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1)))); // Bar Border Radius $wp_customize->add_setting('et_divi[et_pb_counters-border_radius]', array('default' => ET_Global_Settings::get_value('et_pb_counters-border_radius', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_counters-border_radius]', array('label' => esc_html__('Bar Border Radius', 'Divi'), 'section' => 'et_pagebuilder_bar_counter', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 80, 'step' => 1)))); /* Section: Circle Counter */ $wp_customize->add_section('et_pagebuilder_circle_counter', array('priority' => 150, 'capability' => 'edit_theme_options', 'title' => esc_html__('Circle Counter', 'Divi'))); // Number Font Size $wp_customize->add_setting('et_divi[et_pb_circle_counter-number_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_circle_counter-number_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_circle_counter-number_font_size]', array('label' => esc_html__('Number Font Size', 'Divi'), 'section' => 'et_pagebuilder_circle_counter', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Number Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_circle_counter-number_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_circle_counter-number_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_circle_counter-number_font_style]', array('label' => esc_html__('Number Font Style', 'Divi'), 'section' => 'et_pagebuilder_circle_counter', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Title Font Size: Range 10px - 72px $wp_customize->add_setting('et_divi[et_pb_circle_counter-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_circle_counter-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_circle_counter-title_font_size]', array('label' => esc_html__('Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_circle_counter', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Title Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_circle_counter-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_circle_counter-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_circle_counter-title_font_style]', array('label' => esc_html__('Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_circle_counter', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Number Counter */ $wp_customize->add_section('et_pagebuilder_number_counter', array('priority' => 160, 'capability' => 'edit_theme_options', 'title' => esc_html__('Number Counter', 'Divi'))); // Number Font Size $wp_customize->add_setting('et_divi[et_pb_number_counter-number_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_number_counter-number_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_number_counter-number_font_size]', array('label' => esc_html__('Number Font Size', 'Divi'), 'section' => 'et_pagebuilder_number_counter', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Number Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_number_counter-number_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_number_counter-number_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_number_counter-number_font_style]', array('label' => esc_html__('Number Font Style', 'Divi'), 'section' => 'et_pagebuilder_number_counter', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Title Font Size: Range 10px - 72px $wp_customize->add_setting('et_divi[et_pb_number_counter-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_number_counter-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_number_counter-title_font_size]', array('label' => esc_html__('Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_number_counter', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Title Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_number_counter-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_number_counter-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_number_counter-title_font_style]', array('label' => esc_html__('Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_number_counter', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Accordion */ $wp_customize->add_section('et_pagebuilder_accordion', array('priority' => 170, 'capability' => 'edit_theme_options', 'title' => esc_html__('Accordion', 'Divi'))); // Title Font Size $wp_customize->add_setting('et_divi[et_pb_accordion-toggle_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_accordion-toggle_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_accordion-toggle_font_size]', array('label' => esc_html__('Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_accordion', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Accordion Title Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_accordion-toggle_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_accordion-toggle_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_accordion-toggle_font_style]', array('label' => esc_html__('Opened Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_accordion', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Inactive Accordion Title Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_accordion-inactive_toggle_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_accordion-inactive_title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_accordion-inactive_toggle_font_style]', array('label' => esc_html__('Closed Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_accordion', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Toggle Accordion Icon Font Size $wp_customize->add_setting('et_divi[et_pb_accordion-toggle_icon_size]', array('default' => ET_Global_Settings::get_value('et_pb_accordion-toggle_icon_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_accordion-toggle_icon_size]', array('label' => esc_html__('Toggle Icon Size', 'Divi'), 'section' => 'et_pagebuilder_accordion', 'type' => 'range', 'input_attrs' => array('min' => 16, 'max' => 32, 'step' => 1)))); // Padding: Range 0 - 50px /* Padding effects each individual Accordion */ $wp_customize->add_setting('et_divi[et_pb_accordion-custom_padding]', array('default' => ET_Global_Settings::get_value('et_pb_accordion-custom_padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_accordion-custom_padding]', array('label' => esc_html__('Toggle Padding', 'Divi'), 'section' => 'et_pagebuilder_accordion', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1)))); /* Section: Toggle */ $wp_customize->add_section('et_pagebuilder_toggle', array('priority' => 180, 'capability' => 'edit_theme_options', 'title' => esc_html__('Toggle', 'Divi'))); // Title Font Size $wp_customize->add_setting('et_divi[et_pb_toggle-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_toggle-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_toggle-title_font_size]', array('label' => esc_html__('Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_toggle', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Toggle Title Font Style $wp_customize->add_setting('et_divi[et_pb_toggle-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_toggle-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_toggle-title_font_style]', array('label' => esc_html__('Opened Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_toggle', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Inactive Toggle Title Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_toggle-inactive_title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_toggle-inactive_title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_toggle-inactive_title_font_style]', array('label' => esc_html__('Closed Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_toggle', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Open& Close Icon Font Size $wp_customize->add_setting('et_divi[et_pb_toggle-toggle_icon_size]', array('default' => ET_Global_Settings::get_value('et_pb_toggle-toggle_icon_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_toggle-toggle_icon_size]', array('label' => esc_html__('Toggle Icon Size', 'Divi'), 'section' => 'et_pagebuilder_toggle', 'type' => 'range', 'input_attrs' => array('min' => 16, 'max' => 32, 'step' => 1)))); // Padding: Range 0 - 50px $wp_customize->add_setting('et_divi[et_pb_toggle-custom_padding]', array('default' => ET_Global_Settings::get_value('et_pb_toggle-custom_padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_toggle-custom_padding]', array('label' => esc_html__('Toggle Padding', 'Divi'), 'section' => 'et_pagebuilder_toggle', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1)))); /* Section: Contact Form */ $wp_customize->add_section('et_pagebuilder_contact_form', array('priority' => 190, 'capability' => 'edit_theme_options', 'title' => esc_html__('Contact Form', 'Divi'))); // Header Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_contact_form-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_contact_form-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_contact_form-title_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_contact_form', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Header Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_contact_form-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_contact_form-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_contact_form-title_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_contact_form', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Input Field Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_contact_form-form_field_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_contact_form-form_field_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_contact_form-form_field_font_size]', array('label' => esc_html__('Input Font Size', 'Divi'), 'section' => 'et_pagebuilder_contact_form', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Input Field Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_contact_form-form_field_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_contact_form-form_field_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_contact_form-form_field_font_style]', array('label' => esc_html__('Input Font Style', 'Divi'), 'section' => 'et_pagebuilder_contact_form', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Input Field Padding: Range 0 - 50px $wp_customize->add_setting('et_divi[et_pb_contact_form-padding]', array('default' => ET_Global_Settings::get_value('et_pb_contact_form-padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_contact_form-padding]', array('label' => esc_html__('Input Field Padding', 'Divi'), 'section' => 'et_pagebuilder_contact_form', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1)))); // Captcha Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_contact_form-captcha_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_contact_form-captcha_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_contact_form-captcha_font_size]', array('label' => esc_html__('Captcha Font Size', 'Divi'), 'section' => 'et_pagebuilder_contact_form', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Captcha Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_contact_form-captcha_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_contact_form-captcha_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_contact_form-captcha_font_style]', array('label' => esc_html__('Captcha Font Style', 'Divi'), 'section' => 'et_pagebuilder_contact_form', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Sidebar */ $wp_customize->add_section('et_pagebuilder_sidebar', array('priority' => 200, 'capability' => 'edit_theme_options', 'title' => esc_html__('Sidebar', 'Divi'))); // Header Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_sidebar-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_sidebar-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_sidebar-header_font_size]', array('label' => esc_html__('Widget Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_sidebar', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Header font style $wp_customize->add_setting('et_divi[et_pb_sidebar-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_sidebar-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_sidebar-header_font_style]', array('label' => esc_html__('Widget Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_sidebar', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Show/hide Vertical Divider $wp_customize->add_setting('et_divi[et_pb_sidebar-remove_border]', array('default' => ET_Global_Settings::get_checkbox_value('et_pb_sidebar-remove_border', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean')); $wp_customize->add_control('et_divi[et_pb_sidebar-remove_border]', array('label' => esc_html__('Remove Vertical Divider', 'Divi'), 'section' => 'et_pagebuilder_sidebar', 'type' => 'checkbox')); /* Section: Divider */ $wp_customize->add_section('et_pagebuilder_divider', array('priority' => 200, 'capability' => 'edit_theme_options', 'title' => esc_html__('Divider', 'Divi'))); // Show/hide Divider $wp_customize->add_setting('et_divi[et_pb_divider-show_divider]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean')); $wp_customize->add_control('et_divi[et_pb_divider-show_divider]', array('label' => esc_html__('Show Divider', 'Divi'), 'section' => 'et_pagebuilder_divider', 'type' => 'checkbox')); // Divider Style $wp_customize->add_setting('et_divi[et_pb_divider-divider_style]', array('default' => ET_Global_Settings::get_value('et_pb_divider-divider_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_divider_style')); $wp_customize->add_control('et_divi[et_pb_divider-divider_style]', array('label' => esc_html__('Divider Style', 'Divi'), 'section' => 'et_pagebuilder_divider', 'settings' => 'et_divi[et_pb_divider-divider_style]', 'type' => 'select', 'choices' => et_divi_divider_style_choices())); // Divider Weight $wp_customize->add_setting('et_divi[et_pb_divider-divider_weight]', array('default' => ET_Global_Settings::get_value('et_pb_divider-divider_weight', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_divider-divider_weight]', array('label' => esc_html__('Divider Weight', 'Divi'), 'section' => 'et_pagebuilder_divider', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1)))); // Divider Height $wp_customize->add_setting('et_divi[et_pb_divider-height]', array('default' => ET_Global_Settings::get_value('et_pb_divider-height', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_divider-height]', array('label' => esc_html__('Divider Height', 'Divi'), 'section' => 'et_pagebuilder_divider', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1)))); // Divider Position $wp_customize->add_setting('et_divi[et_pb_divider-divider_position]', array('default' => ET_Global_Settings::get_value('et_pb_divider-divider_position', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_divider_position')); $wp_customize->add_control('et_divi[et_pb_divider-divider_position]', array('label' => esc_html__('Divider Position', 'Divi'), 'section' => 'et_pagebuilder_divider', 'settings' => 'et_divi[et_pb_divider-divider_position]', 'type' => 'select', 'choices' => et_divi_divider_position_choices())); /* Section: Person */ $wp_customize->add_section('et_pagebuilder_person', array('priority' => 210, 'capability' => 'edit_theme_options', 'title' => esc_html__('Person', 'Divi'))); // Header Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_team_member-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_team_member-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_team_member-header_font_size]', array('label' => esc_html__('Name Font Size', 'Divi'), 'section' => 'et_pagebuilder_person', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Header font style $wp_customize->add_setting('et_divi[et_pb_team_member-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_team_member-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_team_member-header_font_style]', array('label' => esc_html__('Name Font Style', 'Divi'), 'section' => 'et_pagebuilder_person', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Subhead Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_team_member-subheader_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_team_member-subheader_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_team_member-subheader_font_size]', array('label' => esc_html__('Subheader Font Size', 'Divi'), 'section' => 'et_pagebuilder_person', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Subhead Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_team_member-subheader_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_team_member-subheader_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_team_member-subheader_font_style]', array('label' => esc_html__('Subheader Font Style', 'Divi'), 'section' => 'et_pagebuilder_person', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Network Icons size: Range 16px - 32px $wp_customize->add_setting('et_divi[et_pb_team_member-social_network_icon_size]', array('default' => ET_Global_Settings::get_value('et_pb_team_member-social_network_icon_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_team_member-social_network_icon_size]', array('label' => esc_html__('Social Network Icon Size', 'Divi'), 'section' => 'et_pagebuilder_person', 'type' => 'range', 'input_attrs' => array('min' => 16, 'max' => 32, 'step' => 1)))); /* Section: Blog */ $wp_customize->add_section('et_pagebuilder_blog', array('priority' => 220, 'capability' => 'edit_theme_options', 'title' => esc_html__('Blog', 'Divi'))); // Post Title Font Size $wp_customize->add_setting('et_divi[et_pb_blog-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_blog-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_blog-header_font_size]', array('label' => esc_html__('Post Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_blog', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Post Title Font Style $wp_customize->add_setting('et_divi[et_pb_blog-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_blog-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_blog-header_font_style]', array('label' => esc_html__('Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_blog', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Meta Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_blog-meta_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_blog-meta_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_blog-meta_font_size]', array('label' => esc_html__('Meta Font Size', 'Divi'), 'section' => 'et_pagebuilder_blog', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Meta Field Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_blog-meta_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_blog-meta_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_blog-meta_font_style]', array('label' => esc_html__('Meta Font Style', 'Divi'), 'section' => 'et_pagebuilder_blog', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Blog Grid */ $wp_customize->add_section('et_pagebuilder_masonry_blog', array('priority' => 230, 'capability' => 'edit_theme_options', 'title' => esc_html__('Blog Grid', 'Divi'))); // Post Title Font Size $wp_customize->add_setting('et_divi[et_pb_blog_masonry-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_blog_masonry-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_blog_masonry-header_font_size]', array('label' => esc_html__('Post Title Font Size', 'Divi'), 'section' => 'et_pagebuilder_masonry_blog', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Post Title Font Style $wp_customize->add_setting('et_divi[et_pb_blog_masonry-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_blog_masonry-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_blog_masonry-header_font_style]', array('label' => esc_html__('Title Font Style', 'Divi'), 'section' => 'et_pagebuilder_masonry_blog', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Meta Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_blog_masonry-meta_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_blog_masonry-meta_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_blog_masonry-meta_font_size]', array('label' => esc_html__('Meta Font Size', 'Divi'), 'section' => 'et_pagebuilder_masonry_blog', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Meta Field Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_blog_masonry-meta_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_blog_masonry-meta_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_blog_masonry-meta_font_style]', array('label' => esc_html__('Meta Font Style', 'Divi'), 'section' => 'et_pagebuilder_masonry_blog', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Shop */ $wp_customize->add_section('et_pagebuilder_shop', array('priority' => 240, 'capability' => 'edit_theme_options', 'title' => esc_html__('Shop', 'Divi'))); // Product Name Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_shop-title_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_shop-title_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_shop-title_font_size]', array('label' => esc_html__('Product Name Font Size', 'Divi'), 'section' => 'et_pagebuilder_shop', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Product Name Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_shop-title_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_shop-title_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_shop-title_font_style]', array('label' => esc_html__('Product Name Font Style', 'Divi'), 'section' => 'et_pagebuilder_shop', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Sale Badge Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_shop-sale_badge_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_shop-sale_badge_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_shop-sale_badge_font_size]', array('label' => esc_html__('Sale Badge Font Size', 'Divi'), 'section' => 'et_pagebuilder_shop', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Sale Badge Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_shop-sale_badge_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_shop-sale_badge_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_shop-sale_badge_font_style]', array('label' => esc_html__('Sale Badge Font Style', 'Divi'), 'section' => 'et_pagebuilder_shop', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Price Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_shop-price_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_shop-price_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_shop-price_font_size]', array('label' => esc_html__('Price Font Size', 'Divi'), 'section' => 'et_pagebuilder_shop', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Price Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_shop-price_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_shop-price_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_shop-price_font_style]', array('label' => esc_html__('Price Font Style', 'Divi'), 'section' => 'et_pagebuilder_shop', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Sale Price Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_shop-sale_price_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_shop-sale_price_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_shop-sale_price_font_size]', array('label' => esc_html__('Sale Price Font Size', 'Divi'), 'section' => 'et_pagebuilder_shop', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Sale Price Font Style: B / I / TT / U/ $wp_customize->add_setting('et_divi[et_pb_shop-sale_price_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_shop-sale_price_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_shop-sale_price_font_style]', array('label' => esc_html__('Sale Price Font Style', 'Divi'), 'section' => 'et_pagebuilder_shop', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Countdown */ $wp_customize->add_section('et_pagebuilder_countdown', array('priority' => 250, 'capability' => 'edit_theme_options', 'title' => esc_html__('Countdown', 'Divi'))); // Header Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_countdown_timer-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_countdown_timer-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_countdown_timer-header_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_countdown', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Header Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_countdown_timer-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_countdown_timer-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_countdown_timer-header_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_countdown', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Social Follow */ $wp_customize->add_section('et_pagebuilder_social_follow', array('priority' => 250, 'capability' => 'edit_theme_options', 'title' => esc_html__('Social Follow', 'Divi'))); // Follow Button Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_social_media_follow-icon_size]', array('default' => ET_Global_Settings::get_value('et_pb_social_media_follow-icon_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_social_media_follow-icon_size]', array('label' => esc_html__('Follow Font & Icon Size', 'Divi'), 'section' => 'et_pagebuilder_social_follow', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Follow Button Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_social_media_follow-button_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_social_media_follow-button_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_social_media_follow-button_font_style]', array('label' => esc_html__('Button Font Style', 'Divi'), 'section' => 'et_pagebuilder_social_follow', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); /* Section: Fullwidth Slider */ $wp_customize->add_section('et_pagebuilder_fullwidth_slider', array('priority' => 270, 'capability' => 'edit_theme_options', 'title' => esc_html__('Fullwidth Slider', 'Divi'))); // Slider Padding: Top/Bottom Only $wp_customize->add_setting('et_divi[et_pb_fullwidth_slider-padding]', array('default' => ET_Global_Settings::get_value('et_pb_fullwidth_slider-padding', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_fullwidth_slider-padding]', array('label' => esc_html__('Top & Bottom Padding', 'Divi'), 'section' => 'et_pagebuilder_fullwidth_slider', 'type' => 'range', 'input_attrs' => array('min' => 5, 'max' => 50, 'step' => 1)))); // Header Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_fullwidth_slider-header_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_fullwidth_slider-header_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_fullwidth_slider-header_font_size]', array('label' => esc_html__('Header Font Size', 'Divi'), 'section' => 'et_pagebuilder_fullwidth_slider', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1)))); // Header Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_fullwidth_slider-header_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_fullwidth_slider-header_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_fullwidth_slider-header_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_pagebuilder_fullwidth_slider', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); // Content Font size: Range 10px - 32px $wp_customize->add_setting('et_divi[et_pb_fullwidth_slider-body_font_size]', array('default' => ET_Global_Settings::get_value('et_pb_fullwidth_slider-body_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint')); $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[et_pb_fullwidth_slider-body_font_size]', array('label' => esc_html__('Content Font Size', 'Divi'), 'section' => 'et_pagebuilder_fullwidth_slider', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1)))); // Content Font Style: B / I / TT / U $wp_customize->add_setting('et_divi[et_pb_fullwidth_slider-body_font_style]', array('default' => ET_Global_Settings::get_value('et_pb_fullwidth_slider-body_font_style', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style')); $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[et_pb_fullwidth_slider-body_font_style]', array('label' => esc_html__('Content Font Style', 'Divi'), 'section' => 'et_pagebuilder_fullwidth_slider', 'type' => 'font_style', 'choices' => et_divi_font_style_choices()))); }
/** * Sanitize divider style choices * @param string * @return string|bool */ function et_sanitize_divider_style($choosen) { return et_sanitize_key_based_option($choosen, et_divi_divider_style_choices()); }