__( 'Primary Menu', 'Divi' ), 'secondary-menu' => __( 'Secondary Menu', 'Divi' ), 'footer-menu' => __( '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 ); add_theme_support( 'post-formats', array( 'video', 'audio', 'quote', 'gallery', 'link' ) ); add_theme_support( 'woocommerce' ); 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'); } add_action( 'after_setup_theme', 'et_setup_theme' ); 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( __( '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 ); if ( ! current_user_can( $post_type->cap->edit_post, $post_id ) ) return $post_id; if ( ! isset( $_POST['et_settings_nonce'] ) || ! wp_verify_nonce( $_POST['et_settings_nonce'], basename( __FILE__ ) ) ) return $post_id; 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' ); } add_action( 'save_post', 'et_divi_post_settings_save_details', 10, 2 ); function et_get_one_font_languages() { $one_font_languages = array( 'he_IL' => array( 'language_name' => 'Hebrew', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/alefhebrew.css', 'font_family' => "'Alef Hebrew', serif", ), '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", ), 'ar' => array( 'language_name' => 'Arabic', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/lateef.css', 'font_family' => "'Lateef', serif", ), 'th' => array( 'language_name' => 'Thai', 'google_font_url' => '//fonts.googleapis.com/earlyaccess/notosansthai.css', 'font_family' => "'Noto Sans Thai', 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; } function et_divi_customize_register( $wp_customize ) { $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' ); 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' ) ); $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( __( "you don't have sufficient permissions to access this page", 'Divi' ) ); } $removed_default_sections = array( 'nav', 'static_front_page' ); 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( __( "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_google_fonts(); $et_domain_fonts = array( 'ru_RU' => 'cyrillic', 'uk' => 'cyrillic', 'bg_BG' => 'cyrillic', 'vi' => 'vietnamese', 'el' => 'greek', ); $et_one_font_languages = et_get_one_font_languages(); $font_choices = array(); $font_choices['none'] = array( 'label' => 'Default Theme Font' ); foreach ( $google_fonts as $google_font_name => $google_font_properties ) { if ( '' !== $site_domain && isset( $et_domain_fonts[$site_domain] ) && 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' => isset( $google_font_properties['parent_font'] ) ? $google_font_properties['parent_font'] : '', 'parent_styles' => isset( $google_font_properties['parent_font'] ) && isset( $google_fonts[$google_font_properties['parent_font']]['styles'] ) ? $google_fonts[$google_font_properties['parent_font']]['styles'] : $google_font_properties['styles'], 'current_styles' => isset( $google_font_properties['parent_font'] ) && isset( $google_fonts[$google_font_properties['parent_font']]['styles'] ) && isset( $google_font_properties['styles'] ) ? $google_font_properties['styles'] : '', 'parent_subset' => isset( $google_font_properties['parent_font'] ) && isset( $google_fonts[$google_font_properties['parent_font']]['character_set'] ) ? $google_fonts[$google_font_properties['parent_font']]['character_set'] : '' ) ); } $wp_customize->add_panel( 'et_divi_general_settings' , array( 'title' => __( 'General Settings', 'Divi' ), 'priority' => 1, ) ); $wp_customize->add_section( 'title_tagline', array( 'title' => __( 'Site Identity', 'Divi' ), 'panel' => 'et_divi_general_settings', ) ); $wp_customize->add_section( 'et_divi_general_layout' , array( 'title' => __( 'Layout Settings', 'Divi' ), 'panel' => 'et_divi_general_settings', ) ); $wp_customize->add_section( 'et_divi_general_typography' , array( 'title' => __( 'Typography', 'Divi' ), 'panel' => 'et_divi_general_settings', ) ); $wp_customize->add_panel( 'et_divi_mobile' , array( 'title' => __( 'Mobile Styles', 'Divi' ), 'priority' => 6, ) ); $wp_customize->add_section( 'et_divi_mobile_tablet' , array( 'title' => __( 'Tablet', 'Divi' ), 'panel' => 'et_divi_mobile', ) ); $wp_customize->add_section( 'et_divi_mobile_phone' , array( 'title' => __( 'Phone', 'Divi' ), 'panel' => 'et_divi_mobile', ) ); $wp_customize->add_section( 'et_divi_mobile_menu' , array( 'title' => __( 'Mobile Menu', 'Divi' ), 'panel' => 'et_divi_mobile', ) ); $wp_customize->add_section( 'et_divi_general_background' , array( 'title' => __( 'Background', 'Divi' ), 'panel' => 'et_divi_general_settings', ) ); $wp_customize->add_panel( 'et_divi_header_panel', array( 'title' => __( 'Header & Navigation', 'Divi' ), 'priority' => 2, ) ); $wp_customize->add_section( 'et_divi_header_layout' , array( 'title' => __( 'Header Format', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_section( 'et_divi_header_primary' , array( 'title' => __( 'Primary Menu Bar', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_section( 'et_divi_header_secondary' , array( 'title' => __( 'Secondary Menu Bar', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_section( 'et_divi_header_fixed' , array( 'title' => __( 'Fixed Navigation Settings', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_section( 'et_divi_header_information' , array( 'title' => __( 'Header Elements', 'Divi' ), 'panel' => 'et_divi_header_panel', ) ); $wp_customize->add_panel( 'et_divi_footer_panel' , array( 'title' => __( 'Footer', 'Divi' ), 'priority' => 3, ) ); $wp_customize->add_section( 'et_divi_footer_layout' , array( 'title' => __( 'Layout', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_divi_footer_widgets' , array( 'title' => __( 'Widgets', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_divi_footer_elements' , array( 'title' => __( 'Footer Elements', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_divi_footer_menu' , array( 'title' => __( 'Footer Menu', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_divi_bottom_bar' , array( 'title' => __( 'Bottom Bar', 'Divi' ), 'panel' => 'et_divi_footer_panel', ) ); $wp_customize->add_section( 'et_color_schemes' , array( 'title' => __( 'Color Schemes', 'Divi' ), 'priority' => 7, 'description' => __( 'Note: Color settings set above should be applied to the Default color scheme.', 'Divi' ), ) ); $wp_customize->add_panel( 'et_divi_buttons_settings' , array( 'title' => __( 'Buttons', 'Divi' ), 'priority' => 4, ) ); $wp_customize->add_section( 'et_divi_buttons' , array( 'title' => __( 'Buttons Style', 'Divi' ), 'panel' => 'et_divi_buttons_settings', ) ); $wp_customize->add_section( 'et_divi_buttons_hover' , array( 'title' => __( 'Buttons Hover Style', 'Divi' ), 'panel' => 'et_divi_buttons_settings', ) ); $wp_customize->add_panel( 'et_divi_blog_settings' , array( 'title' => __( 'Blog', 'Divi' ), 'priority' => 5, ) ); $wp_customize->add_section( 'et_divi_blog_post' , array( 'title' => __( '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', ) ); $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' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_meta_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_meta_spacing]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[post_meta_style]', array( 'label' => __( 'Meta Font Style', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); $wp_customize->add_setting( 'et_divi[post_header_font_size]', array( 'default' => '30', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_header_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[post_header_spacing]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[post_header_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_divi_blog_post', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); $wp_customize->add_setting( 'et_divi[boxed_layout]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'et_divi[boxed_layout]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[content_width]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[gutter_width]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[use_sidebar_width]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[sidebar_width]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[section_padding]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[phone_section_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[tablet_section_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[row_padding]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[phone_row_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[tablet_row_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[cover_background]', array( 'label' => __( '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' => __( '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' => __( 'Background Image', 'Divi' ), 'section' => 'et_divi_general_background', ) ) ); } $wp_customize->add_control( 'background_repeat', array( 'label' => __( 'Background Repeat', 'Divi' ), 'section' => 'et_divi_general_background', 'type' => 'radio', 'choices' => array( 'no-repeat' => __( 'No Repeat', 'Divi' ), 'repeat' => __( 'Tile', 'Divi' ), 'repeat-x' => __( 'Tile Horizontally', 'Divi' ), 'repeat-y' => __( 'Tile Vertically', 'Divi' ), ), ) ); $wp_customize->add_control( 'background_position_x', array( 'label' => __( 'Background Position', 'Divi' ), 'section' => 'et_divi_general_background', 'type' => 'radio', 'choices' => array( 'left' => __( 'Left', 'Divi' ), 'center' => __( 'Center', 'Divi' ), 'right' => __( 'Right', 'Divi' ), ), ) ); $wp_customize->add_control( 'background_attachment', array( 'label' => __( 'Background Position', 'Divi' ), 'section' => 'et_divi_general_background', 'type' => 'radio', 'choices' => array( 'scroll' => __( 'Scroll', 'Divi' ), 'fixed' => __( 'Fixed', 'Divi' ), ), ) ); $wp_customize->add_setting( 'et_divi[body_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_font_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[phone_body_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[tablet_body_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_header_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_header_spacing]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[body_header_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[body_header_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_divi_general_typography', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); $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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[phone_header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[tablet_header_font_size]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[heading_font]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[body_font]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[link_color]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[font_color]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[header_color]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[accent_color]', array( 'label' => __( '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' ) ); $wp_customize->add_control( 'et_divi[color_schemes]', array( 'label' => __( 'Color Schemes', 'Divi' ), 'section' => 'et_color_schemes', 'settings' => 'et_divi[color_schemes]', 'type' => 'select', 'choices' => array( 'none' => __( 'Default', 'Divi' ), 'green' => __( 'Green', 'Divi' ), 'orange' => __( 'Orange', 'Divi' ), 'pink' => __( 'Pink', 'Divi' ), 'red' => __( 'Red', 'Divi' ), ), ) ); $wp_customize->add_setting( 'et_divi[header_style]', array( 'default' => 'left', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'et_divi[header_style]', array( 'label' => __( 'Header Style', 'Divi' ), 'section' => 'et_divi_header_layout', 'type' => 'select', 'choices' => array( 'left' => __( 'Default', 'Divi' ), 'centered' => __( 'Centered', 'Divi' ), 'split' => __( 'Centered Inline Logo', 'Divi' ) ), ) ); $wp_customize->add_setting( 'et_divi[vertical_nav]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'et_divi[vertical_nav]', array( 'label' => __( 'Enable Vertical Navigation', 'Divi' ), 'section' => 'et_divi_header_layout', 'type' => 'checkbox', ) ); 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', ) ); $wp_customize->add_control( 'et_divi[hide_nav]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[show_header_social_icons]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[show_search_icon]', array( 'label' => __( 'Show Search Icon', 'Divi' ), 'section' => 'et_divi_header_information', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'et_divi[nav_fullwidth]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'et_divi[nav_fullwidth]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[hide_primary_logo]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[menu_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[logo_height]', array( 'label' => __( '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[primary_nav_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[primary_nav_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[primary_nav_font_spacing]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[primary_nav_font]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[primary_nav_font_style]', array( 'label' => __( 'Font Style', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_font_size]', array( 'default' => '12', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'et_divi[secondary_nav_fullwidth]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'et_divi[secondary_nav_fullwidth]', array( 'label' => __( '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' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[secondary_nav_font_spacing]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[secondary_nav_font]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[secondary_nav_font_style]', array( 'label' => __( 'Font Style', 'Divi' ), 'section' => 'et_divi_header_secondary', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); $wp_customize->add_setting( 'et_divi[menu_link]', array( 'default' => 'rgba(0,0,0,0.6)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[menu_link]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[hide_mobile_logo]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[mobile_menu_link]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[menu_link_active]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[primary_nav_bg]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[primary_nav_dropdown_bg]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[primary_nav_dropdown_line_color]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[primary_nav_dropdown_link_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[primary_nav_dropdown_animation]', array( 'label' => __( 'Dropdown Menu Animation', 'Divi' ), 'section' => 'et_divi_header_primary', 'type' => 'select', 'choices' => array( 'fade' => __( 'Fade', 'Divi' ), 'expand' => __( 'Expand', 'Divi' ), 'slide' => __( 'Slide', 'Divi' ), 'flip' => __( 'Flip', 'Divi' ) ), ) ); $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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[mobile_primary_nav_bg]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[secondary_nav_bg]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[secondary_nav_text_color_new]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[secondary_nav_dropdown_bg]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[secondary_nav_dropdown_link_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[secondary_nav_dropdown_animation]', array( 'label' => __( 'Dropdown Menu Animation', 'Divi' ), 'section' => 'et_divi_header_secondary', 'type' => 'select', 'choices' => array( 'fade' => __( 'Fade', 'Divi' ), 'expand' => __( 'Expand', 'Divi' ), 'slide' => __( 'Slide', 'Divi' ), 'flip' => __( 'Flip', 'Divi' ) ), ) ); // 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', ) ); // 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', ) ); 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', ) ); $wp_customize->add_control( 'et_divi[hide_fixed_logo]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[minimized_menu_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[fixed_primary_nav_font_size]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[fixed_primary_nav_bg]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[fixed_secondary_nav_bg]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[fixed_menu_link]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[fixed_secondary_menu_link]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[fixed_menu_link_active]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[phone_number]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[header_email]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[show_footer_social_icons]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[footer_columns]', array( 'label' => __( 'Column Layout', 'Divi' ), 'section' => 'et_divi_footer_layout', 'settings' => 'et_divi[footer_columns]', 'type' => 'select', 'choices' => array( '4' => sprintf( __( '%1$s Columns', 'Divi' ), esc_html( '4' ) ), '3' => sprintf( __( '%1$s Columns', 'Divi' ), esc_html( '3' ) ), '2' => sprintf( __( '%1$s Columns', 'Divi' ), esc_html( '2' ) ), '1' => __( '1 Column', 'Divi' ), '_1_4__3_4' => sprintf( __( '%1$s Columns', 'Divi' ), esc_html( '1/4 + 3/4' ) ), '_3_4__1_4' => sprintf( __( '%1$s Columns', 'Divi' ), esc_html( '3/4 + 1/4' ) ), '_1_3__2_3' => sprintf( __( '%1$s Columns', 'Divi' ), esc_html( '1/3 + 2/3' ) ), '_2_3__1_3' => sprintf( __( '%1$s Columns', 'Divi' ), esc_html( '2/3 + 1/3' ) ), '_1_4__1_2' => sprintf( __( '%1$s Columns', 'Divi' ), esc_html( '1/4 + 1/4 + 1/2' ) ), '_1_2__1_4' => sprintf( __( '%1$s Columns', 'Divi' ), esc_html( '1/2 + 1/4 + 1/4' ) ), ), ) ); $wp_customize->add_setting( 'et_divi[footer_bg]', array( 'default' => '#222222', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[footer_bg]', array( 'label' => __( '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' => et_get_option( 'body_header_size' * .6, '18' ), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[widget_header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[widget_header_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); $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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[widget_body_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[widget_body_line_height]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[widget_body_font_style]', array( 'label' => __( 'Body Font Style', 'Divi' ), 'section' => 'et_divi_footer_widgets', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); $wp_customize->add_setting( 'et_divi[footer_widget_text_color]', array( 'default' => '#fff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[footer_widget_text_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[footer_widget_link_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[footer_widget_header_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[footer_widget_bullet_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[footer_menu_background_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[footer_menu_text_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[footer_menu_active_link_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[footer_menu_letter_spacing]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[footer_menu_font_style]', array( 'label' => __( 'Font Style', 'Divi' ), 'section' => 'et_divi_footer_menu', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); $wp_customize->add_setting( 'et_divi[footer_menu_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[footer_menu_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[bottom_bar_background_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[bottom_bar_text_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[bottom_bar_font_style]', array( 'label' => __( 'Font Style', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); $wp_customize->add_setting( 'et_divi[bottom_bar_font_size]', array( 'default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[bottom_bar_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[bottom_bar_social_icon_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[bottom_bar_social_icon_color]', array( 'label' => __( 'Social Icon Color', 'Divi' ), 'section' => 'et_divi_bottom_bar', 'settings' => 'et_divi[bottom_bar_social_icon_color]', ) ) ); $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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_font_size]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_text_color]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_bg_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_border_width]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_border_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_border_radius]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_spacing]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[all_buttons_font_style]', array( 'label' => __( 'Button Font Style', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); 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' ) ); $wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[all_buttons_font]', array( 'label' => __( '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', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'et_divi[all_buttons_icon]', array( 'label' => __( 'Add Button Icon', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'select', 'choices' => array( 'yes' => __( 'Yes', 'Divi' ), 'no' => __( 'No', 'Divi' ) ), ) ); $wp_customize->add_setting( 'et_divi[all_buttons_selected_icon]', array( 'default' => '5', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new ET_Divi_Icon_Picker_Option ( $wp_customize, 'et_divi[all_buttons_selected_icon]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_icon_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( 'et_divi[all_buttons_icon_placement]', array( 'label' => __( 'Icon Placement', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'select', 'choices' => array( 'right' => __( 'Right', 'Divi' ), 'left' => __( 'Left', 'Divi' ) ), ) ); $wp_customize->add_setting( 'et_divi[all_buttons_icon_hover]', array( 'default' => 'yes', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'et_divi[all_buttons_icon_hover]', array( 'label' => __( 'Only Show Icon on Hover', 'Divi' ), 'section' => 'et_divi_buttons', 'type' => 'select', 'choices' => array( 'yes' => __( 'Yes', 'Divi' ), 'no' => __( 'No', 'Divi' ) ), ) ); $wp_customize->add_setting( 'et_divi[all_buttons_text_color_hover]', array( 'default' => '#ffffff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_text_color_hover]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_bg_color_hover]', array( 'label' => __( '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' ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_border_color_hover]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_border_radius_hover]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_spacing_hover]', array( 'label' => __( '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 ) { $animation_choices = array( 'left' => __( 'Left to Right', 'Divi' ), 'right' => __( 'Right to Left', 'Divi' ), 'top' => __( 'Top to Bottom', 'Divi' ), 'bottom' => __( 'Bottom to Top', 'Divi' ), 'fade_in' => __( 'Fade In', 'Divi' ), 'off' => __( 'No Animation', 'Divi' ), ); /* Section: Image */ $wp_customize->add_section( 'et_pagebuilder_image', array( 'priority' => 10, 'capability' => 'edit_theme_options', 'title' => __( 'Image', 'Divi' ), 'description' => __( 'Image Module Settings', 'Divi' ), ) ); $wp_customize->add_setting( 'et_divi[et_pb_image-animation]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'et_divi[et_pb_image-animation]', array( 'label' => __( 'Animation', 'Divi' ), 'description' => __( 'This controls default direction of the lazy-loading animation.', 'Divi' ), 'section' => 'et_pagebuilder_image', 'type' => 'select', 'choices' => $animation_choices, ) ); /* Section: Gallery */ $wp_customize->add_section( 'et_pagebuilder_gallery', array( 'priority' => 20, 'capability' => 'edit_theme_options', 'title' => __( 'Gallery', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[et_pb_gallery-zoom_icon_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[et_pb_gallery-hover_overlay_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_gallery-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_gallery-title_font_style]', array( 'label' => __( 'Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_gallery', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_gallery-caption_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_gallery-caption_font_style]', array( 'label' => __( 'Caption Font Style', 'Divi' ), 'section' => 'et_pagebuilder_gallery', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Blurb */ $wp_customize->add_section( 'et_pagebuilder_blurb', array( 'priority' => 30, 'capability' => 'edit_theme_options', 'title' => __( 'Blurb', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_blurb-header_font_size]', array( 'label' => __( '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' => __( 'Tabs', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_tabs-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_tabs-title_font_style]', array( 'label' => __( 'Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_tabs', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_tabs-padding]', array( 'label' => __( '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' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_slider-padding]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_slider-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_slider-header_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_slider', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_slider-body_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_slider-body_font_style]', array( 'label' => __( 'Content Font Style', 'Divi' ), 'section' => 'et_pagebuilder_slider', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Testimonial */ $wp_customize->add_section( 'et_pagebuilder_testimonial', array( 'priority' => 60, 'capability' => 'edit_theme_options', 'title' => __( 'Testimonial', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_testimonial-author_name_font_style]', array( 'label' => __( 'Name Font Style', 'Divi' ), 'section' => 'et_pagebuilder_testimonial', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_testimonial-author_details_font_style]', array( 'label' => __( 'Details Font Style', 'Divi' ), 'section' => 'et_pagebuilder_testimonial', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_testimonial-portrait_border_radius]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_testimonial-portrait_width]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_testimonial-portrait_height]', array( 'label' => __( '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' => __( 'Pricing Table', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_pricing_tables-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_pricing_tables-header_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_pricing_table', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_pricing_tables-subheader_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_pricing_tables-subheader_font_style]', array( 'label' => __( 'Subheader Font Style', 'Divi' ), 'section' => 'et_pagebuilder_pricing_table', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_pricing_tables-price_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_pricing_tables-price_font_style]', array( 'label' => __( 'Pricing Font Style', 'Divi' ), 'section' => 'et_pagebuilder_pricing_table', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Call To Action */ $wp_customize->add_section( 'et_pagebuilder_call_to_action', array( 'priority' => 80, 'capability' => 'edit_theme_options', 'title' => __( 'Call To Action', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_cta-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_cta-header_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_call_to_action', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_cta-custom_padding]', array( 'label' => __( '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' => __( 'Audio', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_audio-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_audio-title_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_audio', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_audio-caption_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_audio-caption_font_style]', array( 'label' => __( 'Subheader Font Style', 'Divi' ), 'section' => 'et_pagebuilder_audio', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Email Optin */ $wp_customize->add_section( 'et_pagebuilder_subscribe', array( 'priority' => 100, 'capability' => 'edit_theme_options', 'title' => __( 'Email Optin', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_signup-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_signup-header_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_subscribe', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_signup-padding]', array( 'label' => __( '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' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_login-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_login-header_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_login', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_login-custom_padding]', array( 'label' => __( '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' => __( 'Portfolio', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[et_pb_portfolio-zoom_icon_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[et_pb_portfolio-hover_overlay_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_portfolio-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_portfolio-title_font_style]', array( 'label' => __( 'Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_portfolio', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_portfolio-caption_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_portfolio-caption_font_style]', array( 'label' => __( 'Caption Font Style', 'Divi' ), 'section' => 'et_pagebuilder_portfolio', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Filterable Portfolio */ $wp_customize->add_section( 'et_pagebuilder_filterable_portfolio', array( 'priority' => 130, 'capability' => 'edit_theme_options', 'title' => __( 'Filterable Portfolio', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'et_divi[et_pb_filterable_portfolio-zoom_icon_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[et_pb_filterable_portfolio-hover_overlay_color]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_filterable_portfolio-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_filterable_portfolio-title_font_style]', array( 'label' => __( 'Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_filterable_portfolio', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_filterable_portfolio-caption_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_filterable_portfolio-caption_font_style]', array( 'label' => __( 'Caption Font Style', 'Divi' ), 'section' => 'et_pagebuilder_filterable_portfolio', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_filterable_portfolio-filter_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_filterable_portfolio-filter_font_style]', array( 'label' => __( 'Filters Font Style', 'Divi' ), 'section' => 'et_pagebuilder_filterable_portfolio', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Bar Counter */ $wp_customize->add_section( 'et_pagebuilder_bar_counter', array( 'priority' => 140, 'capability' => 'edit_theme_options', 'title' => __( 'Bar Counter', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_counters-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_counters-title_font_style]', array( 'label' => __( 'Label Font Style', 'Divi' ), 'section' => 'et_pagebuilder_bar_counter', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_counters-percent_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_counters-percent_font_style]', array( 'label' => __( 'Percent Font Style', 'Divi' ), 'section' => 'et_pagebuilder_bar_counter', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_counters-padding]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_counters-border_radius]', array( 'label' => __( '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' => __( 'Circle Counter', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_circle_counter-number_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_circle_counter-number_font_style]', array( 'label' => __( 'Number Font Style', 'Divi' ), 'section' => 'et_pagebuilder_circle_counter', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_circle_counter-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_circle_counter-title_font_style]', array( 'label' => __( 'Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_circle_counter', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Number Counter */ $wp_customize->add_section( 'et_pagebuilder_number_counter', array( 'priority' => 160, 'capability' => 'edit_theme_options', 'title' => __( 'Number Counter', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_number_counter-number_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_number_counter-number_font_style]', array( 'label' => __( 'Number Font Style', 'Divi' ), 'section' => 'et_pagebuilder_number_counter', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_number_counter-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_number_counter-title_font_style]', array( 'label' => __( 'Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_number_counter', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Accordion */ $wp_customize->add_section( 'et_pagebuilder_accordion', array( 'priority' => 170, 'capability' => 'edit_theme_options', 'title' => __( 'Accordion', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_accordion-toggle_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_accordion-toggle_font_style]', array( 'label' => __( 'Opened Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_accordion', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_accordion-inactive_toggle_font_style]', array( 'label' => __( 'Closed Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_accordion', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_accordion-toggle_icon_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_accordion-custom_padding]', array( 'label' => __( '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' => __( 'Toggle', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_toggle-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_toggle-title_font_style]', array( 'label' => __( 'Opened Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_toggle', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_toggle-inactive_title_font_style]', array( 'label' => __( 'Closed Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_toggle', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_toggle-toggle_icon_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_toggle-custom_padding]', array( 'label' => __( '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' => __( 'Contact Form', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_contact_form-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_contact_form-title_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_contact_form', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_contact_form-form_field_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_contact_form-form_field_font_style]', array( 'label' => __( 'Input Font Style', 'Divi' ), 'section' => 'et_pagebuilder_contact_form', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_contact_form-padding]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_contact_form-captcha_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_contact_form-captcha_font_style]', array( 'label' => __( 'Captcha Font Style', 'Divi' ), 'section' => 'et_pagebuilder_contact_form', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Sidebar */ $wp_customize->add_section( 'et_pagebuilder_sidebar', array( 'priority' => 200, 'capability' => 'edit_theme_options', 'title' => __( 'Sidebar', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_sidebar-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_sidebar-header_font_style]', array( 'label' => __( 'Widget Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_sidebar', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( 'et_divi[et_pb_sidebar-remove_border]', array( 'label' => __( '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' => __( 'Divider', 'Divi' ), // 'description' => '', ) ); // Show/hide Divider $wp_customize->add_setting( 'et_divi[et_pb_divider-show_divider]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'et_divi[et_pb_divider-show_divider]', array( 'label' => __( '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' ) ); $wp_customize->add_control( 'et_divi[et_pb_divider-divider_style]', array( 'label' => __( 'Divider Style', 'Divi' ), 'section' => 'et_pagebuilder_divider', 'settings' => 'et_divi[et_pb_divider-divider_style]', 'type' => 'select', 'choices' => array( 'solid' => __( 'Solid', 'Divi' ), 'dotted' => __( 'Dotted', 'Divi' ), 'dashed' => __( 'Dashed', 'Divi' ), 'double' => __( 'Double', 'Divi' ), 'groove' => __( 'Groove', 'Divi' ), 'ridge' => __( 'Ridge', 'Divi' ), 'inset' => __( 'Inset', 'Divi' ), 'outset' => __( 'Outset', 'Divi' ), ), ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_divider-divider_weight]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_divider-height]', array( 'label' => __( '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' ) ); $wp_customize->add_control( 'et_divi[et_pb_divider-divider_position]', array( 'label' => __( 'Divider Position', 'Divi' ), 'section' => 'et_pagebuilder_divider', 'settings' => 'et_divi[et_pb_divider-divider_position]', 'type' => 'select', 'choices' => array( 'top' => __( 'Top', 'Divi' ), 'center' => __( 'Vertically Centered', 'Divi' ), 'bottom' => __( 'Bottom', 'Divi' ), ), ) ); /* Section: Person */ $wp_customize->add_section( 'et_pagebuilder_person', array( 'priority' => 210, 'capability' => 'edit_theme_options', 'title' => __( 'Person', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_team_member-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_team_member-header_font_style]', array( 'label' => __( 'Name Font Style', 'Divi' ), 'section' => 'et_pagebuilder_person', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_team_member-subheader_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_team_member-subheader_font_style]', array( 'label' => __( 'Subheader Font Style', 'Divi' ), 'section' => 'et_pagebuilder_person', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_team_member-social_network_icon_size]', array( 'label' => __( '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' => __( 'Blog', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_blog-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_blog-header_font_style]', array( 'label' => __( 'Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_blog', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_blog-meta_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_blog-meta_font_style]', array( 'label' => __( 'Meta Font Style', 'Divi' ), 'section' => 'et_pagebuilder_blog', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Blog Grid */ $wp_customize->add_section( 'et_pagebuilder_masonry_blog', array( 'priority' => 230, 'capability' => 'edit_theme_options', 'title' => __( 'Blog Grid', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_blog_masonry-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_blog_masonry-header_font_style]', array( 'label' => __( 'Title Font Style', 'Divi' ), 'section' => 'et_pagebuilder_masonry_blog', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_blog_masonry-meta_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_blog_masonry-meta_font_style]', array( 'label' => __( 'Meta Font Style', 'Divi' ), 'section' => 'et_pagebuilder_masonry_blog', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Shop */ $wp_customize->add_section( 'et_pagebuilder_shop', array( 'priority' => 240, 'capability' => 'edit_theme_options', 'title' => __( 'Shop', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_shop-title_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_shop-title_font_style]', array( 'label' => __( 'Product Name Font Style', 'Divi' ), 'section' => 'et_pagebuilder_shop', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_shop-sale_badge_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_shop-sale_badge_font_style]', array( 'label' => __( 'Sale Badge Font Style', 'Divi' ), 'section' => 'et_pagebuilder_shop', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_shop-price_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_shop-price_font_style]', array( 'label' => __( 'Price Font Style', 'Divi' ), 'section' => 'et_pagebuilder_shop', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_shop-sale_price_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_shop-sale_price_font_style]', array( 'label' => __( 'Sale Price Font Style', 'Divi' ), 'section' => 'et_pagebuilder_shop', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Countdown */ $wp_customize->add_section( 'et_pagebuilder_countdown', array( 'priority' => 250, 'capability' => 'edit_theme_options', 'title' => __( 'Countdown', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_countdown_timer-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_countdown_timer-header_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_countdown', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Social Follow */ $wp_customize->add_section( 'et_pagebuilder_social_follow', array( 'priority' => 250, 'capability' => 'edit_theme_options', 'title' => __( 'Social Follow', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_social_media_follow-icon_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_social_media_follow-button_font_style]', array( 'label' => __( 'Button Font Style', 'Divi' ), 'section' => 'et_pagebuilder_social_follow', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); /* Section: Fullwidth Slider */ $wp_customize->add_section( 'et_pagebuilder_fullwidth_slider', array( 'priority' => 270, 'capability' => 'edit_theme_options', 'title' => __( 'Fullwidth Slider', 'Divi' ), // 'description' => '', ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_fullwidth_slider-padding]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_fullwidth_slider-header_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_fullwidth_slider-header_font_style]', array( 'label' => __( 'Header Font Style', 'Divi' ), 'section' => 'et_pagebuilder_fullwidth_slider', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); // 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', ) ); $wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[et_pb_fullwidth_slider-body_font_size]', array( 'label' => __( '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', ) ); $wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[et_pb_fullwidth_slider-body_font_style]', array( 'label' => __( 'Content Font Style', 'Divi' ), 'section' => 'et_pagebuilder_fullwidth_slider', 'type' => 'font_style', 'choices' => array( 'bold' => __( 'Bold', 'Divi' ), 'italic' => __( 'Italic', 'Divi' ), 'uppercase' => __( 'Uppercase', 'Divi' ), 'underline' => __( 'Underline', 'Divi' ), ), ) ) ); } 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 ); } 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 ); } add_action( 'customize_controls_enqueue_scripts', 'et_divi_customize_preview_css' ); /** * 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( '' => __( 'Default', 'Divi' ) ); parent::__construct( $manager, $id, $args ); } 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. } #> %s { font-family: %s; }', 'h1, h2, h3, h4, h5, h6, body, input, textarea, select', $et_one_font_languages[$site_domain]['font_family'] ); } else if ( 'none' != $et_gf_heading_font || 'none' != $et_gf_body_font || 'none' != $et_gf_buttons_font || 'none' != $et_gf_primary_nav_font || 'none' != $et_gf_secondary_nav_font ) { if ( 'none' != $et_gf_heading_font ) { ?> = $sidebar_width ) { ?> 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; } '; echo et_pb_postinfo_meta( $postinfo, et_get_option( 'divi_date_format', 'M j, Y' ), esc_html__( '0 comments', 'Divi' ), esc_html__( '1 comment', 'Divi' ), '% ' . esc_html__( 'comments', 'Divi' ) ); 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:
', esc_html__( 'Password Protected', 'Divi' ), esc_html__( 'To view this protected post, enter the password below', 'Divi' ), esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ), esc_attr( 'pwbox-' . $pwbox_id ), esc_html__( 'Password', 'Divi' ), esc_html__( 'Submit', 'Divi' ) ); $output = sprintf( '