esc_html__( 'Primary Menu', 'Divi' ), 'secondary-menu' => esc_html__( 'Secondary Menu', 'Divi' ), 'footer-menu' => esc_html__( 'Footer Menu', 'Divi' ), ) ); // don't display the empty title bar if the widget title is not set remove_filter( 'widget_title', 'et_widget_force_title' ); remove_filter( 'body_class', 'et_add_fullwidth_body_class' ); add_action( 'wp_enqueue_scripts', 'et_add_responsive_shortcodes_css', 11 ); // Declare theme supports add_theme_support( 'title-tag' ); add_theme_support( 'post-formats', array( 'video', 'audio', 'quote', 'gallery', 'link' ) ); add_theme_support( 'woocommerce' ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'customize-selective-refresh-widgets' ); remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); add_action( 'woocommerce_before_main_content', 'et_divi_output_content_wrapper', 10 ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); add_action( 'woocommerce_after_main_content', 'et_divi_output_content_wrapper_end', 10 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); // deactivate page templates and custom import functions remove_action( 'init', 'et_activate_features' ); remove_action('admin_menu', 'et_add_epanel'); // Load editor styling add_editor_style( 'css/editor-style.css' ); // Load unminified scripts based on selected theme options field add_filter( 'et_load_unminified_scripts', 'et_divi_load_unminified_scripts' ); // Load unminified styles based on selected theme options field add_filter( 'et_load_unminified_styles', 'et_divi_load_unminified_styles' ); } add_action( 'after_setup_theme', 'et_setup_theme' ); function et_divi_load_unminified_scripts( $load ) { if ( 'false' === et_get_option( 'divi_minify_combine_scripts' ) ) { return true; } return $load; } function et_divi_load_unminified_styles( $load ) { if ( 'false' === et_get_option( 'divi_minify_combine_styles' ) ) { return true; } return $load; } function et_theme_epanel_reminder(){ global $shortname, $themename; $documentation_url = 'http://www.elegantthemes.com/gallery/divi/readme.html'; $documentation_option_name = $shortname . '_2_4_documentation_message'; if ( false === et_get_option( $shortname . '_logo' ) && false === et_get_option( $documentation_option_name ) ) { $message = sprintf( et_get_safe_localization( __( 'Welcome to Divi! Before diving in to your new theme, please visit the Divi Documentation page for access to dozens of in-depth tutorials.', $themename ) ), esc_url( $documentation_url ) ); printf( '
%1$s
post_type ) : ?>
/>
post_type ) : ?> post_type ); if ( ! current_user_can( $post_type->cap->edit_post, $post_id ) ) { return; } if ( ! isset( $_POST['et_settings_nonce'] ) || ! wp_verify_nonce( $_POST['et_settings_nonce'], basename( __FILE__ ) ) ) { return; } if ( isset( $_POST['et_post_use_bg_color'] ) ) update_post_meta( $post_id, '_et_post_use_bg_color', true ); else delete_post_meta( $post_id, '_et_post_use_bg_color' ); if ( isset( $_POST['et_post_bg_color'] ) ) update_post_meta( $post_id, '_et_post_bg_color', sanitize_text_field( $_POST['et_post_bg_color'] ) ); else delete_post_meta( $post_id, '_et_post_bg_color' ); if ( isset( $_POST['et_post_bg_layout'] ) ) update_post_meta( $post_id, '_et_post_bg_layout', sanitize_text_field( $_POST['et_post_bg_layout'] ) ); else delete_post_meta( $post_id, '_et_post_bg_layout' ); if ( isset( $_POST['et_single_title'] ) ) update_post_meta( $post_id, '_et_pb_show_title', sanitize_text_field( $_POST['et_single_title'] ) ); else delete_post_meta( $post_id, '_et_pb_show_title' ); if ( isset( $_POST['et_pb_post_hide_nav'] ) ) update_post_meta( $post_id, '_et_pb_post_hide_nav', sanitize_text_field( $_POST['et_pb_post_hide_nav'] ) ); else delete_post_meta( $post_id, '_et_pb_post_hide_nav' ); if ( isset( $_POST['et_project_nav'] ) ) update_post_meta( $post_id, '_et_pb_project_nav', sanitize_text_field( $_POST['et_project_nav'] ) ); else delete_post_meta( $post_id, '_et_pb_project_nav' ); if ( isset( $_POST['et_pb_page_layout'] ) ) { update_post_meta( $post_id, '_et_pb_page_layout', sanitize_text_field( $_POST['et_pb_page_layout'] ) ); } else { delete_post_meta( $post_id, '_et_pb_page_layout' ); } if ( isset( $_POST['et_pb_side_nav'] ) ) { update_post_meta( $post_id, '_et_pb_side_nav', sanitize_text_field( $_POST['et_pb_side_nav'] ) ); } else { delete_post_meta( $post_id, '_et_pb_side_nav' ); } } add_action( 'save_post', 'et_divi_post_settings_save_details', 10, 2 ); /** * Return the list of languages which support one font * @return array */ if ( ! function_exists( 'et_get_one_font_languages' ) ) : function et_get_one_font_languages() { $one_font_languages = array( 'ja' => array( 'language_name' => 'Japanese', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/notosansjapanese.css', 'font_family' => "'Noto Sans Japanese', serif", ), 'ko_KR' => array( 'language_name' => 'Korean', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/hanna.css', 'font_family' => "'Hanna', serif", ), 'ms_MY' => array( 'language_name' => 'Malay', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/notosansmalayalam.css', 'font_family' => "'Noto Sans Malayalam', serif", ), 'zh_CN' => array( 'language_name' => 'Chinese', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/cwtexfangsong.css', 'font_family' => "'cwTeXFangSong', serif", ), ); return $one_font_languages; } endif; /** * Return the list of languages which supported one font previously * @return array */ if ( ! function_exists( 'et_get_old_one_font_languages' ) ) : function et_get_old_one_font_languages() { $old_one_font_languages = array( 'he_IL' => array( 'language_name' => 'Hebrew', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/alefhebrew.css', 'font_family' => 'Alef Hebrew', ), 'ar' => array( 'language_name' => 'Arabic', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/lateef.css', 'font_family' => 'Lateef', ), 'th' => array( 'language_name' => 'Thai', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/notosansthai.css', 'font_family' => 'Noto Sans Thai', ), ); return $old_one_font_languages; } endif; /** * Return custom default font-family for the languages which supported one font previously * @param string * @return string */ if ( ! function_exists( 'et_pb_get_specific_default_font' ) ) : function et_pb_get_specific_default_font( $font_family ) { // do nothing if font is not default if ( ! in_array( $font_family, array( 'none', '' ) ) ) { return $font_family; } $site_domain = get_locale(); // array of the languages which were "one font languages" earlier and have specific defaults $specific_defaults = et_get_old_one_font_languages(); if ( isset( $specific_defaults[ $site_domain ] ) ) { return $specific_defaults[ $site_domain ]['font_family']; } return $font_family; } endif; function et_divi_customize_register( $wp_customize ) { global $wp_version; // Get WP major version $wp_major_version = substr( $wp_version, 0, 3 ); $wp_customize->remove_section( 'title_tagline' ); $wp_customize->remove_section( 'background_image' ); $wp_customize->remove_section( 'colors' ); $wp_customize->register_control_type( 'ET_Divi_Customize_Color_Alpha_Control' ); if ( version_compare( $wp_major_version, '4.9', '>=' ) ) { wp_register_script( 'wp-color-picker-alpha', get_template_directory_uri() . '/includes/builder/scripts/ext/wp-color-picker-alpha.min.js', array( 'jquery', 'wp-color-picker' ) ); wp_localize_script( 'wp-color-picker-alpha', 'et_pb_color_picker_strings', apply_filters( 'et_pb_color_picker_strings_builder', array( 'legacy_pick' => esc_html__( 'Select', 'et_builder' ), 'legacy_current' => esc_html__( 'Current Color', 'et_builder' ), ) ) ); } else { wp_register_script( 'wp-color-picker-alpha', get_template_directory_uri() . '/includes/builder/scripts/ext/wp-color-picker-alpha-48.min.js', array( 'jquery', 'wp-color-picker' ) ); } $option_set_name = 'et_customizer_option_set'; $option_set_allowed_values = apply_filters( 'et_customizer_option_set_allowed_values', array( 'module', 'theme' ) ); $customizer_option_set = ''; /** * Set a transient, * if 'et_customizer_option_set' query parameter is set to one of the allowed values */ if ( isset( $_GET[ $option_set_name ] ) && in_array( $_GET[ $option_set_name ], $option_set_allowed_values ) ) { $customizer_option_set = $_GET[ $option_set_name ]; set_transient( 'et_divi_customizer_option_set', $customizer_option_set, DAY_IN_SECONDS ); } if ( '' === $customizer_option_set && ( $et_customizer_option_set_value = get_transient( 'et_divi_customizer_option_set' ) ) ) { $customizer_option_set = $et_customizer_option_set_value; } et_builder_init_global_settings(); if ( isset( $customizer_option_set ) && 'module' === $customizer_option_set ) { // display wp error screen if module customizer disabled for current user if ( ! et_pb_is_allowed( 'module_customizer' ) ) { wp_die( esc_html__( "you don't have sufficient permissions to access this page", 'Divi' ) ); } $removed_default_sections = array( 'nav', 'static_front_page', 'custom_css' ); foreach ( $removed_default_sections as $default_section ) { $wp_customize->remove_section( $default_section ); } et_divi_customizer_module_settings( $wp_customize ); } else { // display wp error screen if theme customizer disabled for current user if ( ! et_pb_is_allowed( 'theme_customizer' ) ) { wp_die( esc_html__( "you don't have sufficient permissions to access this page", 'Divi' ) ); } et_divi_customizer_theme_settings( $wp_customize ); } } add_action( 'customize_register', 'et_divi_customize_register' ); if ( ! function_exists( 'et_divi_customizer_theme_settings' ) ) : function et_divi_customizer_theme_settings( $wp_customize ) { $site_domain = get_locale(); $google_fonts = et_builder_get_fonts( array( 'prepend_standard_fonts' => false, ) ); $user_fonts = et_builder_get_custom_fonts(); // combine google fonts with custom user fonts $google_fonts = array_merge( $user_fonts, $google_fonts ); $et_domain_fonts = array( 'ru_RU' => 'cyrillic', 'uk' => 'cyrillic', 'bg_BG' => 'cyrillic', 'vi' => 'vietnamese', 'el' => 'greek', 'ar' => 'arabic', 'he_IL' => 'hebrew', 'th' => 'thai', 'si_lk' => 'sinhala', 'bn_bd' => 'bengali', 'ta_lk' => 'tamil', 'te' => 'telegu', 'km' => 'khmer', 'kn' => 'kannada', 'ml_in' => 'malayalam', ); $et_one_font_languages = et_get_one_font_languages(); $font_choices = array(); $font_choices['none'] = array( 'label' => 'Default Theme Font' ); $removed_fonts_mapping = et_builder_old_fonts_mapping(); foreach ( $google_fonts as $google_font_name => $google_font_properties ) { $use_parent_font = false; if ( isset( $removed_fonts_mapping[ $google_font_name ] ) ) { $parent_font = $removed_fonts_mapping[ $google_font_name ]['parent_font']; $google_font_properties['character_set'] = $google_fonts[ $parent_font ]['character_set']; $use_parent_font = true; } if ( '' !== $site_domain && isset( $et_domain_fonts[$site_domain] ) && isset( $google_font_properties['character_set'] ) && false === strpos( $google_font_properties['character_set'], $et_domain_fonts[$site_domain] ) ) { continue; } $font_choices[ $google_font_name ] = array( 'label' => $google_font_name, 'data' => array( 'parent_font' => $use_parent_font ? $google_font_properties['parent_font'] : '', 'parent_styles' => $use_parent_font ? $google_fonts[$parent_font]['styles'] : $google_font_properties['styles'], 'current_styles' => $use_parent_font && isset( $google_fonts[$parent_font]['styles'] ) && isset( $google_font_properties['styles'] ) ? $google_font_properties['styles'] : '', 'parent_subset' => $use_parent_font && isset( $google_fonts[$parent_font]['character_set'] ) ? $google_fonts[$parent_font]['character_set'] : '', 'standard' => isset( $google_font_properties['standard'] ) && $google_font_properties['standard'] ? 'on' : 'off', ) ); } $wp_customize->add_panel( 'et_divi_general_settings' , array( 'title' => esc_html__( 'General Settings', 'Divi' ), 'priority' => 1, ) ); $wp_customize->add_section( 'title_tagline', array( 'title' => esc_html__( 'Site Identity', 'Divi' ), 'panel' => 'et_divi_general_settings', ) ); $wp_customize->add_section( 'et_divi_general_layout' , array( 'title' => esc_html__( 'Layout Settings', 'Divi' ), 'panel' => 'et_divi_general_settings', ) ); $wp_customize->add_section( 'et_divi_general_typography' , array( 'title' => esc_html__( 'Typography', 'Divi' ), 'panel' => 'et_divi_general_settings', ) ); $wp_customize->add_panel( 'et_divi_mobile' , array( 'title' => esc_html__( 'Mobile Styles', 'Divi' ), 'priority' => 6, ) ); $wp_customize->add_section( 'et_divi_mobile_tablet' , array( 'title' => esc_html__( 'Tablet', 'Divi' ), 'panel' => 'et_divi_mobile', ) ); $wp_customize->add_section( 'et_divi_mobile_phone' , array( 'title' => esc_html__( 'Phone', 'Divi' ), 'panel' => 'et_divi_mobile', ) ); $wp_customize->add_section( 'et_divi_mobile_menu' , array( 'title' => esc_html__( 'Mobile Menu', 'Divi' ), 'panel' => 'et_divi_mobile', ) ); $wp_customize->add_section( 'et_divi_general_background' , array( 'title' => esc_html__( 'Background', 'Divi' ), 'panel' => 'et_divi_general_settings', ) ); $wp_customize->add_panel( 'et_divi_header_panel', array( 'title' => esc_html__( 'Header & Navigation', 'Divi' ), 'priority' => 2, ) ); $wp_customize->add_section( 'et_divi_header_layout' , array( 'title' => esc_html__( 'Header Format', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_section( 'et_divi_header_primary' , array( 'title' => esc_html__( 'Primary Menu Bar', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_section( 'et_divi_header_secondary' , array( 'title' => esc_html__( 'Secondary Menu Bar', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_section( 'et_divi_header_slide' , array( 'title' => esc_html__( 'Slide In & Fullscreen Header Settings', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_section( 'et_divi_header_fixed' , array( 'title' => esc_html__( 'Fixed Navigation Settings', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_section( 'et_divi_header_information' , array( 'title' => esc_html__( 'Header Elements', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_panel( 'et_divi_footer_panel' , array( 'title' => esc_html__( 'Footer', 'Divi' ), 'priority' => 3, ) ); $wp_customize->add_section( 'et_divi_footer_layout' , array( 'title' => esc_html__( 'Layout', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_divi_footer_widgets' , array( 'title' => esc_html__( 'Widgets', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_divi_footer_elements' , array( 'title' => esc_html__( 'Footer Elements', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_divi_footer_menu' , array( 'title' => esc_html__( 'Footer Menu', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_divi_bottom_bar' , array( 'title' => esc_html__( 'Bottom Bar', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_color_schemes' , array( 'title' => esc_html__( 'Color Schemes', 'Divi' ), 'priority' => 7, 'description' => esc_html__( 'Note: Color settings set above should be applied to the Default color scheme.', 'Divi' ), ) ); $wp_customize->add_panel( 'et_divi_buttons_settings' , array( 'title' => esc_html__( 'Buttons', 'Divi' ), 'priority' => 4, ) ); $wp_customize->add_section( 'et_divi_buttons' , array( 'title' => esc_html__( 'Buttons Style', 'Divi' ), 'panel' => 'et_divi_buttons_settings', ) ); $wp_customize->add_section( 'et_divi_buttons_hover' , array( 'title' => esc_html__( 'Buttons Hover Style', 'Divi' ), 'panel' => 'et_divi_buttons_settings', ) ); $wp_customize->add_panel( 'et_divi_blog_settings' , array( 'title' => esc_html__( 'Blog', 'Divi' ), 'priority' => 5, ) ); $wp_customize->add_section( 'et_divi_blog_post' , array( 'title' => esc_html__( 'Post', 'Divi' ), 'panel' => 'et_divi_blog_settings', ) ); $wp_customize->add_setting( 'et_divi[post_meta_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_meta_font_size]', array( 'label' => esc_html__( 'Meta Text Size', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 32, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[post_meta_height]', array( 'default' => '1', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_meta_height]', array( 'label' => esc_html__( 'Meta Line Height', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array( 'min' => .8, 'max' => 3, 'step' => .1 ), ) ) ); $wp_customize->add_setting( 'et_divi[post_meta_spacing]', array( 'default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_meta_spacing]', array( 'label' => esc_html__( 'Meta Letter Spacing', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array( 'min' => -2, 'max' => 10, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[post_meta_style]', array( '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[post_meta_style]', array( 'label' => esc_html__( 'Meta Font Style', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[post_header_font_size]', array( 'default' => '30', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_header_font_size]', array( 'label' => esc_html__( 'Header Text Size', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 72, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[post_header_height]', array( 'default' => '1', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_header_height]', array( 'label' => esc_html__( 'Header Line Height', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array( 'min' => 0.8, 'max' => 3, 'step' => 0.1 ), ) ) ); $wp_customize->add_setting( 'et_divi[post_header_spacing]', array( 'default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_header_spacing]', array( 'label' => esc_html__( 'Header Letter Spacing', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array( 'min' => -2, 'max' => 10, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[post_header_style]', array( '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[post_header_style]', array( 'label' => esc_html__( 'Header Font Style', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[boxed_layout]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[boxed_layout]', array( 'label' => esc_html__( 'Enable Boxed Layout', 'Divi' ), 'section' => 'et_divi_general_layout', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[content_width]', array( 'default' => '1080', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[content_width]', array( 'label' => esc_html__( 'Website Content Width', 'Divi' ), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array( 'min' => 960, 'max' => 1920, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[gutter_width]', array( 'default' => '3', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[gutter_width]', array( 'label' => esc_html__( 'Website Gutter Width', 'Divi' ), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array( 'min' => 1, 'max' => 4, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[use_sidebar_width]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[use_sidebar_width]', array( 'label' => esc_html__( 'Use Custom Sidebar Width', 'Divi' ), 'section' => 'et_divi_general_layout', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[sidebar_width]', array( 'default' => '21', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[sidebar_width]', array( 'label' => esc_html__( 'Sidebar Width', 'Divi' ), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array( 'min' => 19, 'max' => 33, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'et_divi[section_padding]', array( 'default' => '4', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[section_padding]', array( 'label' => esc_html__( 'Section Height', 'Divi' ), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[phone_section_height]', array( 'default' => et_get_option( 'tablet_section_height', '50' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[phone_section_height]', array( 'label' => esc_html__( 'Section Height', 'Divi' ), 'section' => 'et_divi_mobile_phone', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 150, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[tablet_section_height]', array( 'default' => '50', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[tablet_section_height]', array( 'label' => esc_html__( 'Section Height', 'Divi' ), 'section' => 'et_divi_mobile_tablet', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 150, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[row_padding]', array( 'default' => '2', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[row_padding]', array( 'label' => esc_html__( 'Row Height', 'Divi' ), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[phone_row_height]', array( 'default' => et_get_option( 'tablet_row_height', '30' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[phone_row_height]', array( 'label' => esc_html__( 'Row Height', 'Divi' ), 'section' => 'et_divi_mobile_phone', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 150, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[tablet_row_height]', array( 'default' => '30', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[tablet_row_height]', array( 'label' => esc_html__( 'Row Height', 'Divi' ), 'section' => 'et_divi_mobile_tablet', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 150, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[cover_background]', array( 'default' => 'on', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[cover_background]', array( 'label' => esc_html__( 'Stretch Background Image', 'Divi' ), 'section' => 'et_divi_general_background', 'type' => 'checkbox', ) ); if ( ! is_null( $wp_customize->get_setting( 'background_color' ) ) ) { $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'background_color', array( 'label' => esc_html__( 'Background Color', 'Divi' ), 'section' => 'et_divi_general_background', ) ) ); } if ( ! is_null( $wp_customize->get_setting( 'background_image' ) ) ) { $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'background_image', array( 'label' => esc_html__( 'Background Image', 'Divi' ), 'section' => 'et_divi_general_background', ) ) ); } // Remove default background_repeat setting and control since native // background_repeat field has different different settings $wp_customize->remove_setting( 'background_repeat' ); $wp_customize->remove_control( 'background_repeat' ); // Re-defined Divi specific background repeat option $wp_customize->add_setting( 'background_repeat', array( 'default' => apply_filters( 'et_divi_background_repeat_default', 'repeat' ), 'sanitize_callback' => 'et_sanitize_background_repeat', 'theme_supports' => 'custom-background', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'background_repeat', array( 'label' => esc_html__( 'Background Repeat', 'Divi' ), 'section' => 'et_divi_general_background', 'type' => 'radio', 'choices' => et_divi_background_repeat_choices(), ) ); $wp_customize->add_control( 'background_position_x', array( 'label' => esc_html__( 'Background Position', 'Divi' ), 'section' => 'et_divi_general_background', 'type' => 'radio', 'choices' => array( 'left' => esc_html__( 'Left', 'Divi' ), 'center' => esc_html__( 'Center', 'Divi' ), 'right' => esc_html__( 'Right', 'Divi' ), ), ) ); // Remove default background_attachment setting and control since native // background_attachment field has different different settings $wp_customize->remove_setting( 'background_attachment' ); $wp_customize->remove_control( 'background_attachment' ); $wp_customize->add_setting( 'background_attachment', array( 'default' => apply_filters( 'et_sanitize_background_attachment_default', 'scroll' ), 'sanitize_callback' => 'et_sanitize_background_attachment', 'theme_supports' => 'custom-background', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'background_attachment', array( 'label' => esc_html__( 'Background Position', 'Divi' ), 'section' => 'et_divi_general_background', 'type' => 'radio', 'choices' => et_divi_background_attachment_choices(), ) ); $wp_customize->add_setting( 'et_divi[body_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_font_size]', array( 'label' => esc_html__( 'Body Text Size', 'Divi' ), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 32, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[body_font_height]', array( 'default' => '1.7', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_font_height]', array( 'label' => esc_html__( 'Body Line Height', 'Divi' ), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array( 'min' => 0.8, 'max' => 3, 'step' => 0.1 ), ) ) ); $wp_customize->add_setting( 'et_divi[phone_body_font_size]', array( 'default' => et_get_option( 'tablet_body_font_size', '14' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[phone_body_font_size]', array( 'label' => esc_html__( 'Body Text Size', 'Divi' ), 'section' => 'et_divi_mobile_phone', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 32, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[tablet_body_font_size]', array( 'default' => et_get_option( 'body_font_size', '14' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[tablet_body_font_size]', array( 'label' => esc_html__( 'Body Text Size', 'Divi' ), 'section' => 'et_divi_mobile_tablet', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 32, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[body_header_size]', array( 'default' => '30', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_header_size]', array( 'label' => esc_html__( 'Header Text Size', 'Divi' ), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array( 'min' => 22, 'max' => 72, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[body_header_spacing]', array( 'default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_header_spacing]', array( 'label' => esc_html__( 'Header Letter Spacing', 'Divi' ), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array( 'min' => -2, 'max' => 10, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[body_header_height]', array( 'default' => '1', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_header_height]', array( 'label' => esc_html__( 'Header Line Height', 'Divi' ), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array( 'min' => 0.8, 'max' => 3, 'step' => 0.1 ), ) ) ); $wp_customize->add_setting( 'et_divi[body_header_style]', array( '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[body_header_style]', array( 'label' => esc_html__( 'Header Font Style', 'Divi' ), 'section' => 'et_divi_general_typography', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[phone_header_font_size]', array( 'default' => et_get_option( 'tablet_header_font_size', '30' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[phone_header_font_size]', array( 'label' => esc_html__( 'Header Text Size', 'Divi' ), 'section' => 'et_divi_mobile_phone', 'type' => 'range', 'input_attrs' => array( 'min' => 22, 'max' => 72, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[tablet_header_font_size]', array( 'default' => et_get_option( 'body_header_size', '30' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[tablet_header_font_size]', array( 'label' => esc_html__( 'Header Text Size', 'Divi' ), 'section' => 'et_divi_mobile_tablet', 'type' => 'range', 'input_attrs' => array( 'min' => 22, 'max' => 72, 'step' => 1 ), ) ) ); if ( ! isset( $et_one_font_languages[$site_domain] ) ) { $wp_customize->add_setting( 'et_divi[heading_font]', array( 'default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices', ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[heading_font]', array( 'label' => esc_html__( 'Header Font', 'Divi' ), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[heading_font]', 'type' => 'select', 'choices' => $font_choices, ) ) ); $wp_customize->add_setting( 'et_divi[body_font]', array( 'default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices', ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[body_font]', array( 'label' => esc_html__( 'Body Font', 'Divi' ), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[body_font]', 'type' => 'select', 'choices' => $font_choices ) ) ); } $wp_customize->add_setting( 'et_divi[link_color]', array( 'default' => et_get_option( 'accent_color', '#2ea3f2' ), '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[link_color]', array( 'label' => esc_html__( 'Body Link Color', 'Divi' ), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[link_color]', ) ) ); $wp_customize->add_setting( 'et_divi[font_color]', array( 'default' => '#666666', '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[font_color]', array( 'label' => esc_html__( 'Body Text Color', 'Divi' ), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[font_color]', ) ) ); $wp_customize->add_setting( 'et_divi[header_color]', array( 'default' => '#666666', '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[header_color]', array( 'label' => esc_html__( 'Header Text Color', 'Divi' ), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[header_color]', ) ) ); $wp_customize->add_setting( 'et_divi[accent_color]', array( 'default' => '#2ea3f2', '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[accent_color]', array( 'label' => esc_html__( 'Theme Accent Color', 'Divi' ), 'section' => 'et_divi_general_layout', 'settings' => 'et_divi[accent_color]', ) ) ); $wp_customize->add_setting( 'et_divi[color_schemes]', array( 'default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_color_scheme', ) ); $wp_customize->add_control( 'et_divi[color_schemes]', array( 'label' => esc_html__( 'Color Schemes', 'Divi' ), 'section' => 'et_color_schemes', 'settings' => 'et_divi[color_schemes]', 'type' => 'select', 'choices' => et_divi_color_scheme_choices(), ) ); $wp_customize->add_setting( 'et_divi[header_style]', array( 'default' => 'left', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_header_style', ) ); $wp_customize->add_control( 'et_divi[header_style]', array( 'label' => esc_html__( 'Header Style', 'Divi' ), 'section' => 'et_divi_header_layout', 'type' => 'select', 'choices' => et_divi_header_style_choices(), ) ); $wp_customize->add_setting( 'et_divi[vertical_nav]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[vertical_nav]', array( 'label' => esc_html__( 'Enable Vertical Navigation', 'Divi' ), 'section' => 'et_divi_header_layout', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[vertical_nav_orientation]', array( 'default' => 'left', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_left_right', ) ); $wp_customize->add_control( 'et_divi[vertical_nav_orientation]', array( 'label' => esc_html__( 'Vertical Menu Orientation', 'Divi' ), 'section' => 'et_divi_header_layout', 'type' => 'select', 'choices' => et_divi_left_right_choices(), ) ); if ( 'on' === et_get_option( 'divi_fixed_nav', 'on' ) ) { $wp_customize->add_setting( 'et_divi[hide_nav]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[hide_nav]', array( 'label' => esc_html__( 'Hide Navigation Until Scroll', 'Divi' ), 'section' => 'et_divi_header_layout', 'type' => 'checkbox', ) ); } // 'on' === et_get_option( 'divi_fixed_nav', 'on' ) $wp_customize->add_setting( 'et_divi[show_header_social_icons]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[show_header_social_icons]', array( 'label' => esc_html__( 'Show Social Icons', 'Divi' ), 'section' => 'et_divi_header_information', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[show_search_icon]', array( 'default' => 'on', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[show_search_icon]', array( 'label' => esc_html__( 'Show Search Icon', 'Divi' ), 'section' => 'et_divi_header_information', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[slide_nav_show_top_bar]', array( 'default' => 'on', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[slide_nav_show_top_bar]', array( 'label' => esc_html__( 'Show Top Bar', 'Divi' ), 'section' => 'et_divi_header_slide', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[slide_nav_width]', array( 'default' => '320', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[slide_nav_width]', array( 'label' => esc_html__( 'Menu Width', 'Divi' ), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array( 'min' => 280, 'max' => 600, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[slide_nav_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[slide_nav_font_size]', array( 'label' => esc_html__( 'Menu Text Size', 'Divi' ), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array( 'min' => 12, 'max' => 24, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[slide_nav_top_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[slide_nav_top_font_size]', array( 'label' => esc_html__( 'Top Bar Text Size', 'Divi' ), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array( 'min' => 12, 'max' => 24, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[fullscreen_nav_font_size]', array( 'default' => '30', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[fullscreen_nav_font_size]', array( 'label' => esc_html__( 'Menu Text Size', 'Divi' ), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array( 'min' => 12, 'max' => 50, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[fullscreen_nav_top_font_size]', array( 'default' => '18', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[fullscreen_nav_top_font_size]', array( 'label' => esc_html__( 'Top Bar Text Size', 'Divi' ), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array( 'min' => 12, 'max' => 40, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[slide_nav_font_spacing]', array( 'default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[slide_nav_font_spacing]', array( 'label' => esc_html__( 'Letter Spacing', 'Divi' ), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array( 'min' => -1, 'max' => 8, 'step' => 1 ), ) ) ); if ( ! isset( $et_one_font_languages[$site_domain] ) ) { $wp_customize->add_setting( 'et_divi[slide_nav_font]', array( 'default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices', ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[slide_nav_font]', array( 'label' => esc_html__( 'Font', 'Divi' ), 'section' => 'et_divi_header_slide', 'settings' => 'et_divi[slide_nav_font]', 'type' => 'select', 'choices' => $font_choices ) ) ); } $wp_customize->add_setting( 'et_divi[slide_nav_font_style]', array( '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[slide_nav_font_style]', array( 'label' => esc_html__( 'Font Style', 'Divi' ), 'section' => 'et_divi_header_slide', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[slide_nav_bg]', array( 'default' => et_get_option( 'accent_color', '#2ea3f2' ), '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[slide_nav_bg]', array( 'label' => esc_html__( 'Background Color', 'Divi' ), 'section' => 'et_divi_header_slide', 'settings' => 'et_divi[slide_nav_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[slide_nav_links_color]', array( 'default' => '#ffffff', '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[slide_nav_links_color]', array( 'label' => esc_html__( 'Menu Link Color', 'Divi' ), 'section' => 'et_divi_header_slide', 'settings' => 'et_divi[slide_nav_links_color]', ) ) ); $wp_customize->add_setting( 'et_divi[slide_nav_links_color_active]', array( 'default' => '#ffffff', '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[slide_nav_links_color_active]', array( 'label' => esc_html__( 'Active Link Color', 'Divi' ), 'section' => 'et_divi_header_slide', 'settings' => 'et_divi[slide_nav_links_color_active]', ) ) ); $wp_customize->add_setting( 'et_divi[slide_nav_top_color]', array( 'default' => 'rgba(255,255,255,0.6)', '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[slide_nav_top_color]', array( 'label' => esc_html__( 'Top Bar Text Color', 'Divi' ), 'section' => 'et_divi_header_slide', 'settings' => 'et_divi[slide_nav_top_color]', ) ) ); $wp_customize->add_setting( 'et_divi[slide_nav_search]', array( 'default' => 'rgba(255,255,255,0.6)', '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[slide_nav_search]', array( 'label' => esc_html__( 'Search Bar Text Color', 'Divi' ), 'section' => 'et_divi_header_slide', 'settings' => 'et_divi[slide_nav_search]', ) ) ); $wp_customize->add_setting( 'et_divi[slide_nav_search_bg]', array( 'default' => 'rgba(0,0,0,0.2)', '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[slide_nav_search_bg]', array( 'label' => esc_html__( 'Search Bar Background Color', 'Divi' ), 'section' => 'et_divi_header_slide', 'settings' => 'et_divi[slide_nav_search_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[nav_fullwidth]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[nav_fullwidth]', array( 'label' => esc_html__( 'Make Full Width', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[hide_primary_logo]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[hide_primary_logo]', array( 'label' => esc_html__( 'Hide Logo Image', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[menu_height]', array( 'default' => '66', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[menu_height]', array( 'label' => esc_html__( 'Menu Height', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'range', 'input_attrs' => array( 'min' => 30, 'max' => 300, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[logo_height]', array( 'default' => '54', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[logo_height]', array( 'label' => esc_html__( 'Logo Max Height', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'range', 'input_attrs' => array( 'min' => 30, 'max' => 100, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'et_divi[menu_margin_top]', array( 'default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[menu_margin_top]', array( 'label' => esc_html__( 'Menu Top Margin', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 300, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[primary_nav_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[primary_nav_font_size]', array( 'label' => esc_html__( 'Text Size', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'range', 'input_attrs' => array( 'min' => 12, 'max' => 24, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[primary_nav_font_spacing]', array( 'default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[primary_nav_font_spacing]', array( 'label' => esc_html__( 'Letter Spacing', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'range', 'input_attrs' => array( 'min' => -1, 'max' => 8, 'step' => 1 ), ) ) ); if ( ! isset( $et_one_font_languages[$site_domain] ) ) { $wp_customize->add_setting( 'et_divi[primary_nav_font]', array( 'default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices', ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[primary_nav_font]', array( 'label' => esc_html__( 'Font', 'Divi' ), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_font]', 'type' => 'select', 'choices' => $font_choices ) ) ); } $wp_customize->add_setting( 'et_divi[primary_nav_font_style]', array( '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[primary_nav_font_style]', array( 'label' => esc_html__( 'Font Style', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_font_size]', array( 'default' => '12', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_fullwidth]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[secondary_nav_fullwidth]', array( 'label' => esc_html__( 'Make Full Width', 'Divi' ), 'section' => 'et_divi_header_secondary', 'type' => 'checkbox', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[secondary_nav_font_size]', array( 'label' => esc_html__( 'Text Size', 'Divi' ), 'section' => 'et_divi_header_secondary', 'type' => 'range', 'input_attrs' => array( 'min' => 12, 'max' => 20, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_font_spacing]', array( 'default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[secondary_nav_font_spacing]', array( 'label' => esc_html__( 'Letter Spacing', 'Divi' ), 'section' => 'et_divi_header_secondary', 'type' => 'range', 'input_attrs' => array( 'min' => -1, 'max' => 8, 'step' => 1 ), ) ) ); if ( ! isset( $et_one_font_languages[$site_domain] ) ) { $wp_customize->add_setting( 'et_divi[secondary_nav_font]', array( 'default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices', ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[secondary_nav_font]', array( 'label' => esc_html__( 'Font', 'Divi' ), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_font]', 'type' => 'select', 'choices' => $font_choices ) ) ); } $wp_customize->add_setting( 'et_divi[secondary_nav_font_style]', array( '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[secondary_nav_font_style]', array( 'label' => esc_html__( 'Font Style', 'Divi' ), 'section' => 'et_divi_header_secondary', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[menu_link]', array( 'default' => 'rgba(0,0,0,0.6)', '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[menu_link]', array( 'label' => esc_html__( 'Text Color', 'Divi' ), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[menu_link]', ) ) ); $wp_customize->add_setting( 'et_divi[hide_mobile_logo]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[hide_mobile_logo]', array( 'label' => esc_html__( 'Hide Logo Image', 'Divi' ), 'section' => 'et_divi_mobile_menu', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[mobile_menu_link]', array( 'default' => et_get_option( 'menu_link', 'rgba(0,0,0,0.6)' ), '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[mobile_menu_link]', array( 'label' => esc_html__( 'Text Color', 'Divi' ), 'section' => 'et_divi_mobile_menu', 'settings' => 'et_divi[mobile_menu_link]', ) ) ); $wp_customize->add_setting( 'et_divi[menu_link_active]', array( 'default' => et_get_option( 'accent_color', '#2ea3f2' ), '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[menu_link_active]', array( 'label' => esc_html__( 'Active Link Color', 'Divi' ), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[menu_link_active]', ) ) ); $wp_customize->add_setting( 'et_divi[primary_nav_bg]', array( 'default' => '#ffffff', '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[primary_nav_bg]', array( 'label' => esc_html__( 'Background Color', 'Divi' ), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[primary_nav_dropdown_bg]', array( 'default' => et_get_option( 'primary_nav_bg', '#ffffff' ), '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[primary_nav_dropdown_bg]', array( 'label' => esc_html__( 'Dropdown Menu Background Color', 'Divi' ), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_dropdown_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[primary_nav_dropdown_line_color]', array( 'default' => et_get_option( 'accent_color', '#2ea3f2' ), '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[primary_nav_dropdown_line_color]', array( 'label' => esc_html__( 'Dropdown Menu Line Color', 'Divi' ), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_dropdown_line_color]', ) ) ); $wp_customize->add_setting( 'et_divi[primary_nav_dropdown_link_color]', array( 'default' => et_get_option( 'menu_link', 'rgba(0,0,0,0.7)' ), '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[primary_nav_dropdown_link_color]', array( 'label' => esc_html__( 'Dropdown Menu Text Color', 'Divi' ), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_dropdown_link_color]', ) ) ); $wp_customize->add_setting( 'et_divi[primary_nav_dropdown_animation]', array( 'default' => 'fade', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_dropdown_animation', ) ); $wp_customize->add_control( 'et_divi[primary_nav_dropdown_animation]', array( 'label' => esc_html__( 'Dropdown Menu Animation', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'select', 'choices' => et_divi_dropdown_animation_choices(), ) ); $wp_customize->add_setting( 'et_divi[mobile_primary_nav_bg]', array( 'default' => et_get_option( 'primary_nav_bg', '#ffffff' ), '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[mobile_primary_nav_bg]', array( 'label' => esc_html__( 'Background Color', 'Divi' ), 'section' => 'et_divi_mobile_menu', 'settings' => 'et_divi[mobile_primary_nav_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_bg]', array( 'default' => et_get_option( 'accent_color', '#2ea3f2' ), '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[secondary_nav_bg]', array( 'label' => esc_html__( 'Background Color', 'Divi' ), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_text_color_new]', array( 'default' => '#ffffff', '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[secondary_nav_text_color_new]', array( 'label' => esc_html__( 'Text Color', 'Divi' ), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_text_color_new]', ) ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_dropdown_bg]', array( 'default' => et_get_option( 'secondary_nav_bg', et_get_option( 'accent_color', '#2ea3f2' ) ), '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[secondary_nav_dropdown_bg]', array( 'label' => esc_html__( 'Dropdown Menu Background Color', 'Divi' ), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_dropdown_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_dropdown_link_color]', array( 'default' => et_get_option( 'secondary_nav_text_color_new', '#ffffff' ), '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[secondary_nav_dropdown_link_color]', array( 'label' => esc_html__( 'Dropdown Menu Text Color', 'Divi' ), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_dropdown_link_color]', ) ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_dropdown_animation]', array( 'default' => 'fade', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_dropdown_animation', ) ); $wp_customize->add_control( 'et_divi[secondary_nav_dropdown_animation]', array( 'label' => esc_html__( 'Dropdown Menu Animation', 'Divi' ), 'section' => 'et_divi_header_secondary', 'type' => 'select', 'choices' => et_divi_dropdown_animation_choices(), ) ); // Setting with no control kept for backwards compatbility $wp_customize->add_setting( 'et_divi[primary_nav_text_color]', array( 'default' => 'dark', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color', ) ); // Setting with no control kept for backwards compatbility $wp_customize->add_setting( 'et_divi[secondary_nav_text_color]', array( 'default' => 'light', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color', ) ); if ( 'on' === et_get_option( 'divi_fixed_nav', 'on' ) ) { $wp_customize->add_setting( 'et_divi[hide_fixed_logo]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[hide_fixed_logo]', array( 'label' => esc_html__( 'Hide Logo Image', 'Divi' ), 'section' => 'et_divi_header_fixed', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[minimized_menu_height]', array( 'default' => '40', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[minimized_menu_height]', array( 'label' => esc_html__( 'Fixed Menu Height', 'Divi' ), 'section' => 'et_divi_header_fixed', 'type' => 'range', 'input_attrs' => array( 'min' => 30, 'max' => 300, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[fixed_primary_nav_font_size]', array( 'default' => et_get_option( 'primary_nav_font_size', '14' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[fixed_primary_nav_font_size]', array( 'label' => esc_html__( 'Text Size', 'Divi' ), 'section' => 'et_divi_header_fixed', 'type' => 'range', 'input_attrs' => array( 'min' => 12, 'max' => 24, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[fixed_primary_nav_bg]', array( 'default' => et_get_option( 'primary_nav_bg', '#ffffff' ), '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[fixed_primary_nav_bg]', array( 'label' => esc_html__( 'Primary Menu Background Color', 'Divi' ), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_primary_nav_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[fixed_secondary_nav_bg]', array( 'default' => et_get_option( 'secondary_nav_bg', '#2ea3f2' ), '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[fixed_secondary_nav_bg]', array( 'label' => esc_html__( 'Secondary Menu Background Color', 'Divi' ), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_secondary_nav_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[fixed_menu_link]', array( 'default' => et_get_option( 'menu_link', 'rgba(0,0,0,0.6)' ), '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[fixed_menu_link]', array( 'label' => esc_html__( 'Primary Menu Link Color', 'Divi' ), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_menu_link]', ) ) ); $wp_customize->add_setting( 'et_divi[fixed_secondary_menu_link]', array( 'default' => et_get_option( 'secondary_nav_text_color_new', '#ffffff' ), '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[fixed_secondary_menu_link]', array( 'label' => esc_html__( 'Secondary Menu Link Color', 'Divi' ), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_secondary_menu_link]', ) ) ); $wp_customize->add_setting( 'et_divi[fixed_menu_link_active]', array( 'default' => et_get_option( 'menu_link_active', '#2ea3f2' ), '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[fixed_menu_link_active]', array( 'label' => esc_html__( 'Active Primary Menu Link Color', 'Divi' ), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_menu_link_active]', ) ) ); } $wp_customize->add_setting( 'et_divi[phone_number]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_html_input_text', ) ); $wp_customize->add_control( 'et_divi[phone_number]', array( 'label' => esc_html__( 'Phone Number', 'Divi' ), 'section' => 'et_divi_header_information', 'type' => 'text', ) ); $wp_customize->add_setting( 'et_divi[header_email]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_email', ) ); $wp_customize->add_control( 'et_divi[header_email]', array( 'label' => esc_html__( 'Email', 'Divi' ), 'section' => 'et_divi_header_information', 'type' => 'text', ) ); $wp_customize->add_setting( 'et_divi[show_footer_social_icons]', array( 'default' => 'on', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[show_footer_social_icons]', array( 'label' => esc_html__( 'Show Social Icons', 'Divi' ), 'section' => 'et_divi_footer_elements', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[footer_columns]', array( 'default' => '4', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_footer_column', ) ); $wp_customize->add_control( 'et_divi[footer_columns]', array( 'label' => esc_html__( 'Column Layout', 'Divi' ), 'section' => 'et_divi_footer_layout', 'settings' => 'et_divi[footer_columns]', 'type' => 'select', 'choices' => et_divi_footer_column_choices(), ) ); $wp_customize->add_setting( 'et_divi[footer_bg]', array( 'default' => '#222222', '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[footer_bg]', array( 'label' => esc_html__( 'Footer Background Color', 'Divi' ), 'section' => 'et_divi_footer_layout', 'settings' => 'et_divi[footer_bg]', ) ) ); $wp_customize->add_setting( 'et_divi[widget_header_font_size]', array( 'default' => absint( et_get_option( 'body_header_size', '30' ) ) * .6, 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[widget_header_font_size]', array( 'label' => esc_html__( 'Header Text Size', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 72, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'et_divi[widget_header_font_style]', array( 'default' => et_get_option( 'widget_header_font_style', '' ), '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[widget_header_font_style]', array( 'label' => esc_html__( 'Header Font Style', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[widget_body_font_size]', array( 'default' => et_get_option( 'body_font_size', '14' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[widget_body_font_size]', array( 'label' => esc_html__( 'Body/Link Text Size', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 32, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'et_divi[widget_body_line_height]', array( 'default' => '1.7', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[widget_body_line_height]', array( 'label' => esc_html__( 'Body/Link Line Height', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'type' => 'range', 'input_attrs' => array( 'min' => 0.8, 'max' => 3, 'step' => 0.1, ), ) ) ); $wp_customize->add_setting( 'et_divi[widget_body_font_style]', array( 'default' => et_get_option( 'footer_widget_body_font_style', '' ), '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[widget_body_font_style]', array( 'label' => esc_html__( 'Body Font Style', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[footer_widget_text_color]', array( 'default' => '#fff', '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[footer_widget_text_color]', array( 'label' => esc_html__( 'Widget Text Color', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'settings' => 'et_divi[footer_widget_text_color]', ) ) ); $wp_customize->add_setting( 'et_divi[footer_widget_link_color]', array( 'default' => '#fff', '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[footer_widget_link_color]', array( 'label' => esc_html__( 'Widget Link Color', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'settings' => 'et_divi[footer_widget_link_color]', ) ) ); $wp_customize->add_setting( 'et_divi[footer_widget_header_color]', array( 'default' => et_get_option( 'accent_color', '#2ea3f2' ), '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[footer_widget_header_color]', array( 'label' => esc_html__( 'Widget Header Color', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'settings' => 'et_divi[footer_widget_header_color]', ) ) ); $wp_customize->add_setting( 'et_divi[footer_widget_bullet_color]', array( 'default' => et_get_option( 'accent_color', '#2ea3f2' ), '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[footer_widget_bullet_color]', array( 'label' => esc_html__( 'Widget Bullet Color', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'settings' => 'et_divi[footer_widget_bullet_color]', ) ) ); /* Footer Menu */ $wp_customize->add_setting( 'et_divi[footer_menu_background_color]', array( 'default' => 'rgba(255,255,255,0.05)', '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[footer_menu_background_color]', array( 'label' => esc_html__( 'Footer Menu Background Color', 'Divi' ), 'section' => 'et_divi_footer_menu', 'settings' => 'et_divi[footer_menu_background_color]', ) ) ); $wp_customize->add_setting( 'et_divi[footer_menu_text_color]', array( 'default' => '#bbbbbb', '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[footer_menu_text_color]', array( 'label' => esc_html__( 'Footer Menu Text Color', 'Divi' ), 'section' => 'et_divi_footer_menu', 'settings' => 'et_divi[footer_menu_text_color]', ) ) ); $wp_customize->add_setting( 'et_divi[footer_menu_active_link_color]', array( 'default' => et_get_option( 'accent_color', '#2ea3f2' ), '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[footer_menu_active_link_color]', array( 'label' => esc_html__( 'Footer Menu Active Link Color', 'Divi' ), 'section' => 'et_divi_footer_menu', 'settings' => 'et_divi[footer_menu_active_link_color]', ) ) ); $wp_customize->add_setting( 'et_divi[footer_menu_letter_spacing]', array( 'default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[footer_menu_letter_spacing]', array( 'label' => esc_html__( 'Letter Spacing', 'Divi' ), 'section' => 'et_divi_footer_menu', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 20, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'et_divi[footer_menu_font_style]', array( 'default' => et_get_option( 'footer_footer_menu_font_style', '' ), '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[footer_menu_font_style]', array( 'label' => esc_html__( 'Font Style', 'Divi' ), 'section' => 'et_divi_footer_menu', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[footer_menu_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[footer_menu_font_size]', array( 'label' => esc_html__( 'Font Size', 'Divi' ), 'section' => 'et_divi_footer_menu', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 32, 'step' => 1, ), ) ) ); /* Bottom Bar */ $wp_customize->add_setting( 'et_divi[bottom_bar_background_color]', array( 'default' => 'rgba(0,0,0,0.32)', '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[bottom_bar_background_color]', array( 'label' => esc_html__( 'Background Color', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'settings' => 'et_divi[bottom_bar_background_color]', ) ) ); $wp_customize->add_setting( 'et_divi[bottom_bar_text_color]', array( 'default' => '#666666', '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[bottom_bar_text_color]', array( 'label' => esc_html__( 'Text Color', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'settings' => 'et_divi[bottom_bar_text_color]', ) ) ); $wp_customize->add_setting( 'et_divi[bottom_bar_font_style]', array( 'default' => et_get_option( 'footer_bottom_bar_font_style', '' ), '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[bottom_bar_font_style]', array( 'label' => esc_html__( 'Font Style', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); $wp_customize->add_setting( 'et_divi[bottom_bar_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[bottom_bar_font_size]', array( 'label' => esc_html__( 'Font Size', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 32, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'et_divi[bottom_bar_social_icon_size]', array( 'default' => '24', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[bottom_bar_social_icon_size]', array( 'label' => esc_html__( 'Social Icon Size', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'type' => 'range', 'input_attrs' => array( 'min' => 10, 'max' => 32, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'et_divi[bottom_bar_social_icon_color]', array( 'default' => '#666666', '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[bottom_bar_social_icon_color]', array( 'label' => esc_html__( 'Social Icon Color', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'settings' => 'et_divi[bottom_bar_social_icon_color]', ) ) ); $wp_customize->add_setting( 'et_divi[disable_custom_footer_credits]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean', ) ); $wp_customize->add_control( 'et_divi[disable_custom_footer_credits]', array( 'label' => esc_html__( 'Disable Footer Credits', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[custom_footer_credits]', array( 'default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_html_input_text', ) ); $wp_customize->add_control( 'et_divi[custom_footer_credits]', array( 'label' => esc_html__( 'Edit Footer Credits', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'settings' => 'et_divi[custom_footer_credits]', 'type' => 'textarea', ) ); $wp_customize->add_setting( 'et_divi[all_buttons_font_size]', array( 'default' => ET_Global_Settings::get_value( 'all_buttons_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[all_buttons_font_size]', array( 'label' => esc_html__( 'Text Size', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'range', 'input_attrs' => array( 'min' => 12, 'max' => 30, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_text_color]', array( 'default' => '#ffffff', '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[all_buttons_text_color]', array( 'label' => esc_html__( 'Text Color', 'Divi' ), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_text_color]', ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_bg_color]', array( 'default' => 'rgba(0,0,0,0)', '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[all_buttons_bg_color]', array( 'label' => esc_html__( 'Background Color', 'Divi' ), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_bg_color]', ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_border_width]', array( 'default' => ET_Global_Settings::get_value( 'all_buttons_border_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[all_buttons_border_width]', array( 'label' => esc_html__( 'Border Width', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_border_color]', array( 'default' => '#ffffff', '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[all_buttons_border_color]', array( 'label' => esc_html__( 'Border Color', 'Divi' ), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_border_color]', ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_border_radius]', array( 'default' => ET_Global_Settings::get_value( 'all_buttons_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[all_buttons_border_radius]', array( 'label' => esc_html__( 'Border Radius', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 50, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_spacing]', array( 'default' => ET_Global_Settings::get_value( 'all_buttons_spacing', 'default' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_spacing]', array( 'label' => esc_html__( 'Letter Spacing', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'range', 'input_attrs' => array( 'min' => -2, 'max' => 10, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_font_style]', array( '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[all_buttons_font_style]', array( 'label' => esc_html__( 'Button Font Style', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'font_style', 'choices' => et_divi_font_style_choices(), ) ) ); if ( ! isset( $et_one_font_languages[$site_domain] ) ) { $wp_customize->add_setting( 'et_divi[all_buttons_font]', array( 'default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices', ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[all_buttons_font]', array( 'label' => esc_html__( 'Buttons Font', 'Divi' ), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_font]', 'type' => 'select', 'choices' => $font_choices ) ) ); } $wp_customize->add_setting( 'et_divi[all_buttons_icon]', array( 'default' => 'yes', 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'et_sanitize_yes_no', ) ); $wp_customize->add_control( 'et_divi[all_buttons_icon]', array( 'label' => esc_html__( 'Add Button Icon', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'select', 'choices' => et_divi_yes_no_choices(), ) ); $wp_customize->add_setting( 'et_divi[all_buttons_selected_icon]', array( 'default' => '5', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_icon', ) ); $wp_customize->add_control( new ET_Divi_Icon_Picker_Option ( $wp_customize, 'et_divi[all_buttons_selected_icon]', array( 'label' => esc_html__( 'Select Icon', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'icon_picker', ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_icon_color]', array( 'default' => '#ffffff', '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[all_buttons_icon_color]', array( 'label' => esc_html__( 'Icon Color', 'Divi' ), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_icon_color]', ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_icon_placement]', array( 'default' => 'right', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_left_right', ) ); $wp_customize->add_control( 'et_divi[all_buttons_icon_placement]', array( 'label' => esc_html__( 'Icon Placement', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'select', 'choices' => et_divi_left_right_choices(), ) ); $wp_customize->add_setting( 'et_divi[all_buttons_icon_hover]', array( 'default' => 'yes', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_yes_no', ) ); $wp_customize->add_control( 'et_divi[all_buttons_icon_hover]', array( 'label' => esc_html__( 'Only Show Icon on Hover', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'select', 'choices' => et_divi_yes_no_choices(), ) ); $wp_customize->add_setting( 'et_divi[all_buttons_text_color_hover]', array( 'default' => '#ffffff', '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[all_buttons_text_color_hover]', array( 'label' => esc_html__( 'Text Color', 'Divi' ), 'section' => 'et_divi_buttons_hover', 'settings' => 'et_divi[all_buttons_text_color_hover]', ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_bg_color_hover]', array( 'default' => 'rgba(255,255,255,0.2)', '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[all_buttons_bg_color_hover]', array( 'label' => esc_html__( 'Background Color', 'Divi' ), 'section' => 'et_divi_buttons_hover', 'settings' => 'et_divi[all_buttons_bg_color_hover]', ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_border_color_hover]', array( 'default' => 'rgba(0,0,0,0)', '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[all_buttons_border_color_hover]', array( 'label' => esc_html__( 'Border Color', 'Divi' ), 'section' => 'et_divi_buttons_hover', 'settings' => 'et_divi[all_buttons_border_color_hover]', ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_border_radius_hover]', array( 'default' => ET_Global_Settings::get_value( 'all_buttons_border_radius_hover', '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[all_buttons_border_radius_hover]', array( 'label' => esc_html__( 'Border Radius', 'Divi' ), 'section' => 'et_divi_buttons_hover', 'type' => 'range', 'input_attrs' => array( 'min' => 0, 'max' => 50, 'step' => 1 ), ) ) ); $wp_customize->add_setting( 'et_divi[all_buttons_spacing_hover]', array( 'default' => ET_Global_Settings::get_value( 'all_buttons_spacing_hover', 'default' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_spacing_hover]', array( 'label' => esc_html__( 'Letter Spacing', 'Divi' ), 'section' => 'et_divi_buttons_hover', 'type' => 'range', 'input_attrs' => array( 'min' => -2, 'max' => 10, 'step' => 1 ), ) ) ); } endif; if ( ! function_exists( 'et_divi_customizer_module_settings' ) ) : 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' ), // default color should be theme's accent color '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-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' ), // 'description' => '', ) ); // 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' ), // 'description' => '', ) ); // 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' => 'et_sanitize_alpha_color', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_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' => 'et_sanitize_alpha_color', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_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(), ) ) ); } endif; /** * Add action hook to the footer in customizer preview. */ function et_customizer_preview_footer_action() { if ( is_customize_preview() ) { do_action( 'et_customizer_footer_preview' ); } } add_action( 'wp_footer', 'et_customizer_preview_footer_action' ); /** * Add container with social icons to the footer in customizer preview. * Used to get the icons and append them into the header when user enables the header social icons in customizer. */ function et_load_social_icons() { echo ' '; } add_action( 'et_customizer_footer_preview', 'et_load_social_icons' ); function et_divi_customize_preview_js() { $theme_version = et_get_theme_version(); wp_enqueue_script( 'divi-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), $theme_version, true ); wp_localize_script( 'divi-customizer', 'et_main_customizer_data', array( 'original_footer_credits' => et_get_original_footer_credits(), ) ); } add_action( 'customize_preview_init', 'et_divi_customize_preview_js' ); function et_divi_customize_preview_css() { $theme_version = et_get_theme_version(); wp_enqueue_style( 'divi-customizer-controls-styles', get_template_directory_uri() . '/css/theme-customizer-controls-styles.css', array(), $theme_version ); wp_enqueue_script( 'divi-customizer-controls-js', get_template_directory_uri() . '/js/theme-customizer-controls.js', array( 'jquery' ), $theme_version, true ); wp_localize_script( 'divi-customizer-controls-js', 'et_divi_customizer_data', array( 'is_old_wp' => et_pb_is_wp_old_version() ? 'old' : 'new', 'color_palette' => implode( '|', et_pb_get_default_color_palette() ), ) ); } add_action( 'customize_controls_enqueue_scripts', 'et_divi_customize_preview_css' ); /** * Modifying builder options based on saved Divi values * @param array current builder options values * @return array modified builder options values */ function et_divi_builder_options( $options ) { $options['all_buttons_icon'] = et_get_option( 'all_buttons_icon', 'yes' ); return $options; } add_filter( 'et_builder_options', 'et_divi_builder_options' ); /** * Add custom customizer control * Check for WP_Customizer_Control existence before adding custom control because WP_Customize_Control is loaded on customizer page only * * @see _wp_customize_include() */ if ( class_exists( 'WP_Customize_Control' ) ) { /** * Font style control for Customizer */ class ET_Divi_Font_Style_Option extends WP_Customize_Control { public $type = 'font_style'; public function render_content() { ?> value() ); if ( empty( $this->choices ) ) return; foreach ( $this->choices as $value => $label ) : $checked_class = in_array( $value, $current_values ) ? ' et_font_style_checked' : ''; ?> /> input_attrs(); ?> value="value() ); ?>" link(); ?> /> tags */ class ET_Divi_Select_Option extends WP_Customize_Control { public $type = 'select'; public function render_content() { ?> statuses = array( '' => esc_html__( 'Default', 'Divi' ) ); parent::__construct( $manager, $id, $args ); // Printed saved value should always be in lowercase add_filter( "customize_sanitize_js_{$id}", array( $this, 'sanitize_saved_value' ) ); } public function enqueue() { wp_enqueue_script( 'wp-color-picker-alpha' ); wp_enqueue_style( 'wp-color-picker' ); } public function to_json() { parent::to_json(); $this->json['statuses'] = $this->statuses; $this->json['defaultValue'] = $this->setting->default; } public function render_content() {} public function content_template() { ?> <# var defaultValue = ''; if ( data.defaultValue ) { if ( '#' !== data.defaultValue.substring( 0, 1 ) && 'rgba' !== data.defaultValue.substring( 0, 4 ) ) { defaultValue = '#' + data.defaultValue; } else { defaultValue = data.defaultValue; } defaultValue = ' data-default-color=' + defaultValue; // Quotes added automatically. } #> forced_inline = $forced_inline; if ( ! $styles_manager->forced_inline && $styles_manager->has_file() ) { // Static resource has already been created. No need to continue here. return; } $css_output = array(); // Detect legacy settings $detect_legacy_secondary_nav_color = et_get_option( 'secondary_nav_text_color', 'Light' ); $detect_legacy_primary_nav_color = et_get_option( 'primary_nav_text_color', 'Dark' ); if ( $detect_legacy_primary_nav_color == 'Light' ) { $legacy_primary_nav_color = '#ffffff'; } else { $legacy_primary_nav_color = 'rgba(0,0,0,0.6)'; } if ( $detect_legacy_secondary_nav_color == 'Light' ) { $legacy_secondary_nav_color = '#ffffff'; } else { $legacy_secondary_nav_color = 'rgba(0,0,0,0.7)'; } $body_font_size = absint( et_get_option( 'body_font_size', '14' ) ); $body_font_height = floatval( et_get_option( 'body_font_height', '1.7' ) ); $body_header_size = absint( et_get_option( 'body_header_size', '30' ) ); $body_header_style = et_get_option( 'body_header_style', '', '', true ); $body_header_spacing = intval( et_get_option( 'body_header_spacing', '0' ) ); $body_header_height = floatval( et_get_option( 'body_header_height', '1' ) ); $body_font_color = et_get_option( 'font_color', '#666666' ); $body_header_color = et_get_option( 'header_color', '#666666' ); $accent_color = et_get_option( 'accent_color', '#2ea3f2' ); $link_color = et_get_option( 'link_color', $accent_color ); $content_width = absint( et_get_option( 'content_width', '1080' ) ); $large_content_width = intval ( $content_width * 1.25 ); $use_sidebar_width = et_get_option( 'use_sidebar_width', false ); $sidebar_width = intval( et_get_option( 'sidebar_width', 21 ) ); $section_padding = absint( et_get_option( 'section_padding', '4' ) ); $row_padding = absint( et_get_option( 'row_padding', '2' ) ); $tablet_header_font_size = absint( et_get_option( 'tablet_header_font_size', '30' ) ); $tablet_body_font_size = absint( et_get_option( 'tablet_body_font_size', '14' ) ); $tablet_section_height = absint( et_get_option( 'tablet_section_height', '50' ) ); $tablet_row_height = absint( et_get_option( 'tablet_row_height', '30' ) ); $phone_header_font_size = absint( et_get_option( 'phone_header_font_size', $tablet_header_font_size ) ); $phone_body_font_size = absint( et_get_option( 'phone_body_font_size', $tablet_body_font_size ) ); $phone_section_height = absint( et_get_option( 'phone_section_height', $tablet_section_height ) ); $phone_row_height = absint( et_get_option( 'phone_row_height', $tablet_row_height ) ); $header_style = et_get_option( 'header_style', 'left' ); $menu_height = absint( et_get_option( 'menu_height', '66' ) ); $logo_height = absint( et_get_option( 'logo_height', '54' ) ); $menu_margin_top = absint( et_get_option( 'menu_margin_top', '0' ) ); $menu_link = et_get_option( 'menu_link', $legacy_primary_nav_color ); $menu_link_active = et_get_option( 'menu_link_active', '#2ea3f2' ); $vertical_nav = et_get_option( 'vertical_nav', false ); $hide_primary_logo = et_get_option( 'hide_primary_logo', 'false' ); $hide_fixed_logo = et_get_option( 'hide_fixed_logo', 'false' ); $default_primary_nav_font_size = 14; $primary_nav_font_size = absint( et_get_option( 'primary_nav_font_size', $default_primary_nav_font_size ) ); $primary_nav_font_spacing = intval( et_get_option( 'primary_nav_font_spacing', '0' ) ); $primary_nav_bg = et_get_option( 'primary_nav_bg', '#ffffff' ); $primary_nav_font_style = et_get_option( 'primary_nav_font_style', '', '', true ); $primary_nav_dropdown_bg = et_get_option( 'primary_nav_dropdown_bg', $primary_nav_bg ); $primary_nav_dropdown_link_color = et_get_option( 'primary_nav_dropdown_link_color', $menu_link ); $primary_nav_dropdown_line_color = et_get_option( 'primary_nav_dropdown_line_color', $accent_color ); $mobile_menu_link = et_get_option( 'mobile_menu_link', $menu_link ); $mobile_primary_nav_bg = et_get_option( 'mobile_primary_nav_bg', $primary_nav_bg ); $secondary_nav_font_size = absint( et_get_option( 'secondary_nav_font_size', '12' ) ); $secondary_nav_font_spacing = intval( et_get_option( 'secondary_nav_font_spacing', '0' ) ); $secondary_nav_font_style = et_get_option( 'secondary_nav_font_style', '', '', true ); $secondary_nav_text_color_new = et_get_option( 'secondary_nav_text_color_new', $legacy_secondary_nav_color ); $secondary_nav_bg = et_get_option( 'secondary_nav_bg', et_get_option( 'accent_color', '#2ea3f2' ) ); $secondary_nav_dropdown_bg = et_get_option( 'secondary_nav_dropdown_bg', $secondary_nav_bg ); $secondary_nav_dropdown_link_color = et_get_option( 'secondary_nav_dropdown_link_color', $secondary_nav_text_color_new ); $fixed_primary_nav_font_size = absint( et_get_option( 'fixed_primary_nav_font_size', $primary_nav_font_size ) ); $fixed_primary_nav_bg = et_get_option( 'fixed_primary_nav_bg', $primary_nav_bg ); $fixed_secondary_nav_bg = et_get_option( 'fixed_secondary_nav_bg', $secondary_nav_bg ); $fixed_menu_height = absint( et_get_option( 'minimized_menu_height', '40' ) ); $fixed_menu_link = et_get_option( 'fixed_menu_link', $menu_link ); $fixed_menu_link_active = et_get_option( 'fixed_menu_link_active', $menu_link_active ); $fixed_secondary_menu_link = et_get_option( 'fixed_secondary_menu_link', $secondary_nav_text_color_new ); $footer_bg = et_get_option( 'footer_bg', '#222222' ); $footer_widget_link_color = et_get_option( 'footer_widget_link_color', '#fff' ); $footer_widget_text_color = et_get_option( 'footer_widget_text_color', '#fff' ); $footer_widget_header_color = et_get_option( 'footer_widget_header_color', $accent_color ); $footer_widget_bullet_color = et_get_option( 'footer_widget_bullet_color', $accent_color ); $widget_header_font_size = intval( et_get_option( 'widget_header_font_size', $body_header_size * .6 ) ); $widget_body_font_size = absint( et_get_option( 'widget_body_font_size', $body_font_size ) ); $widget_body_line_height = floatval( et_get_option( 'widget_body_line_height', '1.7' ) ); $button_text_size = absint( et_get_option( 'all_buttons_font_size', '20' ) ); $button_text_color = et_get_option( 'all_buttons_text_color', '#ffffff' ); $button_bg_color = et_get_option( 'all_buttons_bg_color', 'rgba(0,0,0,0)' ); $button_border_width = absint( et_get_option( 'all_buttons_border_width', '2' ) ); $button_border_color = et_get_option( 'all_buttons_border_color', '#ffffff' ); $button_border_radius = absint( et_get_option( 'all_buttons_border_radius', '3' ) ); $button_text_style = et_get_option( 'all_buttons_font_style', '', '', true ); $button_icon = et_get_option( 'all_buttons_selected_icon', '5' ); $button_spacing = intval( et_get_option( 'all_buttons_spacing', '0' ) ); $button_icon_color = et_get_option( 'all_buttons_icon_color', '#ffffff' ); $button_text_color_hover = et_get_option( 'all_buttons_text_color_hover', '#ffffff' ); $button_bg_color_hover = et_get_option( 'all_buttons_bg_color_hover', 'rgba(255,255,255,0.2)' ); $button_border_color_hover = et_get_option( 'all_buttons_border_color_hover', 'rgba(0,0,0,0)' ); $button_border_radius_hover = absint( et_get_option( 'all_buttons_border_radius_hover', '3' ) ); $button_spacing_hover = intval( et_get_option( 'all_buttons_spacing_hover', '0' ) ); $button_icon_size = 1.6 * intval( $button_text_size ); $slide_nav_show_top_bar = et_get_option( 'slide_nav_show_top_bar', true ); $slide_nav_bg = et_get_option( 'slide_nav_bg', $accent_color ); $slide_nav_links_color = et_get_option( 'slide_nav_links_color', '#ffffff' ); $slide_nav_links_color_active = et_get_option( 'slide_nav_links_color_active', '#ffffff' ); $slide_nav_top_color = et_get_option( 'slide_nav_top_color', 'rgba(255,255,255,0.6)' ); $slide_nav_search = et_get_option( 'slide_nav_search', 'rgba(255,255,255,0.6)' ); $slide_nav_search_bg = et_get_option( 'slide_nav_search_bg', 'rgba(0,0,0,0.2)' ); $slide_nav_width = intval( et_get_option( 'slide_nav_width', '320' ) ); $slide_nav_font_style = et_get_option( 'slide_nav_font_style', '', '', true ); $slide_nav_font_size = intval( et_get_option( 'slide_nav_font_size', '14' ) ); $slide_nav_top_font_size = intval( et_get_option( 'slide_nav_top_font_size', '14' ) ); $slide_nav_font_spacing = et_get_option( 'slide_nav_font_spacing', '0' ); $fullscreen_nav_font_size = intval( et_get_option( 'fullscreen_nav_font_size', '30' ) ); $fullscreen_nav_top_font_size = intval( et_get_option( 'fullscreen_nav_top_font_size', '18' ) ); // use different selector for the styles applied directly to body tag while in Visual Builder. Otherwise unwanted styles applied to the Builder interface. $body_selector = empty( $_GET['et_fb'] ) ? 'body' : 'body .et_fb_preview_container'; /* ==================================================== * --------->>> BEGIN THEME CUSTOMIZER CSS <<<--------- * ==================================================== */ ob_start(); if ( 14 !== $body_font_size ) { ?> , .et_pb_column_1_2 .et_quote_content blockquote cite, .et_pb_column_1_2 .et_link_content a.et_link_main_url, .et_pb_column_1_3 .et_quote_content blockquote cite, .et_pb_column_3_8 .et_quote_content blockquote cite, .et_pb_column_1_4 .et_quote_content blockquote cite, .et_pb_blog_grid .et_quote_content blockquote cite, .et_pb_column_1_3 .et_link_content a.et_link_main_url, .et_pb_column_3_8 .et_link_content a.et_link_main_url, .et_pb_column_1_4 .et_link_content a.et_link_main_url, .et_pb_blog_grid .et_link_content a.et_link_main_url, body .et_pb_bg_layout_light .et_pb_post p, body .et_pb_bg_layout_dark .et_pb_post p { font-size: px; } .et_pb_slide_content, .et_pb_best_value { font-size: px; } { color: ; } h1, h2, h3, h4, h5, h6 { color: ; } { line-height: em; } .woocommerce #respond input#submit, .woocommerce-page #respond input#submit, .woocommerce #content input.button, .woocommerce-page #content input.button, .woocommerce-message, .woocommerce-error, .woocommerce-info { background: !important; } #et_search_icon:hover, .mobile_menu_bar:before, .mobile_menu_bar:after, .et_toggle_slide_menu:after, .et-social-icon a:hover, .et_pb_sum, .et_pb_pricing li a, .et_pb_pricing_table_button, .et_overlay:before, .entry-summary p.price ins, .woocommerce div.product span.price, .woocommerce-page div.product span.price, .woocommerce #content div.product span.price, .woocommerce-page #content div.product span.price, .woocommerce div.product p.price, .woocommerce-page div.product p.price, .woocommerce #content div.product p.price, .woocommerce-page #content div.product p.price, .et_pb_member_social_links a:hover, .woocommerce .star-rating span:before, .woocommerce-page .star-rating span:before, .et_pb_widget li a:hover, .et_pb_filterable_portfolio .et_pb_portfolio_filters li a.active, .et_pb_filterable_portfolio .et_pb_portofolio_pagination ul li a.active, .et_pb_gallery .et_pb_gallery_pagination ul li a.active, .wp-pagenavi span.current, .wp-pagenavi a:hover, .nav-single a, .posted_in a { color: ; } .et_pb_contact_submit, .et_password_protected_form .et_submit_button, .et_pb_bg_layout_light .et_pb_newsletter_button, .comment-reply-link, .form-submit .et_pb_button, .et_pb_bg_layout_light .et_pb_promo_button, .et_pb_bg_layout_light .et_pb_more_button, .woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt, .woocommerce a.button, .woocommerce-page a.button, .woocommerce button.button, .woocommerce-page button.button, .woocommerce input.button, .woocommerce-page input.button, .et_pb_contact p input[type="checkbox"]:checked + label i:before, .et_pb_bg_layout_light.et_pb_module.et_pb_button { color: ; } .footer-widget h4 { color: ; } .et-search-form, .nav li ul, .et_mobile_menu, .footer-widget li:before, .et_pb_pricing li:before, blockquote { border-color: ; } .et_pb_counter_amount, .et_pb_featured_table .et_pb_pricing_heading, .et_quote_content, .et_link_content, .et_audio_content, .et_pb_post_slider.et_pb_bg_layout_dark, .et_slide_in_menu_container, .et_pb_contact p input[type="radio"]:checked + label i:before { background-color: ; } .container, .et_pb_row, .et_pb_slider .et_pb_container, .et_pb_fullwidth_section .et_pb_title_container, .et_pb_fullwidth_section .et_pb_title_featured_container, .et_pb_fullwidth_header:not(.et_pb_fullscreen) .et_pb_fullwidth_header_container { max-width: px; } .et_boxed_layout #page-container, .et_fixed_nav.et_boxed_layout #page-container #top-header, .et_fixed_nav.et_boxed_layout #page-container #main-header, .et_boxed_layout #page-container .container, .et_boxed_layout #page-container .et_pb_row { max-width: px; } a { color: ; } #main-header, #main-header .nav li ul, .et-search-form, #main-header .et_mobile_menu { background-color: ; } #main-header .nav li ul { background-color: ; } .nav li ul { border-color: ; } #top-header, #et-secondary-nav li ul { background-color: ; } #et-secondary-nav li ul { background-color: ; } #top-header, #top-header a { color: ; } #et-secondary-nav li ul a { color: ; } .et_header_style_centered .mobile_nav .select_page, .et_header_style_split .mobile_nav .select_page, .et_nav_text_color_light #top-menu > li > a, .et_nav_text_color_dark #top-menu > li > a, #top-menu a, .et_mobile_menu li a, .et_nav_text_color_light .et_mobile_menu li a, .et_nav_text_color_dark .et_mobile_menu li a, #et_search_icon:before, .et_search_form_container input, span.et_close_search_field:after, #et-top-navigation .et-cart-info { color: ; } .et_search_form_container input::-moz-placeholder { color: ; } .et_search_form_container input::-webkit-input-placeholder { color: ; } .et_search_form_container input:-ms-input-placeholder { color: ; } #main-header .nav li ul a { color: ; } #top-header, #top-header a, #et-secondary-nav li li a, #top-header .et-social-icon a:before { font-size: px; letter-spacing: px; } #top-menu li a { font-size: px; } body.et_vertical_nav .container.et_search_form_container .et-search-form input { font-size: px !important; } #top-menu li a, .et_search_form_container input { letter-spacing: px; } .et_search_form_container input::-moz-placeholder { letter-spacing: px; } .et_search_form_container input::-webkit-input-placeholder { letter-spacing: px; } .et_search_form_container input:-ms-input-placeholder { letter-spacing: px; } #top-menu li.current-menu-ancestor > a, #top-menu li.current-menu-item > a, .et_color_scheme_red #top-menu li.current-menu-ancestor > a, .et_color_scheme_red #top-menu li.current-menu-item > a, .et_color_scheme_pink #top-menu li.current-menu-ancestor > a, .et_color_scheme_pink #top-menu li.current-menu-item > a, .et_color_scheme_orange #top-menu li.current-menu-ancestor > a, .et_color_scheme_orange #top-menu li.current-menu-item > a, .et_color_scheme_green #top-menu li.current-menu-ancestor > a, .et_color_scheme_green #top-menu li.current-menu-item > a { color: ; } #main-footer { background-color: ; } #footer-widgets .footer-widget a, #footer-widgets .footer-widget li a, #footer-widgets .footer-widget li a:hover { color: ; } .footer-widget { color: ; } #main-footer .footer-widget h4 { color: ; } .footer-widget li:before { border-color: ; } .footer-widget, .footer-widget li, .footer-widget li a, #footer-info { font-size: px; } 'widget_header_font_style', 'type' => 'font-style', 'default' => '', 'selector' => '.footer-widget h4', ), array( 'key' => 'widget_body_font_style', 'type' => 'font-style', 'default' => '', 'selector' => '.footer-widget .et_pb_widget div, .footer-widget .et_pb_widget ul, .footer-widget .et_pb_widget ol, .footer-widget .et_pb_widget label', ), array( 'key' => 'widget_body_line_height', 'type' => 'line-height', 'default' => '', 'selector' => '.footer-widget .et_pb_widget div, .footer-widget .et_pb_widget ul, .footer-widget .et_pb_widget ol, .footer-widget .et_pb_widget label', ), ) ); /* Footer widget bullet fix */ if ( 1.7 !== $widget_body_line_height || 14 !== $widget_body_font_size ) { // line_height (em) * font_size (px) = line height in px $widget_body_line_height_px = floatval( $widget_body_line_height ) * intval( $widget_body_font_size ); // ( line height in px / 2 ) - half of bullet diameter $footer_widget_bullet_top = ( $widget_body_line_height_px / 2 ) - 3; printf( "#footer-widgets .footer-widget li:before { top: %spx; }", esc_html( $footer_widget_bullet_top ) ); } /* Footer Menu */ et_pb_print_styles_css( array( array( 'key' => 'footer_menu_background_color', 'type' => 'background-color', 'default' => 'rgba(255,255,255,0.05)', 'selector' => '#et-footer-nav' ), array( 'key' => 'footer_menu_text_color', 'type' => 'color', 'default' => '#bbbbbb', 'selector' => '.bottom-nav, .bottom-nav a, .bottom-nav li.current-menu-item a' ), array( 'key' => 'footer_menu_active_link_color', 'type' => 'color', 'default' => '#bbbbbb', 'selector' => '#et-footer-nav .bottom-nav li.current-menu-item a' ), array( 'key' => 'footer_menu_letter_spacing', 'type' => 'letter-spacing', 'default' => 0, 'selector' => '.bottom-nav' ), array( 'key' => 'footer_menu_font_style', 'type' => 'font-style', 'default' => '', 'selector' => '.bottom-nav a' ), array( 'key' => 'footer_menu_font_size', 'type' => 'font-size', 'default' => 14, 'selector' => '.bottom-nav, .bottom-nav a' ), ) ); /* Bottom Bar */ et_pb_print_styles_css( array( array( 'key' => 'bottom_bar_background_color', 'type' => 'background-color', 'default' => 'rgba(0,0,0,0.32)', 'selector' => '#footer-bottom' ), array( 'key' => 'bottom_bar_text_color', 'type' => 'color', 'default' => '#666666', 'selector' => '#footer-info, #footer-info a' ), array( 'key' => 'bottom_bar_font_style', 'type' => 'font-style', 'default' => '', 'selector' => '#footer-info, #footer-info a' ), array( 'key' => 'bottom_bar_font_size', 'type' => 'font-size', 'default' => 14, 'selector' => '#footer-info' ), array( 'key' => 'bottom_bar_social_icon_size', 'type' => 'font-size', 'default' => 24, 'selector' => '#footer-bottom .et-social-icon a' ), array( 'key' => 'bottom_bar_social_icon_color', 'type' => 'color', 'default' => '#666666', 'selector' => '#footer-bottom .et-social-icon a' ), ) ); ?> #main-header { box-shadow: none; } .et-fixed-header#main-header { box-shadow: none !important; } body .et_pb_button, .woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt, .woocommerce a.button, .woocommerce-page a.button, .woocommerce button.button, .woocommerce-page button.button, .woocommerce input.button, .woocommerce-page input.button, .woocommerce #respond input#submit, .woocommerce-page #respond input#submit, .woocommerce #content input.button, .woocommerce-page #content input.button, .woocommerce-message a.button.wc-forward { font-size: px; background: ; border-width: px !important; border-color: ; border-radius: px; ; letter-spacing: px; } body.et_pb_button_helper_class .et_pb_button, body.et_pb_button_helper_class .et_pb_module.et_pb_button, .woocommerce.et_pb_button_helper_class a.button.alt, .woocommerce-page.et_pb_button_helper_class a.button.alt, .woocommerce.et_pb_button_helper_class button.button.alt, .woocommerce-page.et_pb_button_helper_class button.button.alt, .woocommerce.et_pb_button_helper_class input.button.alt, .woocommerce-page.et_pb_button_helper_class input.button.alt, .woocommerce.et_pb_button_helper_class #respond input#submit.alt, .woocommerce-page.et_pb_button_helper_class #respond input#submit.alt, .woocommerce.et_pb_button_helper_class #content input.button.alt, .woocommerce-page.et_pb_button_helper_class #content input.button.alt, .woocommerce.et_pb_button_helper_class a.button, .woocommerce-page.et_pb_button_helper_class a.button, .woocommerce.et_pb_button_helper_class button.button, .woocommerce-page.et_pb_button_helper_class button.button, .woocommerce.et_pb_button_helper_class input.button, .woocommerce-page.et_pb_button_helper_class input.button, .woocommerce.et_pb_button_helper_class #respond input#submit, .woocommerce-page.et_pb_button_helper_class #respond input#submit, .woocommerce.et_pb_button_helper_class #content input.button, .woocommerce-page.et_pb_button_helper_class #content input.button { color: ; } body .et_pb_button:after, .woocommerce a.button.alt:after, .woocommerce-page a.button.alt:after, .woocommerce button.button.alt:after, .woocommerce-page button.button.alt:after, .woocommerce input.button.alt:after, .woocommerce-page input.button.alt:after, .woocommerce #respond input#submit.alt:after, .woocommerce-page #respond input#submit.alt:after, .woocommerce #content input.button.alt:after, .woocommerce-page #content input.button.alt:after, .woocommerce a.button:after, .woocommerce-page a.button:after, .woocommerce button.button:after, .woocommerce-page button.button:after, .woocommerce input.button:after, .woocommerce-page input.button:after, .woocommerce #respond input#submit:after, .woocommerce-page #respond input#submit:after, .woocommerce #content input.button:after, .woocommerce-page #content input.button:after { content: ""; content: ''; font-size: px; font-size: px; color: ; } body .et_pb_button:hover, .woocommerce a.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce a.button:hover, .woocommerce-page a.button:hover, .woocommerce button.button:hover, .woocommerce-page button.button:hover, .woocommerce input.button:hover, .woocommerce-page input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce-page #respond input#submit:hover, .woocommerce #content input.button:hover, .woocommerce-page #content input.button:hover { color: !important; background: !important; border-color: !important; border-radius: px; letter-spacing: px; } h1, h2, h3, h4, h5, h6, .et_quote_content blockquote p, .et_pb_slide_description .et_pb_slide_title { letter-spacing: px; line-height: em; } 'post_meta_height', 'type' => 'line-height', 'default' => 1, 'selector' => $et_pb_print_selectors_post_meta, ), array( 'key' => 'post_meta_spacing', 'type' => 'letter-spacing', 'default' => 0, 'selector' => $et_pb_print_selectors_post_meta, ), array( 'key' => 'post_meta_style', 'type' => 'font-style', 'default' => '', 'selector' => $et_pb_print_selectors_post_meta, ), ) ); /* Blog Title */ $et_pb_print_selectors_post_header = "body.home-posts #left-area .et_pb_post h2, body.archive #left-area .et_pb_post h2, body.search #left-area .et_pb_post h2, body.single .et_post_meta_wrapper h1"; et_pb_print_styles_css( array( array( 'key' => 'post_header_height', 'type' => 'line-height', 'default' => 1, 'selector' => $et_pb_print_selectors_post_header, ), array( 'key' => 'post_header_spacing', 'type' => 'letter-spacing', 'default' => 0, 'selector' => $et_pb_print_selectors_post_header, ), array( 'key' => 'post_header_style', 'type' => 'font-style', 'default' => '', 'selector' => $et_pb_print_selectors_post_header, ), ) ); ?> .et_slide_menu_top { display: none; } body #page-container .et_slide_in_menu_container { background: ; } .et_slide_in_menu_container #mobile_menu_slide li span.et_mobile_menu_arrow:before, .et_slide_in_menu_container #mobile_menu_slide li a { color: ; } .et_slide_in_menu_container #mobile_menu_slide li.current-menu-item span.et_mobile_menu_arrow:before, .et_slide_in_menu_container #mobile_menu_slide li.current-menu-item a { color: ; } .et_slide_in_menu_container .et_slide_menu_top, .et_slide_in_menu_container .et_slide_menu_top a, .et_slide_in_menu_container .et_slide_menu_top input { color: ; } .et_slide_in_menu_container .et_slide_menu_top .et-search-form input, .et_slide_in_menu_container .et_slide_menu_top .et-search-form button#searchsubmit_header:before { color: ; } .et_slide_in_menu_container .et_slide_menu_top .et-search-form input::-webkit-input-placeholder { color: ; } .et_slide_in_menu_container .et_slide_menu_top .et-search-form input::-moz-placeholder { color: ; } .et_slide_in_menu_container .et_slide_menu_top .et-search-form input:-ms-input-placeholder { color: ; } .et_header_style_fullscreen .et_slide_in_menu_container span.mobile_menu_bar.et_toggle_fullscreen_menu:before { color: ; } .et_header_style_fullscreen .et_slide_menu_top .et-search-form { border-color: ; } .et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form input,.et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form button#searchsubmit_header:before { color: ; } .et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form input::-webkit-input-placeholder { color: ; } .et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form input::-moz-placeholder { color: ; } .et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form input:-ms-input-placeholder { color: ; } .et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form { background: !important; } .et_header_style_slide .et_slide_in_menu_container { width: px; } .et_slide_in_menu_container, .et_slide_in_menu_container .et-search-field, .et_slide_in_menu_container a, .et_slide_in_menu_container #et-info span { } .et_header_style_slide .et_slide_in_menu_container .et_mobile_menu li a { font-size: px; } .et_header_style_slide .et_slide_in_menu_container,.et_header_style_slide .et_slide_in_menu_container input.et-search-field,.et_header_style_slide .et_slide_in_menu_container a,.et_header_style_slide .et_slide_in_menu_container #et-info span,.et_header_style_slide .et_slide_menu_top ul.et-social-icons a,.et_header_style_slide .et_slide_menu_top span { font-size: px; } .et_header_style_slide .et_slide_in_menu_container .et-search-field::-moz-placeholder { font-size: px; } .et_header_style_slide .et_slide_in_menu_container .et-search-field::-webkit-input-placeholder { font-size: px; } .et_header_style_slide .et_slide_in_menu_container .et-search-field:-ms-input-placeholder { font-size: px; } .et_header_style_fullscreen .et_slide_in_menu_container .et_mobile_menu li a { font-size: px; } .et_slide_in_menu_container #mobile_menu_slide li.current-menu-item a, .et_slide_in_menu_container #mobile_menu_slide li a { padding: px 0; } .et_header_style_fullscreen .et_slide_in_menu_container,.et_header_style_fullscreen .et_slide_in_menu_container input.et-search-field,.et_header_style_fullscreen .et_slide_in_menu_container a,.et_header_style_fullscreen .et_slide_in_menu_container #et-info span,.et_header_style_fullscreen .et_slide_menu_top ul.et-social-icons a,.et_header_style_fullscreen .et_slide_menu_top span { font-size: px; } .et_header_style_fullscreen .et_slide_in_menu_container .et-search-field::-moz-placeholder { font-size: px; } .et_header_style_fullscreen .et_slide_in_menu_container .et-search-field::-webkit-input-placeholder { font-size: px; } .et_header_style_fullscreen .et_slide_in_menu_container .et-search-field:-ms-input-placeholder { font-size: px; } .et_slide_in_menu_container, .et_slide_in_menu_container .et-search-field { letter-spacing: px; } .et_slide_in_menu_container .et-search-field::-moz-placeholder { letter-spacing: px; } .et_slide_in_menu_container .et-search-field::-webkit-input-placeholder { letter-spacing: px; } .et_slide_in_menu_container .et-search-field:-ms-input-placeholder { letter-spacing: px; } @media only screen and ( min-width: 981px ) { .et_pb_section { padding: % 0; } .et_pb_section.et_pb_section_first { padding-top: inherit; } .et_pb_fullwidth_section { padding: 0; } .et_pb_row { padding: % 0; } .footer-widget h4 { font-size: px; } .et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation { padding: px 0 0 0; } .et_header_style_left #et-top-navigation nav > ul > li > a, .et_header_style_split #et-top-navigation nav > ul > li > a { padding-bottom: px; } .et_header_style_split .centered-inline-logo-wrap { width: px; margin: -px 0; } .et_header_style_split .centered-inline-logo-wrap #logo { max-height: px; } .et_pb_svg_logo.et_header_style_split .centered-inline-logo-wrap #logo { height: px; } .et_header_style_centered #top-menu > li > a { padding-bottom: px; } .et_header_style_slide #et-top-navigation, .et_header_style_fullscreen #et-top-navigation { padding: px 0 px 0 !important; } .et_header_style_centered #main-header .logo_container { height: px; } #logo { max-height: ; } .et_pb_svg_logo #logo { height: ; } .et_header_style_centered #logo { max-height: ; } .et_pb_svg_logo.et_header_style_centered #logo { height: ; } #main-header .logo_container { width: ; } .et_header_style_centered #main-header .logo_container, .et_header_style_split #main-header .logo_container { margin: 0 auto; } .et_vertical_nav #et-top-navigation { margin-top: ;} .et_header_style_centered.et_hide_primary_logo #main-header:not(.et-fixed-header) .logo_container, .et_header_style_centered.et_hide_fixed_logo #main-header.et-fixed-header .logo_container { height: px; } .et_header_style_left .et-fixed-header #et-top-navigation, .et_header_style_split .et-fixed-header #et-top-navigation { padding: px 0 0 0; } .et_header_style_left .et-fixed-header #et-top-navigation nav > ul > li > a, .et_header_style_split .et-fixed-header #et-top-navigation nav > ul > li > a { padding-bottom: px; } .et_header_style_centered header#main-header.et-fixed-header .logo_container { height: px; } .et_header_style_split .et-fixed-header .centered-inline-logo-wrap { width: px; margin: -px 0; } .et_header_style_split .et-fixed-header .centered-inline-logo-wrap #logo { max-height: px; } .et_pb_svg_logo.et_header_style_split .et-fixed-header .centered-inline-logo-wrap #logo { height: px; } .et_header_style_slide .et-fixed-header #et-top-navigation, .et_header_style_fullscreen .et-fixed-header #et-top-navigation { padding: px 0 px 0 !important; } .et_header_style_split .centered-inline-logo-wrap { width: auto; height: px; } .et_header_style_split .et-fixed-header .centered-inline-logo-wrap { width: auto; height: px; } .et_header_style_split .centered-inline-logo-wrap #logo, .et_header_style_split .et-fixed-header .centered-inline-logo-wrap #logo { height: auto; max-height: 100%; } .et-fixed-header#top-header, .et-fixed-header#top-header #et-secondary-nav li ul { background-color: ; } .et-fixed-header#main-header, .et-fixed-header#main-header .nav li ul, .et-fixed-header .et-search-form { background-color: ; } .et-fixed-header #top-menu li a { font-size: px; } .et-fixed-header #top-menu a, .et-fixed-header #et_search_icon:before, .et-fixed-header #et_top_search .et-search-form input, .et-fixed-header .et_search_form_container input, .et-fixed-header .et_close_search_field:after, .et-fixed-header #et-top-navigation .et-cart-info { color: !important; } .et-fixed-header .et_search_form_container input::-moz-placeholder { color: !important; } .et-fixed-header .et_search_form_container input::-webkit-input-placeholder { color: !important; } .et-fixed-header .et_search_form_container input:-ms-input-placeholder { color: !important; } .et-fixed-header #top-menu li.current-menu-ancestor > a, .et-fixed-header #top-menu li.current-menu-item > a { color: !important; } .et-fixed-header#top-header a { color: ; } 'post_meta_font_size', 'type' => 'font-size', 'default' => 14, 'selector' => $et_pb_print_selectors_post_meta, ), array( 'key' => 'post_header_font_size', 'type' => 'font-size-post-header', 'default' => 30, 'selector' => '', ), ) ); ?> } @media only screen and ( min-width: px) { .et_pb_row { padding: px 0; } .et_pb_section { padding: px 0; } .single.et_pb_pagebuilder_layout.et_full_width_page .et_post_meta_wrapper { padding-top: px; } .et_pb_section.et_pb_section_first { padding-top: inherit; } .et_pb_fullwidth_section { padding: 0; } } h1 { font-size: px; } h2, .product .related h2, .et_pb_column_1_2 .et_quote_content blockquote p { font-size: px; } h3 { font-size: px; } h4, .et_pb_circle_counter h3, .et_pb_number_counter h3, .et_pb_column_1_3 .et_pb_post h2, .et_pb_column_1_4 .et_pb_post h2, .et_pb_blog_grid h2, .et_pb_column_1_3 .et_quote_content blockquote p, .et_pb_column_3_8 .et_quote_content blockquote p, .et_pb_column_1_4 .et_quote_content blockquote p, .et_pb_blog_grid .et_quote_content blockquote p, .et_pb_column_1_3 .et_link_content h2, .et_pb_column_3_8 .et_link_content h2, .et_pb_column_1_4 .et_link_content h2, .et_pb_blog_grid .et_link_content h2, .et_pb_column_1_3 .et_audio_content h2, .et_pb_column_3_8 .et_audio_content h2, .et_pb_column_1_4 .et_audio_content h2, .et_pb_blog_grid .et_audio_content h2, .et_pb_column_3_8 .et_pb_audio_module_content h2, .et_pb_column_1_3 .et_pb_audio_module_content h2, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2 { font-size: px; } h5 { font-size: px; } h6 { font-size: px; } .et_pb_slide_description .et_pb_slide_title { font-size: px; } .woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2, .et_pb_column_1_4 .et_pb_audio_module_content h2 { font-size: px; } @media only screen and ( max-width: 980px ) { #main-header, #main-header .nav li ul, .et-search-form, #main-header .et_mobile_menu { background-color: ; } .et_header_style_centered .mobile_nav .select_page, .et_header_style_split .mobile_nav .select_page, .et_mobile_menu li a, .mobile_menu_bar:before, .et_nav_text_color_light #top-menu > li > a, .et_nav_text_color_dark #top-menu > li > a, #top-menu a, .et_mobile_menu li a, #et_search_icon:before, #et_top_search .et-search-form input, .et_search_form_container input, #et-top-navigation .et-cart-info { color: ; } .et_close_search_field:after { color: !important; } .et_search_form_container input::-moz-placeholder { color: ; } .et_search_form_container input::-webkit-input-placeholder { color: ; } .et_search_form_container input:-ms-input-placeholder { color: ; } , .et_pb_column_1_2 .et_quote_content blockquote cite, .et_pb_column_1_2 .et_link_content a.et_link_main_url, .et_pb_column_1_3 .et_quote_content blockquote cite, .et_pb_column_3_8 .et_quote_content blockquote cite, .et_pb_column_1_4 .et_quote_content blockquote cite, .et_pb_blog_grid .et_quote_content blockquote cite, .et_pb_column_1_3 .et_link_content a.et_link_main_url, .et_pb_column_3_8 .et_link_content a.et_link_main_url, .et_pb_column_1_4 .et_link_content a.et_link_main_url, .et_pb_blog_grid .et_link_content a.et_link_main_url { font-size: px; } .et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_content, .et_pb_best_value { font-size: px; } h1 { font-size: px; } h2, .product .related h2, .et_pb_column_1_2 .et_quote_content blockquote p { font-size: px; } h3 { font-size: px; } h4, .et_pb_circle_counter h3, .et_pb_number_counter h3, .et_pb_column_1_3 .et_pb_post h2, .et_pb_column_1_4 .et_pb_post h2, .et_pb_blog_grid h2, .et_pb_column_1_3 .et_quote_content blockquote p, .et_pb_column_3_8 .et_quote_content blockquote p, .et_pb_column_1_4 .et_quote_content blockquote p, .et_pb_blog_grid .et_quote_content blockquote p, .et_pb_column_1_3 .et_link_content h2, .et_pb_column_3_8 .et_link_content h2, .et_pb_column_1_4 .et_link_content h2, .et_pb_blog_grid .et_link_content h2, .et_pb_column_1_3 .et_audio_content h2, .et_pb_column_3_8 .et_audio_content h2, .et_pb_column_1_4 .et_audio_content h2, .et_pb_blog_grid .et_audio_content h2, .et_pb_column_3_8 .et_pb_audio_module_content h2, .et_pb_column_1_3 .et_pb_audio_module_content h2, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2 { font-size: px; } .et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_description .et_pb_slide_title { font-size: px; } .woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2, .et_pb_column_1_4 .et_pb_audio_module_content h2 { font-size: px; } .et_pb_section { padding: px 0; } .et_pb_section.et_pb_section_first { padding-top: inherit; } .et_pb_section.et_pb_fullwidth_section { padding: 0; } .et_pb_row, .et_pb_column .et_pb_row_inner { padding: px 0; } } @media only screen and ( max-width: 767px ) { , .et_pb_column_1_2 .et_quote_content blockquote cite, .et_pb_column_1_2 .et_link_content a.et_link_main_url, .et_pb_column_1_3 .et_quote_content blockquote cite, .et_pb_column_3_8 .et_quote_content blockquote cite, .et_pb_column_1_4 .et_quote_content blockquote cite, .et_pb_blog_grid .et_quote_content blockquote cite, .et_pb_column_1_3 .et_link_content a.et_link_main_url, .et_pb_column_3_8 .et_link_content a.et_link_main_url, .et_pb_column_1_4 .et_link_content a.et_link_main_url, .et_pb_blog_grid .et_link_content a.et_link_main_url { font-size: px; } .et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_content, .et_pb_best_value { font-size: px; } h1 { font-size: px; } h2, .product .related h2, .et_pb_column_1_2 .et_quote_content blockquote p { font-size: px; } h3 { font-size: px; } h4, .et_pb_circle_counter h3, .et_pb_number_counter h3, .et_pb_column_1_3 .et_pb_post h2, .et_pb_column_1_4 .et_pb_post h2, .et_pb_blog_grid h2, .et_pb_column_1_3 .et_quote_content blockquote p, .et_pb_column_3_8 .et_quote_content blockquote p, .et_pb_column_1_4 .et_quote_content blockquote p, .et_pb_blog_grid .et_quote_content blockquote p, .et_pb_column_1_3 .et_link_content h2, .et_pb_column_3_8 .et_link_content h2, .et_pb_column_1_4 .et_link_content h2, .et_pb_blog_grid .et_link_content h2, .et_pb_column_1_3 .et_audio_content h2, .et_pb_column_3_8 .et_audio_content h2, .et_pb_column_1_4 .et_audio_content h2, .et_pb_blog_grid .et_audio_content h2, .et_pb_column_3_8 .et_pb_audio_module_content h2, .et_pb_column_1_3 .et_pb_audio_module_content h2, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2 { font-size: px; } .et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_description .et_pb_slide_title { font-size: px; } .woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2, .et_pb_column_1_4 .et_pb_audio_module_content h2 { font-size: px; } .et_pb_section { padding: px 0; } .et_pb_section.et_pb_section_first { padding-top: inherit; } .et_pb_section.et_pb_fullwidth_section { padding: 0; } .et_pb_row, .et_pb_column .et_pb_row_inner { padding: px 0; } } >> /** * Filter Theme Customizer CSS output. * * @since 3.0.51 * * @param string $theme_customizer_css */ $css_output[] = apply_filters( 'et_divi_theme_customizer_css_output', ob_get_clean() ); // output responsive css styles for responsive preview in Frontend Builder if ( ! empty( $_GET['et_fb'] ) ) { ob_start(); ?> @media only screen and ( min-width: 981px ) { .et_fb_desktop_mode .et_pb_section { padding: % 0; } .et_fb_desktop_mode .et_pb_section.et_pb_section_first { padding-top: inherit; } .et_fb_desktop_mode .et_pb_fullwidth_section { padding: 0; } .et_fb_desktop_mode .et_pb_row { padding: % 0; } .et_fb_desktop_mode h1 { font-size: px; } .et_fb_desktop_mode h2, .et_fb_desktop_mode .product .related h2, .et_fb_desktop_mode .et_pb_column_1_2 .et_quote_content blockquote p { font-size: px; } .et_fb_desktop_mode h3 { font-size: px; } .et_fb_desktop_mode h4, .et_fb_desktop_mode .et_pb_circle_counter h3, .et_fb_desktop_mode .et_pb_number_counter h3, .et_fb_desktop_mode .et_pb_column_1_3 .et_pb_post h2, .et_fb_desktop_mode .et_pb_column_1_4 .et_pb_post h2, .et_fb_desktop_mode .et_pb_blog_grid h2, .et_fb_desktop_mode .et_pb_column_1_3 .et_quote_content blockquote p, .et_fb_desktop_mode .et_pb_column_3_8 .et_quote_content blockquote p, .et_fb_desktop_mode .et_pb_column_1_4 .et_quote_content blockquote p, .et_fb_desktop_mode .et_pb_blog_grid .et_quote_content blockquote p, .et_fb_desktop_mode .et_pb_column_1_3 .et_link_content h2, .et_fb_desktop_mode .et_pb_column_3_8 .et_link_content h2, .et_fb_desktop_mode .et_pb_column_1_4 .et_link_content h2, .et_fb_desktop_mode .et_pb_blog_grid .et_link_content h2, .et_fb_desktop_mode .et_pb_column_1_3 .et_audio_content h2, .et_fb_desktop_mode .et_pb_column_3_8 .et_audio_content h2, .et_fb_desktop_mode .et_pb_column_1_4 .et_audio_content h2, .et_fb_desktop_mode .et_pb_blog_grid .et_audio_content h2, .et_fb_desktop_mode .et_pb_column_3_8 .et_pb_audio_module_content h2, .et_fb_desktop_mode .et_pb_column_1_3 .et_pb_audio_module_content h2, .et_fb_desktop_mode .et_pb_gallery_grid .et_pb_gallery_item h3, .et_fb_desktop_mode .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_fb_desktop_mode .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2 { font-size: px; } .et_fb_desktop_mode h5 { font-size: px; } .et_fb_desktop_mode h6 { font-size: px; } .et_fb_desktop_mode .et_pb_slide_description .et_pb_slide_title { font-size: px; } .et_fb_desktop_mode .woocommerce ul.products li.product h3, .et_fb_desktop_mode .woocommerce-page ul.products li.product h3, .et_fb_desktop_mode .et_pb_gallery_grid .et_pb_gallery_item h3, .et_fb_desktop_mode .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_fb_desktop_mode .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2, .et_fb_desktop_mode .et_pb_column_1_4 .et_pb_audio_module_content h2 { font-size: px; } } @media only screen and ( min-width: px) { .et_fb_desktop_mode .et_pb_row { padding: px 0; } .et_fb_desktop_mode .et_pb_section { padding: px 0; } .et_fb_desktop_mode .single.et_pb_pagebuilder_layout.et_full_width_page .et_post_meta_wrapper { padding-top: px; } .et_fb_desktop_mode .et_pb_section.et_pb_section_first { padding-top: inherit; } .et_fb_desktop_mode .et_pb_fullwidth_section { padding: 0; } } .et_fb_preview_active.et_fb_preview_active--responsive_preview , .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_2 .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_2 .et_link_content a.et_link_main_url, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_3 .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_3_8 .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_4 .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_blog_grid .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_3 .et_link_content a.et_link_main_url, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_3_8 .et_link_content a.et_link_main_url, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_4 .et_link_content a.et_link_main_url, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_blog_grid .et_link_content a.et_link_main_url { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_content, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_best_value { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview h1 { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .product .related h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_2 .et_quote_content blockquote p { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview h3 { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview h4, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_circle_counter h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_number_counter h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_3 .et_pb_post h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_4 .et_pb_post h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_blog_grid h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_3 .et_quote_content blockquote p, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_3_8 .et_quote_content blockquote p, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_4 .et_quote_content blockquote p, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_blog_grid .et_quote_content blockquote p, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_3 .et_link_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_3_8 .et_link_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_4 .et_link_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_blog_grid .et_link_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_3 .et_audio_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_3_8 .et_audio_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_4 .et_audio_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_blog_grid .et_audio_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_3_8 .et_pb_audio_module_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_3 .et_pb_audio_module_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_gallery_grid .et_pb_gallery_item h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2 { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_description .et_pb_slide_title { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview .woocommerce ul.products li.product h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview .woocommerce-page ul.products li.product h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_gallery_grid .et_pb_gallery_item h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column_1_4 .et_pb_audio_module_content h2 { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_section { padding: px 0; } .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_section.et_pb_section_first { padding-top: inherit; } .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_section.et_pb_fullwidth_section { padding: 0; } .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_row, .et_fb_preview_active.et_fb_preview_active--responsive_preview .et_pb_column .et_pb_row_inner { padding: px 0; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview , .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_2 .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_2 .et_link_content a.et_link_main_url, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_3 .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_3_8 .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_4 .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_blog_grid .et_quote_content blockquote cite, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_3 .et_link_content a.et_link_main_url, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_3_8 .et_link_content a.et_link_main_url, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_4 .et_link_content a.et_link_main_url, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_blog_grid .et_link_content a.et_link_main_url { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_content, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_best_value { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview h1 { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .product .related h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_2 .et_quote_content blockquote p { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview h3 { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview h4, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_circle_counter h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_number_counter h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_3 .et_pb_post h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_4 .et_pb_post h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_blog_grid h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_3 .et_quote_content blockquote p, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_3_8 .et_quote_content blockquote p, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_4 .et_quote_content blockquote p, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_blog_grid .et_quote_content blockquote p, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_3 .et_link_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_3_8 .et_link_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_4 .et_link_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_blog_grid .et_link_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_3 .et_audio_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_3_8 .et_audio_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_4 .et_audio_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_blog_grid .et_audio_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_3_8 .et_pb_audio_module_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_3 .et_pb_audio_module_content h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_gallery_grid .et_pb_gallery_item h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2 { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_description h2.et_pb_slide_title { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .woocommerce ul.products li.product h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .woocommerce-page ul.products li.product h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_gallery_grid .et_pb_gallery_item h3, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column_1_4 .et_pb_audio_module_content h2 { font-size: px; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_section { padding: px 0; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_section.et_pb_section_first { padding-top: inherit; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_section.et_pb_fullwidth_section { padding: 0; } .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_row, .et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview .et_pb_column .et_pb_row_inner { padding: px 0; } >> BEGIN FONTS CSS <<<--------- * ========================================= */ ob_start(); if ( isset( $et_one_font_languages[$site_domain] ) ) { printf( '%s { font-family: %s; }', 'h1, h2, h3, h4, h5, h6, body, input, textarea, select', sanitize_text_field( $et_one_font_languages[$site_domain]['font_family'] ) ); } else if ( ! in_array( $et_gf_heading_font, array( '', 'none' ) ) || ! in_array( $et_gf_body_font, array( '', 'none' ) ) || ! in_array( $et_gf_buttons_font, array( '', 'none' ) ) || ! in_array( $et_gf_primary_nav_font, array( '', 'none' ) ) || ! in_array( $et_gf_secondary_nav_font, array( '', 'none' ) ) || ! in_array( $et_gf_slide_nav_font, array( '', 'none' ) ) ) { if ( ! in_array( $et_gf_heading_font, array( '', 'none' ) ) ) { ?> h1, h2, h3, h4, h5, h6 { } body, input, textarea, select { } .et_pb_button { } #main-header, #et-top-navigation { } #top-header .container{ } .et_slide_in_menu_container, .et_slide_in_menu_container .et-search-field{ } >> /** * Filter fonts CSS output. * * @since 3.0.51 * * @param string $css_output */ $css_output[] = apply_filters( 'et_divi_fonts_css_output', ob_get_clean() ); /** * use_sidebar_width might invalidate the use of sidebar_width. * It is placed outside other customizer style so live preview * can invalidate and revalidate it for smoother experience */ if ( $use_sidebar_width && 21 !== $sidebar_width && 19 <= $sidebar_width && 33 >= $sidebar_width ) { $content_width = 100 - $sidebar_width; $content_width_percentage = $content_width . '%'; $sidebar_width_percentage = $sidebar_width . '%'; $sidebar_width_css = sprintf( 'body #page-container #sidebar { width:%2$s; } body #page-container #left-area { width:%1$s; } .et_right_sidebar #main-content .container:before { right:%2$s !important; } .et_left_sidebar #main-content .container:before { left:%2$s !important; }', esc_html( $content_width_percentage ), esc_html( $sidebar_width_percentage ) ); /** * Filter sidebar width CSS output. * * @since 3.0.51 * * @param string $sidebar_width_css */ $css_output[] = apply_filters( 'et_divi_sidebar_width_css_output', $sidebar_width_css ); } /* ==================================================== * --------->>> BEGIN MODULE CUSTOMIZER CSS <<<-------- * ==================================================== */ ob_start(); /* Gallery */ et_pb_print_module_styles_css( 'et_pb_gallery', array( array( 'type' => 'color', 'key' => 'zoom_icon_color', 'selector' => '.et_pb_gallery_image .et_overlay:before', 'important' => true, ), array( 'type' => 'background-color', 'key' => 'hover_overlay_color', 'selector' => '.et_pb_gallery_image .et_overlay', ), array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_gallery_grid .et_pb_gallery_item .et_pb_gallery_title', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_gallery_grid .et_pb_gallery_item .et_pb_gallery_title', ), array( 'type' => 'font-size', 'key' => 'caption_font_size', 'selector' => '.et_pb_gallery .et_pb_gallery_item .et_pb_gallery_caption', ), array( 'type' => 'font-style', 'key' => 'caption_font_style', 'selector' => '.et_pb_gallery .et_pb_gallery_item .et_pb_gallery_caption', ), ) ); /* Blurb */ et_pb_print_module_styles_css( 'et_pb_blurb', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_blurb h4', ), ) ); /* Tabs */ et_pb_print_module_styles_css( 'et_pb_tabs', array( array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_tabs_controls li', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_tabs_controls li', ), array( 'type' => 'padding-tabs', 'key' => 'padding', 'selector' => '', ), ) ); /* Slider */ et_pb_print_module_styles_css( 'et_pb_slider', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_description .et_pb_slide_title', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_description .et_pb_slide_title', ), array( 'type' => 'font-size', 'key' => 'body_font_size', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_content', ), array( 'type' => 'font-style', 'key' => 'body_font_style', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_content', ), array( 'type' => 'padding-slider', 'key' => 'padding', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_description', ), ) ); /* Testimonial */ et_pb_print_module_styles_css( 'et_pb_testimonial', array( array( 'type' => 'border-radius', 'key' => 'portrait_border_radius', 'selector' => '.et_pb_testimonial_portrait, .et_pb_testimonial_portrait:before', ), array( 'type' => 'width', 'key' => 'portrait_width', 'selector' => '.et_pb_testimonial_portrait', ), array( 'type' => 'height', 'key' => 'portrait_height', 'selector' => '.et_pb_testimonial_portrait', ), array( 'type' => 'font-style', 'key' => 'author_name_font_style', 'selector' => '.et_pb_testimonial_author', ), array( 'type' => 'font-style', 'key' => 'author_details_font_style', 'selector' => 'p.et_pb_testimonial_meta', ), ) ); /* Pricing Table */ et_pb_print_module_styles_css( 'et_pb_pricing_tables', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_pricing_heading h2', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_pricing_heading h2', ), array( 'type' => 'font-size', 'key' => 'subheader_font_size', 'selector' => '.et_pb_best_value', ), array( 'type' => 'font-style', 'key' => 'subheader_font_style', 'selector' => '.et_pb_best_value', ), array( 'type' => 'font-size', 'key' => 'price_font_size', 'selector' => '.et_pb_sum', ), array( 'type' => 'font-style', 'key' => 'price_font_style', 'selector' => '.et_pb_sum', ), ) ); /* Call to Action */ et_pb_print_module_styles_css( 'et_pb_cta', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_promo h2', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_promo h2, .et_pb_promo h1', ), array( 'type' => 'padding-call-to-action', 'key' => 'custom_padding', 'selector' => '', 'important' => true, ), ) ); /* Audio */ et_pb_print_module_styles_css( 'et_pb_audio', array( array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_audio_module_content h2', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_audio_module_content h2', ), array( 'type' => 'font-size', 'key' => 'caption_font_size', 'selector' => '.et_pb_audio_module p', ), array( 'type' => 'font-style', 'key' => 'caption_font_style', 'selector' => '.et_pb_audio_module p', ), ) ); /* Email Optin */ et_pb_print_module_styles_css( 'et_pb_signup', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_subscribe h2', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_subscribe h2', ), array( 'type' => 'padding', 'key' => 'padding', 'selector' => '.et_pb_subscribe', ), ) ); /* Login */ et_pb_print_module_styles_css( 'et_pb_login', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_login h2', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_login h2', ), array( 'type' => 'padding-top-bottom', 'key' => 'custom_padding', 'selector' => '.et_pb_login', ), ) ); /* Portfolio */ et_pb_print_module_styles_css( 'et_pb_portfolio', array( array( 'type' => 'color', 'key' => 'zoom_icon_color', 'selector' => '.et_pb_portfolio .et_overlay:before, .et_pb_fullwidth_portfolio .et_overlay:before, .et_pb_portfolio_grid .et_overlay:before', 'important' => true, ), array( 'type' => 'background-color', 'key' => 'hover_overlay_color', 'selector' => '.et_pb_portfolio .et_overlay, .et_pb_fullwidth_portfolio .et_overlay, .et_pb_portfolio_grid .et_overlay', ), array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_portfolio .et_pb_portfolio_item h2, .et_pb_fullwidth_portfolio .et_pb_portfolio_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_portfolio .et_pb_portfolio_item h2, .et_pb_fullwidth_portfolio .et_pb_portfolio_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2', ), array( 'type' => 'font-size', 'key' => 'caption_font_size', 'selector' => '.et_pb_portfolio .et_pb_portfolio_item .post-meta, .et_pb_fullwidth_portfolio .et_pb_portfolio_item .post-meta, .et_pb_portfolio_grid .et_pb_portfolio_item .post-meta', ), array( 'type' => 'font-style', 'key' => 'caption_font_style', 'selector' => '.et_pb_portfolio .et_pb_portfolio_item .post-meta, .et_pb_fullwidth_portfolio .et_pb_portfolio_item .post-meta, .et_pb_portfolio_grid .et_pb_portfolio_item .post-meta', ), ) ); /* Filterable Portfolio */ et_pb_print_module_styles_css( 'et_pb_filterable_portfolio', array( array( 'type' => 'color', 'key' => 'zoom_icon_color', 'selector' => '.et_pb_filterable_portfolio .et_overlay:before', ), array( 'type' => 'background-color', 'key' => 'hover_overlay_color', 'selector' => '.et_pb_filterable_portfolio .et_overlay', ), array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item h2', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item h2', ), array( 'type' => 'font-size', 'key' => 'caption_font_size', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item .post-meta', ), array( 'type' => 'font-style', 'key' => 'caption_font_style', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item .post-meta', ), array( 'type' => 'font-size', 'key' => 'filter_font_size', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_filters li', ), array( 'type' => 'font-style', 'key' => 'filter_font_style', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_filters li', ), ) ); /* Bar Counter */ et_pb_print_module_styles_css( 'et_pb_counters', array( array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_counters .et_pb_counter_title', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_counters .et_pb_counter_title', ), array( 'type' => 'font-size', 'key' => 'percent_font_size', 'selector' => '.et_pb_counters .et_pb_counter_amount', ), array( 'type' => 'font-style', 'key' => 'percent_font_style', 'selector' => '.et_pb_counters .et_pb_counter_amount', ), array( 'type' => 'border-radius', 'key' => 'border_radius', 'selector' => '.et_pb_counters .et_pb_counter_amount, .et_pb_counters .et_pb_counter_container', ), array( 'type' => 'padding', 'key' => 'padding', 'selector' => '.et_pb_counter_amount', ), ) ); /* Circle Counter */ et_pb_print_module_styles_css( 'et_pb_circle_counter', array( array( 'type' => 'font-size', 'key' => 'number_font_size', 'selector' => '.et_pb_circle_counter .percent p', ), array( 'type' => 'font-style', 'key' => 'number_font_style', 'selector' => '.et_pb_circle_counter .percent p', ), array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_circle_counter h3', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_circle_counter h3', ), ) ); /* Number Counter */ et_pb_print_module_styles_css( 'et_pb_number_counter', array( array( 'type' => 'font-size', 'key' => 'number_font_size', 'selector' => '.et_pb_number_counter .percent p', ), array( 'type' => 'font-style', 'key' => 'number_font_style', 'selector' => '.et_pb_number_counter .percent p', ), array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_number_counter h3', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_number_counter h3', ), ) ); /* Accordion */ et_pb_print_module_styles_css( 'et_pb_accordion', array( array( 'type' => 'font-size', 'key' => 'toggle_font_size', 'selector' => '.et_pb_accordion .et_pb_toggle_title', ), array( 'type' => 'font-style', 'key' => 'toggle_font_style', 'selector' => '.et_pb_accordion .et_pb_toggle.et_pb_toggle_open .et_pb_toggle_title', ), array( 'type' => 'font-style', 'key' => 'inactive_toggle_font_style', 'selector' => '.et_pb_accordion .et_pb_toggle.et_pb_toggle_close .et_pb_toggle_title', ), array( 'type' => 'font-size', 'key' => 'toggle_icon_size', 'selector' => '.et_pb_accordion .et_pb_toggle_title:before', ), array( 'type' => 'padding', 'key' => 'custom_padding', 'selector' => '.et_pb_accordion .et_pb_toggle_open, .et_pb_accordion .et_pb_toggle_close', ), ) ); /* Toggle */ et_pb_print_module_styles_css( 'et_pb_toggle', array( array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_toggle.et_pb_toggle_item h5', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_toggle.et_pb_toggle_item.et_pb_toggle_open h5', ), array( 'type' => 'font-style', 'key' => 'inactive_title_font_style', 'selector' => '.et_pb_toggle.et_pb_toggle_item.et_pb_toggle_close h5', ), array( 'type' => 'font-size', 'key' => 'toggle_icon_size', 'selector' => '.et_pb_toggle.et_pb_toggle_item .et_pb_toggle_title:before', ), array( 'type' => 'padding', 'key' => 'custom_padding', 'selector' => '.et_pb_toggle.et_pb_toggle_item', ), ) ); /* Contact Form */ et_pb_print_module_styles_css( 'et_pb_contact_form', array( array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_contact_form_container .et_pb_contact_main_title', ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_contact_form_container .et_pb_contact_main_title', ), array( 'type' => 'font-size', 'key' => 'form_field_font_size', 'selector' => '.et_pb_contact_form_container .et_pb_contact p input, .et_pb_contact_form_container .et_pb_contact p textarea', ), array( 'type' => 'font-style', 'key' => 'form_field_font_style', 'selector' => '.et_pb_contact_form_container .et_pb_contact p input, .et_pb_contact_form_container .et_pb_contact p textarea', ), array( 'type' => 'font-size', 'key' => 'captcha_font_size', 'selector' => '.et_pb_contact_captcha_question', ), array( 'type' => 'font-style', 'key' => 'captcha_font_style', 'selector' => '.et_pb_contact_captcha_question', ), array( 'type' => 'padding', 'key' => 'padding', 'selector' => '.et_pb_contact p input, .et_pb_contact p textarea', ), ) ); /* Sidebar */ et_pb_print_module_styles_css( 'et_pb_sidebar', array( array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_widget_area h4', ), array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_widget_area h4', ), ) ); /* Divider */ et_pb_print_module_styles_css( 'et_pb_divider', array( array( 'type' => 'border-top-style', 'key' => 'divider_style', 'selector' => '.et_pb_space:before', ), array( 'type' => 'border-top-width', 'key' => 'divider_weight', 'selector' => '.et_pb_space:before', ), array( 'type' => 'height', 'key' => 'height', 'selector' => '.et_pb_space', ), ) ); /* Person */ et_pb_print_module_styles_css( 'et_pb_team_member', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_team_member h4', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_team_member h4', ), array( 'type' => 'font-size', 'key' => 'subheader_font_size', 'selector' => '.et_pb_team_member .et_pb_member_position', ), array( 'type' => 'font-style', 'key' => 'subheader_font_style', 'selector' => '.et_pb_team_member .et_pb_member_position', ), array( 'type' => 'font-size', 'key' => 'social_network_icon_size', 'selector' => '.et_pb_member_social_links a', ), ) ); /* Blog */ et_pb_print_module_styles_css( 'et_pb_blog', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_posts .et_pb_post h2', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_posts .et_pb_post h2', ), array( 'type' => 'font-size', 'key' => 'meta_font_size', 'selector' => '.et_pb_posts .et_pb_post .post-meta', ), array( 'type' => 'font-style', 'key' => 'meta_font_style', 'selector' => '.et_pb_posts .et_pb_post .post-meta', ), ) ); /* Blog Masonry */ et_pb_print_module_styles_css( 'et_pb_blog_masonry', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_blog_grid .et_pb_post h2', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_blog_grid .et_pb_post h2', ), array( 'type' => 'font-size', 'key' => 'meta_font_size', 'selector' => '.et_pb_blog_grid .et_pb_post .post-meta', ), array( 'type' => 'font-style', 'key' => 'meta_font_style', 'selector' => '.et_pb_blog_grid .et_pb_post .post-meta', ), ) ); /* Shop */ et_pb_print_module_styles_css( 'et_pb_shop', array( array( 'type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3', 'important' => false, ), array( 'type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3', 'important' => false, ), array( 'type' => 'font-size', 'key' => 'sale_badge_font_size', 'selector' => '.woocommerce span.onsale, .woocommerce-page span.onsale', 'important' => false, ), array( 'type' => 'font-style', 'key' => 'sale_badge_font_style', 'selector' => '.woocommerce span.onsale, .woocommerce-page span.onsale', 'important' => true, ), array( 'type' => 'font-size', 'key' => 'price_font_size', 'selector' => '.woocommerce ul.products li.product .price .amount, .woocommerce-page ul.products li.product .price .amount', 'important' => false, ), array( 'type' => 'font-style', 'key' => 'price_font_style', 'selector' => '.woocommerce ul.products li.product .price .amount, .woocommerce-page ul.products li.product .price .amount', 'important' => true, ), array( 'type' => 'font-size', 'key' => 'sale_price_font_size', 'selector' => '.woocommerce ul.products li.product .price ins .amount, .woocommerce-page ul.products li.product .price ins .amount', 'important' => false, ), array( 'type' => 'font-style', 'key' => 'sale_price_font_style', 'selector' => '.woocommerce ul.products li.product .price ins .amount, .woocommerce-page ul.products li.product .price ins .amount', 'important' => true, ), ) ); /* Countdown */ et_pb_print_module_styles_css( 'et_pb_countdown_timer', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_countdown_timer .title', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_countdown_timer .title', ), ) ); /* Social */ et_pb_print_module_styles_css( 'et_pb_social_media_follow', array( array( 'type' => 'font-style', 'key' => 'button_font_style', 'selector' => '.et_pb_social_media_follow li a.follow_button', ), array( 'type' => 'social-icon-size', 'key' => 'icon_size', 'selector' => '', ), ) ); /* Fullwidth Slider */ et_pb_print_module_styles_css( 'et_pb_fullwidth_slider', array( array( 'type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_description .et_pb_slide_title', 'default' => '46', ), array( 'type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_description .et_pb_slide_title', 'default' => '', ), array( 'type' => 'font-size', 'key' => 'body_font_size', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_content', 'default' => 16, ), array( 'type' => 'font-style', 'key' => 'body_font_style', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_content', 'default' => '', ), array( 'type' => 'padding-slider', 'key' => 'padding', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_description', 'default' => '16', ), ) ); // <<<--------- END MODULE CUSTOMIZER CSS --------->>> /** * Filter Module Customizer CSS output. * * @since 3.0.51 * * @param string $module_customizer_css */ $css_output[] = apply_filters( 'et_divi_module_customizer_css_output', ob_get_clean() ); // Give the output to the style manager so a static resource can be created and served. $styles_manager->set_data( implode( '\n', $css_output ) ); } add_action( 'wp', 'et_divi_add_customizer_css' ); /** * Outputting saved customizer style settings * * @return void */ function et_pb_print_css( $setting ) { // Defaults value $defaults = array( 'key' => false, 'selector' => false, 'type' => false, 'default' => false, 'important' => false ); // Parse given settings aginst defaults $setting = wp_parse_args( $setting, $defaults ); if ( $setting['key'] !== false || $setting['selector'] !== false || $setting['type'] !== false || $setting['settings'] !== false ) { // Some attribute requires !important tag if ( $setting['important'] ) { $important = "!important"; } else { $important = ""; } // get value $value = et_get_option( $setting['key'], $setting['default'] ); // Output css based on its type if ( $value !== false && $value != $setting['default'] ) { switch ( $setting['type'] ) { case 'font-size': printf( '%1$s { font-size: %2$spx %3$s; }', esc_html( $setting['selector'] ), esc_html( $value ), $important ); break; case 'font-size-post-header': $posts_font_size = intval( $value ) * ( 26 / 30 ); printf( 'body.home-posts #left-area .et_pb_post h2, body.archive #left-area .et_pb_post h2, body.search #left-area .et_pb_post h2 { font-size:%1$spx } body.single .et_post_meta_wrapper h1 { font-size:%2$spx; }', esc_html( $posts_font_size ), esc_html( $value ) ); break; case 'font-style': printf( '%1$s { %2$s }', esc_html( $setting['selector'] ), et_pb_print_font_style( $value, $important ) ); break; case 'letter-spacing': printf( '%1$s { letter-spacing: %2$spx %3$s; }', esc_html( $setting['selector'] ), esc_html( $value ), $important ); break; case 'line-height': printf( '%1$s { line-height: %2$sem %3$s; }', esc_html( $setting['selector'] ), esc_html( $value ), $important ); break; case 'color': printf( '%1$s { color: %2$s; }', esc_html( $setting['selector'] ), esc_html( $value ) ); break; case 'background-color': printf( '%1$s { background-color: %2$s; }', esc_html( $setting['selector'] ), esc_html( $value ) ); break; case 'border-radius': printf( '%1$s { -moz-border-radius: %2$spx; -webkit-border-radius: %2$spx; border-radius: %2$spx; }', esc_html( $setting['selector'] ), esc_html( $value ) ); break; case 'width': printf( '%1$s { width: %2$spx; }', esc_html( $setting['selector'] ), esc_html( $value ) ); break; case 'height': printf( '%1$s { height: %2$spx; }', esc_html( $setting['selector'] ), esc_html( $value ) ); break; case 'padding': printf( '%1$s { padding: %2$spx; }', esc_html( $setting['selector'] ), esc_html( $value ) ); break; case 'padding-top-bottom': printf( '%1$s { padding: %2$spx 0; }', esc_html( $setting['selector'] ), esc_html( $value ) ); break; case 'padding-tabs': printf( '%1$s { padding: %2$spx %3$spx; }', esc_html( $setting['selector'] ), esc_html( ( intval( $value ) * 0.5 ) ), esc_html( $value ) ); break; case 'padding-fullwidth-slider': printf( '%1$s { padding: %2$s %3$s; }', esc_html( $setting['selector'] ), esc_html( $value ) . '%', '0' ); break; case 'padding-slider': printf( '%1$s { padding: %2$s %3$s; }', esc_html( $setting['selector'] ), esc_html( $value ) . '%', esc_html( ( intval( $value ) / 2 ) ) . '%' ); break; case 'social-icon-size': $icon_margin = intval( $value ) * 0.57; $icon_dimension = intval( $value ) * 2; ?> .et_pb_social_media_follow li a.icon{ margin-right: px; width: px; height: px; } .et_pb_social_media_follow li a.icon::before{ width: px; height: px; font-size: px; line-height: px; } .et_pb_social_media_follow li a.icon{ margin-right: px; width: px; height: px; } .et_pb_social_media_follow li a.icon::before{ width: px; height: px; font-size: px; line-height: px; } .et_pb_social_media_follow li a.follow_button{ font-size: px; } et_builder_get_custom_fonts(), ) ); } add_action( 'customize_controls_print_footer_scripts', 'et_load_google_fonts_scripts' ); function et_load_google_fonts_styles() { $theme_version = et_get_theme_version(); wp_enqueue_style( 'et_google_fonts_style', get_template_directory_uri() . '/epanel/google-fonts/et_google_fonts.css', array(), $theme_version ); } add_action( 'customize_controls_print_styles', 'et_load_google_fonts_styles' ); if ( ! function_exists( 'et_divi_post_meta' ) ) : function et_divi_post_meta() { $postinfo = is_single() ? et_get_option( 'divi_postinfo2' ) : et_get_option( 'divi_postinfo1' ); if ( $postinfo ) : echo ' '; endif; } endif; function et_video_embed_html( $video ) { if ( is_single() && 'video' === et_pb_post_format() ) { static $post_video_num = 0; $post_video_num++; // Hide first video in the post content on single video post page if ( 1 === $post_video_num ) { return ''; } } return "
%2$s: