add_setting( BSTONE_THEME_SETTINGS . '[social-icons-widget-'.$sicon_pos[0].']', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control ( new Bstone_Control_Heading ( $wp_customize, BSTONE_THEME_SETTINGS . '[social-icons-widget-'.$sicon_pos[0].']', array( 'label' => esc_html__( 'Social Icons Widget', 'bstone' ).' - '.$sicon_pos[1], 'section' => 'section-social-icons-settings', 'priority' => 10, ) ) ); /** * Option: Icon Padding */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-padding-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'icon-padding-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_number' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[icon-padding-'.$sicon_pos[0].']', array( 'type' => 'number', 'section' => 'section-social-icons-settings', 'priority' => 10, 'label' => __( 'Icon Container Size', 'bstone' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 500, ), ) ); /** * Option: Icon Border Size */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-border-width-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'icon-border-width-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_number' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[icon-border-width-'.$sicon_pos[0].']', array( 'type' => 'number', 'section' => 'section-social-icons-settings', 'priority' => 10, 'label' => __( 'Icon Container Border Size', 'bstone' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 10, ), ) ); /** * Option: Icon Border Radius */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-border-radius-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'icon-border-radius-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_number' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[icon-border-radius-'.$sicon_pos[0].']', array( 'type' => 'number', 'section' => 'section-social-icons-settings', 'priority' => 10, 'label' => __( 'Icon Container Border Radius', 'bstone' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 500, ), ) ); /** * Option: Different Color Settings For Each Icon */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[enable-custom-icon-colors-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'enable-custom-icon-colors-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_checkbox' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[enable-custom-icon-colors-'.$sicon_pos[0].']', array( 'type' => 'checkbox', 'section' => 'section-social-icons-settings', 'label' => __( 'Enable Custom Colors Settings', 'bstone' ), 'priority' => 10, ) ); // ----------- Same Color Settings For All Icons ----------- // /** * Option: Icon Border Color */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-border-color-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'icon-border-color-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[icon-border-color-'.$sicon_pos[0].']', array( 'section' => 'section-social-icons-settings', 'priority' => 10, 'label' => __( 'Icon Border Color', 'bstone' ), ) ) ); /** * Option: Icon Border Color Hover */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-border-color-hover-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'icon-border-color-hover-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[icon-border-color-hover-'.$sicon_pos[0].']', array( 'section' => 'section-social-icons-settings', 'priority' => 10, 'label' => __( 'Icon Border Color Hover', 'bstone' ), ) ) ); /** * Option: Icon Background Color */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-bg-color-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'icon-bg-color-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[icon-bg-color-'.$sicon_pos[0].']', array( 'section' => 'section-social-icons-settings', 'priority' => 10, 'label' => __( 'Icon Background Color', 'bstone' ), ) ) ); /** * Option: Icon Background Color Hover */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-bg-color-hover-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'icon-bg-color-hover-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[icon-bg-color-hover-'.$sicon_pos[0].']', array( 'section' => 'section-social-icons-settings', 'priority' => 10, 'label' => __( 'Icon Background Color Hover', 'bstone' ), ) ) ); /** * Option: Icon Color */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-color-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'icon-color-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[icon-color-'.$sicon_pos[0].']', array( 'section' => 'section-social-icons-settings', 'priority' => 10, 'label' => __( 'Icon Color', 'bstone' ), ) ) ); /** * Option: Icon Color Hover */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-color-hover-'.$sicon_pos[0].']', array( 'default' => bstone_get_option( 'icon-color-hover-'.$sicon_pos[0] ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[icon-color-hover-'.$sicon_pos[0].']', array( 'section' => 'section-social-icons-settings', 'priority' => 10, 'label' => __( 'Icon Color Hover', 'bstone' ), ) ) ); } // end foreach